Repository navigation
fix(acp): clear stale cancellation markers on every terminal path (#4618) - #4642
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 50 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
Codex Review SummaryThis 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. |
# Conflicts: # bin/opencode-acp-adapter.mjs # bin/opencode-acp-adapter.test.mjs
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Fixes #4618 (Codex P2 on #3997 r4437436119).
session/cancelrecords only while a prompt is in flight (pendingPrompts.has), so a cancel racing completion cannot arm a stale marker for the next prompt.finishPromptalways drops the marker;session.errorand failedprompt_asyncsetup clear it too, covering every terminal path.stopReason: end_turn.Verification (laptop worktree /home/user/git/fleet/6520, base acb3e06):
node --test bin/opencode-acp-adapter.test.mjs— 6 pass (5 existing + 1 new).cancelled); post-fix same probe returnsend_turn; error-path probe returns error thenend_turn.Task 6520 (repo-health-code-pilot, worker repo-worker-code, lane aea12c82-c5af-4e5a-9b66-f8e360f87177).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.