Repository navigation
fix(agent): 修复共享 Codex daemon 的思考提示串面板 - #127
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
共享 Codex app-server daemon 会保留最初启动客户端的
GLINT_PANE_ID。其他终端的会话继续触发 Hook 时,原逻辑仍把这些事件应用到旧面板:C1Slim 已返回 zsh,但 glint 会话执行时它持续显示“思考中/运行中”,会话恢复 ID 也可能被覆盖。本次通过 Hook 的会话 ID、事件目录和面板实际前台进程核验目标。已有会话绑定优先;没有绑定时,只路由到事件目录下唯一仍附着 Codex 的面板。旧 reporter 仅在原地址仍附着 Codex 时兼容。多个同目录新会话无法唯一识别时跳过事件,避免猜测归属。面板返回 shell 后清理残留的忙碌状态和 Dock 提示,并保留完成/失败等需要用户查看的状态。
验证:
575b42a的独立 worktree 中,Agent Hook 路由、计时、类型识别和会话恢复相关测试 71/71 通过。git diff --check通过。本 PR 仅包含 Agent 路由和回归测试 4 个文件;未包含 Web Remote 等其他未合并 PR。