Repository navigation
fix(cli): keep running stream jobs visible as running - #146793
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: needs maintainer review before merge. Reviewed September 13, 2026, 2:18 AM ET / 06:18 UTC. ClawSweeper reviewWhat this changesThe PR keeps active stream-triggered automations labeled running in CLI list and detail views, with regression coverage for disabled sources and unchanged JSON output. Merge readiness✅ Ready for maintainer review Keep open: the display bug remains on current main and in v2026.9.4. The focused repair preserves existing status contracts, and no actionable correctness or security findings were identified. Priority: P2 Review scores
Verification
How this fits togetherThe automation CLI reads job state from the Gateway and formats it for operators or JSON consumers. An automation run and its stream source have separate statuses; a disabled source does not mean an active run has stopped. flowchart TD
A[Automation list or show command] --> B[Gateway job state]
B --> C[Compute active run status]
C --> D{Output format}
D --> E[Canonical JSON status]
D --> F[Human status formatter]
F --> G[Running label and separate stream diagnostics]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +42. Total +42 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep active-run status authoritative in human output while preserving separate stream diagnostics and the existing JSON contract. Do we have a high-confidence way to reproduce the issue? Yes, from source: an enabled stream job with runningAtMs and streamStatus disabled is mislabeled by current main's list/show formatter. No runtime reproduction was executed during this review. Is this the best way to solve the issue? Yes. Restricting the existing display override is the narrowest repair and preserves idle-source diagnostics, JSON semantics, and scheduler behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c266c9d0a499. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit '2acbeee461474b6ba41f5186ae1a4e0e80f4087a': (117 commits) fix(ui): import the shared deferred helper in sidebar scope tests (#146862) fix(ui): copy chat content from its context menu (#146679) perf(memory): defer legacy sidecar writer imports (#146815) fix(e2e): accept expected Kitchen Sink worker rejection (#146681) fix(ui): distinguish absolute and relative file links (#146572) feat(ui): keep file previews in tabs and render HTML (#146672) refactor: reuse shared deferred promises in UI tests (#146670) fix: gateway stop/restart refuses a healthy gateway when the Windows process snapshot misses (#146387) improve(crabbox): keep healthy cloud desktops warm on resume (#146816) fix: report blocked SQLite WAL checkpoints in status and doctor (#146775) feat: share browser dashboards with agents (#146702) fix(doctor): continue repairs after legacy agent directory collisions (#146092) feat(agents): retry cyber-refused embedded turns on Daybreak (#145291) fix: restore media uploads through protected egress (#144902) refactor(qa): share capture filter rendering (#146696) fix(cli): keep running stream jobs visible as running (#146793) refactor(parallels): share gateway readiness loop (#146694) fix(sessions): avoid rewriting already-consumed input on release (#146795) fix: preserve scheduled conversation delivery after Doctor (#146794) perf(ui): avoid redundant session-row provenance work (#146797) ...
What Problem This Solves
An automation can be running while its automatic stream source is disabled, but
cron listandcron showlabel that active run as disabled.User Impact
Both commands now show the active run as running.
cron showcontinues to report the separate disabled stream status and its diagnostic; idle disabled sources and JSON output retain their existing behavior.Why This Change Was Made
The shared display formatter was replacing the already-computed running status with the stream source's disabled label. Apply that display override only when a run is not active. This changes one condition: production +1/−1, net zero.
Evidence
Three regression assertions failed before the repair, with the idle control passing. All 141 focused and sibling tests pass afterward, including registered list/show commands, unchanged JSON output, and process-output coverage.
Paired normal builds and 24 ordinary built CLI commands against a synthetic read-only Gateway RPC fixture verify the human labels, JSON, both command aliases, 32 expected read RPCs, empty stderr, natural exits, and completed fixture cleanup. This proves CLI presentation, not scheduler execution.
The native comparison ran on
bd002c80before a mechanical base advance. The full changed gate initially found an unused import also reproduced on clean baseline; the import was separately removed in #146689. The refreshed candidate onbf3d8778passes the full changed gate and all 141 tests again, with identical touched files and patch bytes. Fresh managed P0–P2 review found no actionable findings. Hosted CI34742233864 passes on the exact head after one job retry. The original required topology job was cancelled before receiving a runner (runner_id0, zero executed steps); all other selected jobs passed. That cancellation and the successful retry are retained. Introduction provenance is unverified.