Repository navigation
Handle orphan exec ends without clobbering active exploring cell - #12313
Conversation
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Document the exec-end ownership routing contract in chatwidget and explain why orphan unified exec ends render as standalone history entries while an unrelated exploring cell remains active. Also document ExecCell::complete_call returning false as a routing mismatch signal so future changes do not treat missing call IDs as a benign no-op.
|
Ran a documentation-pass skill with Codex to generate docs/comments to help understand this a bit better. Pushed a docs-only follow-up commit on top of this PR that:
No runtime behavior changes in this follow-up; it is only rustdoc/comments. I also ran cargo test -p codex-tui exec_end_without_begin after the doc pass. |
Problem
Before this change, the end-handling path could treat that event like it belonged Mental modelThe chat transcript has two exec-related states:
The call-id match is the ownership check. Non-goalsThis change does not redesign exec grouping, change how exploring commands are It also does not change command output semantics for unified exec interaction TradeoffsThe main tradeoff is more branching in The code now treats "call id not found in the active exec cell" as meaningful ArchitectureThe change introduces an explicit exec-end target classification inside
ObservabilityThis behavior is primarily observable in transcript rendering:
Debugging should focus on call-id ownership and the active-cell type/state at the TestsAdded/updated
|
Summary
Fix for #12278