Skip to content

fix(cli): keep running stream jobs visible as running - #146793

Merged
steipete merged 1 commit into
mainfrom
codex/qa-cron-stream-running-20260913
Sep 13, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-cron-stream-running-20260913

Conversation

@steipete

@steipete steipete commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

An automation can be running while its automatic stream source is disabled, but cron list and cron show label that active run as disabled.

User Impact

Both commands now show the active run as running. cron show continues 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 bd002c80 before 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 on bf3d8778 passes 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.

@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: XS maintainer Maintainer-authored PR labels Sep 13, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 2:18 AM ET / 06:18 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: c0478e20f84b050e1f829e23bf061169c28ea685

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, maintainable repair with meaningful command-boundary regression coverage and no identified blockers.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies a member-authored PR, so the external-contributor proof gate does not apply. Its body reports built list/show CLI comparisons against a synthetic Gateway fixture exercising the changed formatter; those observations were not independently replayed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies a member-authored PR, so the external-contributor proof gate does not apply. Its body reports built list/show CLI comparisons against a synthetic Gateway fixture exercising the changed formatter; those observations were not independently replayed.
Evidence reviewed 8 items Introduced production change: The independently inspected merge-base-to-head diff changes only the disabled-source display override. Running status cannot fall through to the disabled or prior-delivery decorations.
Current main still needs the repair: Current main computes running first but subsequently replaces its human label whenever streamDisabled is true. JSON enrichment bypasses that decoration.
Latest release comparison: The v2026.9.4 source also contains the unconditional streamDisabled override, so the latest supplied release does not include this repair.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source 0, Tests +42. Total +42 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 2 44 2 +42
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 45 3 +42

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add P2: Incorrect automation status misleads operators, but the defect is confined to CLI presentation and does not change execution.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies a member-authored PR, so the external-contributor proof gate does not apply. Its body reports built list/show CLI comparisons against a synthetic Gateway fixture exercising the changed formatter; those observations were not independently replayed.

Label justifications:

  • P2: Incorrect automation status misleads operators, but the defect is confined to CLI presentation and does not change execution.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies a member-authored PR, so the external-contributor proof gate does not apply. Its body reports built list/show CLI comparisons against a synthetic Gateway fixture exercising the changed formatter; those observations were not independently replayed.

Evidence

What I checked:

  • Introduced production change: The independently inspected merge-base-to-head diff changes only the disabled-source display override. Running status cannot fall through to the disabled or prior-delivery decorations. (src/cli/cron-cli/shared.ts:251, c0478e20f84b)
  • Current main still needs the repair: Current main computes running first but subsequently replaces its human label whenever streamDisabled is true. JSON enrichment bypasses that decoration. (src/cli/cron-cli/shared.ts:251, c266c9d0a499)
  • Latest release comparison: The v2026.9.4 source also contains the unconditional streamDisabled override, so the latest supplied release does not include this repair. (src/cli/cron-cli/shared.ts, 3a9d69db306c)
  • Registered command regression coverage: The added cases invoke registered list/show commands through real Gateway handlers with mocked transport and state, checking the running label, retained disabled-source diagnostic, and canonical JSON. The shared formatter test also retains the idle control. (src/cli/cron-cli/cron-pagination.gateway.test.ts:158, c0478e20f84b)
  • Documented output contract: The CLI documentation distinguishes human list/show output from canonical JSON status derived from enabled, runningAtMs, and lastRunStatus. Both commands consume the shared formatter; no new status owner or configuration path is introduced. Public docs: docs/cli/cron.md. (docs/cli/cron.md:396, c0478e20f84b)
  • Reported validation and related work: The captured PR body reports before-fix failures, 141 passing focused/sibling tests, and 24 built CLI invocations against a synthetic read-only Gateway fixture covering labels, aliases, JSON, stderr, and exits. This is CLI presentation evidence, not scheduler execution. The merged fix: avoid channel discovery when plugins are disabled #146689 addresses separate discovery/import work and does not supersede this fix. (c0478e20f84b)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 6fc9fdf into main Sep 13, 2026
159 of 161 checks passed
@steipete
steipete deleted the codex/qa-cron-stream-running-20260913 branch September 13, 2026 07:01
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 13, 2026
* 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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant