Repository navigation
fix: show background commands after agent turns - #110468
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 2:24 AM ET / 06:24 UTC. Summary PR surface: Source +209, Tests +323, Docs +1, Other +18. Total +551 across 17 files. Reproducibility: yes. source-reproducible with medium confidence: a process that crosses the exec yield threshold becomes backgrounded while the initiating agent turn has already ended. I could not execute the current-main or branch reproduction because read-only shell inspection failed before repository commands could run. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Retain the existing task-ledger projection approach if focused lifecycle review confirms one canonical exec row per yielded process, correct terminal-state precedence, and successful exact-head mobile/macOS validation. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible with medium confidence: a process that crosses the exec yield threshold becomes backgrounded while the initiating agent turn has already ended. I could not execute the current-main or branch reproduction because read-only shell inspection failed before repository commands could run. Is this the best way to solve the issue? Unclear. The proposed post-yield ledger projection and pre-notification finalization are plausible owner-boundary choices, but the repository and feature history could not be inspected deeply enough to establish that this is the best existing task-runtime seam. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 00eb33fe8e6e. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +209, Tests +323, Docs +1, Other +18. Total +551 across 17 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where users could ask an agent to start a CLI command in the background, end the agent turn, and then see no running task in the Web, iOS, or Android task view while the command was still active.
Why This Change Was Made
Background exec sessions now project a privacy-safe row into the durable task ledger only after the exec actually yields. The row is finalized before the existing completion heartbeat wakes the agent, supports operator cancellation, and is reconciled after a gateway restart. Command text and command output are not persisted in task metadata.
User Impact
Web, iOS, and Android now show one running background task for an agent-started CLI command after the initiating turn ends, then move it to finished when the command exits. Failed nonzero exits are shown as failed rather than successful.
Release note: Background CLI commands now remain visible in task views until completion.
AI-assisted: yes. I reviewed the implementation and understand the lifecycle, privacy, cancellation, and recovery behavior.
Evidence