Repository navigation
Suppress Pi notifications after interrupted turns - #9451
Conversation
📝 WalkthroughWalkthroughThe Pi extension suppresses duplicate completion notifications for aborted and explicitly marked completions. Regression tests verify single routed ChangesPi completion lifecycle
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant AgentEnd
participant PendingCompletion
participant publishPendingCompletion
participant StopHook
AgentEnd->>PendingCompletion: record completion and suppression state
PendingCompletion->>publishPendingCompletion: publish pending completion
publishPendingCompletion->>StopHook: emit routed Stop payload
publishPendingCompletion-->>StopHook: suppress duplicate notification
Possibly related PRs
Suggested reviewers: Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 inconclusive)
✅ Passed checks (24 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Summary
Testing
|
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
|
@codex review |
@lawrencecchen I can't start this review because your workspace has reached its free monthly review limit. cubic has reviewed 245,275 of the 240,000 allowed lines of code this month. Reviews resume on 1 September 2026 (in 29 days). Paid plans include much higher monthly review limits. Upgrade now to resume reviews. To help optimise your usage, you can tune cubic to get the most out of your usage limits:
|
|
✅ Action performedReview finished.
|
|
To use Codex here, create a Codex account and connect to github. |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ 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". |
|
Regression proof:
|
|
Fixed-head CI completed successfully: https://github.com/manaflow-ai/cmux/actions/runs/30810176184 |
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ 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". |
Summary
Stoplifecycle bookkeeping while marking the native cmux fallback as already handledagent_endinspection to one reverse pass and leave all subprocess work on the existing detached lifecycle queueThis is a narrow alternative to the broader unsuccessful-outcome work in #9021, and additionally covers input extensions that normalize an abort to
stopto avoid Pi's aborted-message UI.Testing
ebac29cf20: CI app-host shard 4 failed in the new interrupted-turn assertion, proving the regression0bac41fa56: full dispatched CI passed, includingtests/test_pi_extension_install.py, aggregatetests, and the universal Release buildgit diff --checktests/test_pi_extension_dispatch.pycovers immediate lifecycle-handler return and serialized detached hook delivery/autoreview: localcodex review --base origin/mainfound no actionable regressions; CodeRabbit found no actionable comments and passed its blocking-runtime and algorithmic-complexity checks./scripts/reload.sh --tag piintnotif; package resolution hit a transient Sentry artifact HTTP 500, then the retry was blocked by the repository's non-bypassable 250 GiB free-space floor. CI's macOS test and universal Release-build lanes passed instead.Demo Video
Review Trigger (Copy/Paste as PR comment)
Checklist
Summary by CodeRabbit