Repository navigation
Conversation
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
- flatten the turn runtime and consolidate active turn and step state - align loop contracts and hook result naming - split queued prompt sending from immediate notification
- limit step-start decisions to blocking - remove hook chain rewrite metadata and context settlement emission - retain explicit history replacement coverage during requests
010a307 to
5e7cc92
Compare
4d12d05 to
0320214
Compare
commit: |
💡 Codex Reviewkimi-code/apps/kimi-code/src/tui/controllers/session-event-handler.ts Lines 1210 to 1211 in 010a307 When kimi-code/packages/app-client/src/client/useSideChat.ts Lines 602 to 605 in 010a307 When the stop button is used while a side-chat prompt is still inside kimi-code/apps/desktop/src/renderer/components/chat/ConversationPane.vue Lines 660 to 663 in 010a307 When the desktop connects to a previous-release KAP daemon, such as an SSH host not upgraded alongside the client, this button now always emits the new When an interrupted turn is continuable and the composer is empty, the button now invokes ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
Superseded by #5211. |
Requirement or Bug
独立 Turn 与 Actor 接入后,Loop/Turn 内部仍存在重复状态、重复消息映射和未接入生产的通用历史重写结果,增加了理解与维护成本。本层在 #5195 之上整理内部接口与状态契约,不引入新的生命周期或执行模型。
Bug Reproduction Steps
N/A
Root Cause
N/A
Code Changes
LoopCommand与 LLM timing 映射,区分HookToolResult,将公开状态视图与内部 live 状态分离,并用Pick复用 Turn/ToolCall 字段来源。TurnState、TurnStep、TurnMessage与 LoopActor 的运行状态,删除重复的 mailbox/completion 数据结构和冗余映射。sendNow明确命名为sendNowQueued,与 message 版分开;v2 自身的公开重载不变。step.starting返回Message[]通用历史重写路径及rewrittenBy追踪;replaceHistory()、setContext()与 compaction/splice 通道保留。Behavior Changes and Affected Users
sendNowQueued独立命名,状态类型复用单一字段来源step.starting通用消息重写Message[]并触发context.settledundefined/blockedreplaceHistory()/setContext()仍可使用验证:core 与 agent-core-v2
tsc --noEmit通过;Linux 远程环境相关回归 52 个文件、628/628;仓库完整 lint 通过;本层 diff 检查通过。Checklist
/approve).