Repository navigation
fix(cli): cancel interrupted skills status reports - #198298
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. What this changesThe PR cancels pending skills status requests after interruption, suppresses late output, and preserves interrupt exit codes. Example: Press Ctrl-C while
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a current CLI interruption bug with a focused change, and no actionable defects were found; the exact-head CI gate remains pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe skills CLI resolves the selected workspace, reads skills.status through the Gateway client, and formats reports, with local discovery available only for eligible implicit-local failures. flowchart TD
A[Skills CLI command] --> B[Shared report reader]
C[Command cancellation signal] --> B
B --> D[Gateway client]
D --> E[Gateway skills status]
B --> F[Eligible local discovery]
B --> G[Report output unless canceled]
Technical reviewBest possible solution: Land the focused signal wiring through the existing report and transport owners once the required CI gate passes. Do we have a high-confidence way to reproduce the issue? Current-main source exposes the missing signal and unconditional rendering path, supported by inspected before/after CLI receipts and obviyus's current-head observations; no target code was executed during this review. Is this the best way to solve the issue? This is the smallest complete repair: reuse the command signal and Gateway abort owner, stop canceled failures before fallback, suppress late rendering, and preserve the info interrupt outcome. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a48a3175600e. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +16, Tests -1. Total +15 across 3 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. Review metrics
LabelsLabel changes: No label 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 HistoryReview history (1 earlier review cycle)
Reviewed November 13, 2026, 10:10 AM ET / 15:10 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Proof on the built CLI (node 24.22.1, secretless Docker). A real Interrupted, main (both rounds the same): The read keeps running until the 1.5 s Gateway timeout, then falls back to a local scan and prints that report after the interrupt. Interrupted, candidate (both rounds the same): Controls, both lanes, both rounds:
Tests: the new interrupt case is paid for by folding the |
fix(skills): stop skills status reads when skills list, info or check is interrupted openclaw skills list, skills info and skills check read skills.status without the command's abort signal, so Ctrl-C or SIGTERM left the read running until the Gateway call timed out; the command then fell back to a local scan and printed the full report after the interrupt. The status read now takes the command's abort signal, matching skills update. Uninterrupted runs, missing-skill and auth failures, and skills update are unchanged. No new text. Evidence: the built CLI in a secretless node:24.22.1 container against a real gateway run behind a relay that holds the skills.status reply, skills list, info and check, plain and --json, SIGINT and SIGTERM, main twice and candidate twice. On main the read kept going for about 1.9 s after the signal and the full late report printed. With this change the command exits 130 or 143 within about 0.03 s and prints only the existing interrupt line. Uninterrupted output, a missing skill, a wrong token and skills update --all behave the same on both. Net -1 test lines. Details: openclaw#198298 (comment). Thanks @Alix-007. Co-authored-by: Ayaan Zaidi <[email protected]>
|
Thanks @obviyus for checking all six report modes and folding the regression into the routing coverage! |
fix(cli): stop skills verify ClawHub reads on Ctrl-C and SIGTERM `openclaw skills verify` (and `--card`) called the ClawHub verification and card readers without the command's abort signal, so a Ctrl-C or SIGTERM during a slow ClawHub request left the request running and the CLI printed a late report after the interrupt notice. Both readers already accept a signal; the verify action now passes the existing one, as `skills status` (#198298), `skills update --all` (#198163) and `skills search` already do. No new text. Evidence: host, isolated state, a workspace with an installed ClawHub skill, `OPENCLAW_CLAWHUB_URL` pointed at an unroutable address so the TCP connect naturally stays in SYN_SENT; SIGINT and SIGTERM sent to the real OpenClaw CLI process (ocx src traps terminal signals), twice per side. Base exits 130/143 only after about 95 s and prints a late timeout report after the interrupt notice; this change exits 130/143 in 7-10 s with no output after the notice, the same time as the existing `skills search` cancellation control on this host. Uninterrupted errors are identical. Vitest-source: two cases fail on base, 8 pass here; full build and packed-install smoke pass. Receipts: #195342 (comment). Thanks @Alix-007. Co-authored-by: Ayaan Zaidi <[email protected]>
…5342) fix(cli): stop skills verify ClawHub reads on Ctrl-C and SIGTERM `openclaw skills verify` (and `--card`) called the ClawHub verification and card readers without the command's abort signal, so a Ctrl-C or SIGTERM during a slow ClawHub request left the request running and the CLI printed a late report after the interrupt notice. Both readers already accept a signal; the verify action now passes the existing one, as `skills status` (openclaw#198298), `skills update --all` (openclaw#198163) and `skills search` already do. No new text. Evidence: host, isolated state, a workspace with an installed ClawHub skill, `OPENCLAW_CLAWHUB_URL` pointed at an unroutable address so the TCP connect naturally stays in SYN_SENT; SIGINT and SIGTERM sent to the real OpenClaw CLI process (ocx src traps terminal signals), twice per side. Base exits 130/143 only after about 95 s and prints a late timeout report after the interrupt notice; this change exits 130/143 in 7-10 s with no output after the notice, the same time as the existing `skills search` cancellation control on this host. Uninterrupted errors are identical. Vitest-source: two cases fail on base, 8 pass here; full build and packed-install smoke pass. Receipts: openclaw#195342 (comment). Thanks @Alix-007. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Fixes:
skills list,infoandcheckkeep their Gateway read alive after an interrupt, then print misleading timeout diagnostics.User Impact
User impact: Ctrl-C/SIGTERM stops the pending report promptly, without a late report or timeout banner. Normal reports, missing-skill failures and authentication failures retain their outcomes.
Why This Change Was Made
Forward the existing command signal only through the shared skills report reader, reject aborted reads before offline fallback, suppress canceled output, and preserve the interrupt exit in info. Install/update refresh, verification and mutation routing keep their existing owners.
Related ownership: #195342 changes the separate skills verification HTTP path; its implementation is not included here.
Evidence
Product HEAD:
66ca45e8885a2d7a7d2b2bc498ee8f4720ceece8; acceptance-red BASE:eb1a592fc06233963cb8b70ad998f271b8e2da81.node openclaw.mjs skills list --json,skills info proof-skillandskills check --json. A transparent proxy forwards the real Gateway handshake/request and holds the successful actual skills.status reply before terminal Ctrl-C/SIGTERM is delivered. Actual PTY output, stderr and the exact held socket closure are recorded.pnpm test src/cli/skills-cli.commands.test.ts --maxWorkers=1. Scoped types, typed lint and formatting pass; clean exact-HEAD QA build 291.139s. Independent GPT-6.1 Sol adversarial review: PASS, no findings.Reproduce with the unchanged collector:
python3 skills-read-proof-v1.py CHECKOUT FRESH_OUTPUT NODE26 EXPECTATION skills. Environment and observations, BASE receipt, HEAD receipt, actual terminal/RPC output, independent review.Production +20/−4 lines; tests +14/−0 lines, 3 files. Existing-solutions preflight: reuse the existing command signal and Gateway abort owner; no new framework, dependency, configuration/default, public protocol/schema, permissions or migration. The complete bounded owner is covered as described above. Upstream CI is checked after publication.
Not tested: Skill execution, external ClawHub/Gateway services, install/update/verification cancellation, Windows/macOS and production load.