Repository navigation
fix(channels): make status --channel all show every channel - #118124
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 5:20 PM ET / 21:20 UTC. ClawSweeper reviewWhat this changesThe PR converts the documented Merge readinessThis PR remains necessary: current Priority: P2 Review scores
Verification
How this fits together
flowchart LR
A[Operator CLI command] --> B[Channel status command]
B --> C{Channel selector}
C -->|all| D[Unfiltered status request]
C -->|specific channel| E[Filtered status request]
D --> F[Gateway channel status]
E --> F
F --> G[Live status output]
B --> H[Config-only fallback output]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +5, Tests +14. Total +19 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Land the focused command-boundary repair so the documented Do we have a high-confidence way to reproduce the issue? Yes—source establishes a high-confidence current-main path: Is this the best way to solve the issue? Yes. Normalizing the sentinel once at the command boundary is the narrowest maintainable repair because it preserves the Gateway protocol and applies equally to the fallback; teaching only the Gateway about AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c79dcff6086a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
e096241 to
e8a4661
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
…#118124) Normalize the CLI-only `all` sentinel into the existing unfiltered channel-status request for both Gateway and config-only fallback paths.
What Problem This Solves
Fixes an issue where users running
openclaw channels status --channel allwould getunknown channel: alland fall back to an empty config-only result, even though the CLI help advertisesallas a supported channel value.Why This Change Was Made
The shared status command now normalizes its channel argument once and translates the
allsentinel into the existing unfiltered request shape before both the Gateway call and config-only fallback. Specific channel filters, the Gateway protocol, plugin discovery, and status payloads are unchanged.This change was AI-assisted. I verified the owner boundary, kept the patch scoped to the status command, and reviewed the resulting diff and evidence.
User Impact
Users can request status for every configured channel with
--channel all, including case- and whitespace-normalized forms, without receiving a false unknown-channel or Gateway-unreachable result.Evidence
Before the fix,
openclaw channels status --channel all --probe --jsonon the beta build returnedunknown channel: alland entered config-only fallback. Inspection of currentmainconfirmed the same literalallvalue was forwarded to the Gateway, where omission ofchannelis the established all-channel contract.Regression coverage now exercises the real route-first CLI path with
allandALL, asserting that the Gateway request omitschannelwhile the cold-path imports stay lazy. The config-only command-flow test also verifies thatallretains configured channels after a Gateway failure; existing tests continue to cover specific-channel forwarding and filtering.After-fix CLI proof
I downloaded the
dist-runtime-buildartifact from exact-head CI run 30761642377 (headSha=e096241428c932dc19dbb6425555a93e425eed2e, artifact SHA-2568A35807A85D6D13BE050149E61CBD2AF191BBDC16C7346932FF35A0040F0D768) and ran its built CLI. The summaries below were generated from separately captured stdout/stderr; channel/account details from the live Gateway were reduced to counts and were not posted.Live local Gateway:
{ "command": "openclaw channels status --channel all --json --timeout 5000", "exitCode": 0, "jsonParsed": true, "containsUnknownChannelError": false, "gatewayReachable": true, "channelGroups": 4, "accountGroups": 4 }Config-only fallback, using an isolated state directory with dummy
discordandtelegramentries and an unused loopback port:{ "command": "openclaw channels status --channel all --json --timeout 1000", "exitCode": 0, "jsonParsed": true, "containsUnknownChannelError": false, "gatewayReachable": false, "configOnly": true, "configuredChannels": ["discord", "telegram"] }Validation completed before push:
oxfmt --checkon all three changed files: passedoxlinton all three changed files: passedgit diff --check origin/main...HEAD: passedautoreviewwith TruffleHog scan: clean, no actionable findings; correctness score 0.98The linked worktree intentionally has no local dependency tree, and the configured Testbox clients are unavailable on this Windows host. I therefore relied on exact-head pull-request CI rather than installing or reconciling dependencies locally.
Maintainer proof on refreshed head
dist-runtime-buildfrom run 30766853820, SHA-256762f88929112c6cc65249daf2e5d17f47e356ea706bdd831619685b1d55e9452.build-info.jsonidentifies merge commita1272618bd17df80023f41bb1110b7d1ef402de4, whose parents are live baseb35b8e286df028ec3998b17b7f73dd9b1c673975and repaired heade8a4661a443724b31efe9144811c401336bca978.unknown channel: allerror.clickclackchannel and an unused loopback Gateway: exit 0, JSON parsed,gatewayReachable=false,configOnly=true,configuredChannels=["clickclack"], and nounknown channel: allerror.e8a4661a443724b31efe9144811c401336bca978: clean, no actionable findings, correctness confidence 0.99.