Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesThis PR restores in-memory background-command notifications and removes stored completion delivery, restart recovery, and completion-before-Goal ordering. Example: An incognito chat starts a background command that prints READY after its initiating turn finishes.
Review scores
ProductKind: Bug fix · Worth it: No · Fix scope: Partial Merge readiness⛔ Blocked before merge - 4 items remain Keep this maintainer-authored PR open, but do not merge this revision: the rollback leaves the incognito failure reachable and makes existing saved exec completions unrecoverable. Priority: P1 Before merge
Findings
Tests
Agent review detailsHow this fits togetherBackground process exits enter the session-event owner, which admits completion turns into the originating conversation; pending-input storage also supports restart recovery and Goal ordering. flowchart LR
A[Background command exits] --> B[Exec notification owner]
B --> C[Session event admission]
C --> D[Session controller]
D --> E[Agent completion turn]
F[Pending input storage] --> D
E --> G[Goal continuation]
Technical reviewBest possible solution: Validate the focused forward repair in #204532 while preserving saved completions and existing Goal ordering. Do we have a high-confidence way to reproduce the issue? The source exposes both failure paths, and the same author's forward PR reports matching real-Gateway incognito failures before and after the original change; no target code was executed during this review. Is this the best way to solve the issue? A full rollback is not the best repair: it leaves the incognito lifetime cause intact and removes recovery of stored results, whereas the forward candidate targets the existing notification owner. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 856ee3d006ee. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -431, Tests -214, Docs -1. Total -646 across 17 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 24, 2026, 4:32 AM ET / 09:32 UTC. |
Result
Reverts #204265 (463d774). Background exec results in incognito chats are lost: the result never reaches the chat.
Why now
A real scratch-Gateway run on clean
main(isolated state, real model) started a background exec in an incognito chat. No completion turn arrived within 240 s. The Gateway logged:owe()throws for incognito sessions, and the exec-notify catch only logs it, so a produced result is silently dropped. The shared team Gateway has just auto-deployed a build that contains 463d774. This revert stops the loss before it reaches more users.Reland plan
#204265 relands with the class fix:
owe()works for every session kind the old path served, incognito included, through the pending-input session-actor binding.owe()to throw and shows the user still sees something.src/sessionsowner's declared CI set (the fix(ci): bound agent owner PR selection to same-directory importers and a declared behavior set #204346 closing loop).Notes
A clean revert, apart from
src/sessions/owed.ts: #204478 edited it later, and it is deleted here as #204265 added it. Nothing else onmainimports it.