VS Code: queued follow-up retries legacy thread resume hundreds of times per second
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- rust, vscode
调研方向
Start by tracing queued follow-up dispatch and thread resume in the VS Code extension and bundled app-server; the payload does not name source files or tests, so locate these entry points first. Reproduce with a queued message on a legacy-history thread and observe handling of list_turns is not supported yet. Done means the item remains pending, automatic retries pause after this error, the error is surfaced, and transient failures use bounded backoff.
由索引模型根据 Issue 内容生成。
描述
What version of the IDE extension are you using?
openai.chatgpt 26.1120.50957 with bundled codex-cli 0.171.0-alpha.13.2.
What subscription do you have?
Not provided.
Which IDE are you using?
VS Code 1.147.0.
What platform is your computer?
macOS 26.7.2 (25G332), arm64.
What issue are you seeing?
Automatic dispatch of an existing queued follow-up tries to resume a local thread with history_mode=legacy. Resume fails with list_turns is not supported yet, and the extension immediately tries again.
- First occurrence: 11,706 resume attempts in about 35 seconds (~330/s). The bundled
codex app-serverprocess sustained 94–100% CPU in macOS process measurements. The MacBook became hot. - Second occurrence: another already-open VS Code window made 5,405 attempts in 18.5 seconds (~292/s). The extension logged
app_server_restart_recovery_donewith no current conversation, then started the retries about 0.46 seconds later.
Representative events with identifiers omitted:
maybe_resume_started previousResumeState=needs_resume
VM lifecycle vmEvent=thread_resume_failed
Failed to execute queued message errorMessage="list_turns is not supported yet"
What steps can reproduce the bug?
Observed sequence on the affected installation:
- Have a pending
Queuefollow-up for a persisted local chat whose history mode islegacy. - Let VS Code's Codex extension recover its local app-server connection and automatically process the pending message.
- When resuming that thread returns
list_turns is not supported yet, observe repeatedthread/resumeattempts without a visible delay.
I have not verified a clean-profile reproduction or what initiated the app-server recovery in the second window.
What is the expected behavior?
After the unsupported-history response, pause automatic dispatch for that item, retain the pending message, and surface the resume error. Retry transient failures with bounded backoff.
Additional information
After backing up and removing only the affected item from the persisted extension queue, the first loop stopped and app-server CPU fell to 0.5–3.1%. The second window later retried the same chat while the persisted item was still absent and the follow-up setting was already steer. That window may have retained an in-memory copy.
Related: #45703 reports the same history error. #42589 reports a multi-window resume loop with active-writer conflicts. The failure here occurs during queued dispatch and returns list_turns is not supported yet.
- 主要语言
- Rust
- 星标
- 136k
- 派生
- 21.6k
- 平均合并
- 1 分钟
- 30 天内合并 PR
- 997
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
openai/codex 的其他 Issue
-
app bug rate-limits
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Windows PowerShell 5.1: non-ASCII text piped into a native command arrives as `?`可能已有人在做 @akhil9tiet 于 1 天前认领。 未关闭bug CLI tool-calls windows-os
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug CLI connectivity
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
core-plugins: remote bundle install keeps the temp directory before a fallible rename and leaves it behind on failure可能已有人在做 @akhil9tiet 于 1 天前认领。 未关闭bug CLI skills
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug CLI
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
相似的 Issue
-
triage
难度 1/5 1-3 小时 新手友好度 88/100
kornia/kornia-rs#1416 · 1 条评论 ·
维护者通常 2 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复
-
My Caps shows "Shared" on private Caps that were never shared可能已有人在做 @AksharP5 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
CapSoftware/Cap#4569 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复