Skip to content

fix(channels): make status --channel all show every channel - #118124

Merged
vincentkoc merged 1 commit into
openclaw:mainfrom
ooiuuii:fix/channels-status-all
Aug 2, 2026
Merged

vincentkoc merged 1 commit into
openclaw:mainfrom
ooiuuii:fix/channels-status-all

Conversation

@ooiuuii

@ooiuuii ooiuuii commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users running openclaw channels status --channel all would get unknown channel: all and fall back to an empty config-only result, even though the CLI help advertises all as a supported channel value.

Why This Change Was Made

The shared status command now normalizes its channel argument once and translates the all sentinel 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 --json on the beta build returned unknown channel: all and entered config-only fallback. Inspection of current main confirmed the same literal all value was forwarded to the Gateway, where omission of channel is the established all-channel contract.

Regression coverage now exercises the real route-first CLI path with all and ALL, asserting that the Gateway request omits channel while the cold-path imports stay lazy. The config-only command-flow test also verifies that all retains 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-build artifact from exact-head CI run 30761642377 (headSha=e096241428c932dc19dbb6425555a93e425eed2e, artifact SHA-256 8A35807A85D6D13BE050149E61CBD2AF191BBDC16C7346932FF35A0040F0D768) 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 discord and telegram entries 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 --check on all three changed files: passed
  • oxlint on all three changed files: passed
  • git diff --check origin/main...HEAD: passed
  • repository autoreview with TruffleHog scan: clean, no actionable findings; correctness score 0.98
  • exact-head pull-request CI: passed (run 30762559928, attempt 2); 57 jobs passed, 13 were skipped by scope, and none failed

The 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

  • Exact merge-result artifact: dist-runtime-build from run 30766853820, SHA-256 762f88929112c6cc65249daf2e5d17f47e356ea706bdd831619685b1d55e9452.
  • Artifact build-info.json identifies merge commit a1272618bd17df80023f41bb1110b7d1ef402de4, whose parents are live base b35b8e286df028ec3998b17b7f73dd9b1c673975 and repaired head e8a4661a443724b31efe9144811c401336bca978.
  • Reachable-Gateway run: exit 0, JSON parsed, Gateway status payload returned, and no unknown channel: all error.
  • Isolated config-only fallback with one configured clickclack channel and an unused loopback Gateway: exit 0, JSON parsed, gatewayReachable=false, configOnly=true, configuredChannels=["clickclack"], and no unknown channel: all error.
  • Local structured autoreview on e8a4661a443724b31efe9144811c401336bca978: clean, no actionable findings, correctness confidence 0.99.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes commands Command implementations size: XS labels Aug 2, 2026
@ooiuuii
ooiuuii marked this pull request as ready for review August 2, 2026 18:40
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. labels Aug 2, 2026
@clawsweeper

clawsweeper Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 5:20 PM ET / 21:20 UTC.

ClawSweeper review

What this changes

The PR converts the documented --channel all selector, including normalized spelling, into the existing unfiltered status request for both Gateway and config-only output.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

This PR remains necessary: current main advertises all as a valid status selector but forwards that literal to the Gateway, whose status handler treats an unrecognized supplied channel as an error. The branch repairs the mismatch at the command boundary, covers both route-first Gateway and config-only fallback paths, and includes refreshed-head packaged CLI proof; no blocking correctness or security finding was identified.

Priority: P2
Reviewed head: e8a4661a443724b31efe9144811c401336bca978

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong refreshed-head behavior proof backs a small, protocol-preserving repair with targeted regression coverage.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The PR body provides refreshed-head merge-result built-CLI evidence for both a reachable Gateway and an isolated config-only fallback, with successful JSON output and no unknown-channel error.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body provides refreshed-head merge-result built-CLI evidence for both a reachable Gateway and an isolated config-only fallback, with successful JSON output and no unknown-channel error.
Evidence reviewed 8 items Documented CLI contract: The status command help explicitly presents all as an accepted value for --channel, establishing the expected user-facing behavior.
Current-main failure path: Current main forwards any truthy opts.channel directly into the Gateway request, so the documented literal all is sent as though it were a channel id.
Gateway all-channel contract: The Gateway selects every plugin only when channel is omitted; when a supplied value cannot normalize to a real channel, it returns unknown channel. This confirms omission—not the string all—is the canonical protocol shape.
Findings None None.
Security None None.

How this fits together

openclaw channels status parses a channel selector and asks the Gateway for live channel state, falling back to configuration-derived status when the Gateway is unavailable. The selector must mean the same thing in both paths so operators see every configured channel when requesting all.

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

Before merge

  • Complete next step (P2) - This is an active, assigned, proof-positive implementation PR with no discrete repair finding for the automated repair lane.
Agent review details

Security

None.

PR surface

Source +5, Tests +14. Total +19 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 8 3 +5
Tests 2 18 4 +14
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 26 7 +19

Review metrics

None.

Technical review

Best possible solution:

Land the focused command-boundary repair so the documented all selector consistently maps to the established omission-based all-channel contract in both live and fallback status flows.

Do we have a high-confidence way to reproduce the issue?

Yes—source establishes a high-confidence current-main path: --channel all is documented, forwarded literally by the command, and rejected by the Gateway because omission is the all-channel contract. The PR body also supplies after-fix packaged CLI results for both reachable-Gateway and fallback paths.

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 all would expand a transport contract, while changing only fallback output would leave the live path broken.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against c79dcff6086a.

Labels

Label justifications:

  • P2: This is a bounded CLI status regression with a clear repair and limited blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body provides refreshed-head merge-result built-CLI evidence for both a reachable Gateway and an isolated config-only fallback, with successful JSON output and no unknown-channel error.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides refreshed-head merge-result built-CLI evidence for both a reachable Gateway and an isolated config-only fallback, with successful JSON output and no unknown-channel error.

Evidence

What I checked:

  • Documented CLI contract: The status command help explicitly presents all as an accepted value for --channel, establishing the expected user-facing behavior. (src/cli/channels-cli.ts:192, dc16b1460b07)
  • Current-main failure path: Current main forwards any truthy opts.channel directly into the Gateway request, so the documented literal all is sent as though it were a channel id. (src/commands/channels/status.ts:55, c79dcff6086a)
  • Gateway all-channel contract: The Gateway selects every plugin only when channel is omitted; when a supplied value cannot normalize to a real channel, it returns unknown channel. This confirms omission—not the string all—is the canonical protocol shape. (src/gateway/server-methods/channels.ts:343, c79dcff6086a)
  • Canonical normalization behavior: The reused normalization helper trims and lowercases optional strings, so ALL is deliberately treated the same as all without adding a local coercion helper. (packages/normalization-core/src/string-coerce.ts:39, c79dcff6086a)
  • Branch repairs both output paths: The proposed command-boundary normalization removes only the all-channel sentinel before the Gateway request and before the config-only fallback, preserving ordinary specific-channel filtering. (src/commands/channels/status.ts:35, e8a4661a4437)
  • Regression coverage: The branch asserts that all and ALL omit channel from the routed Gateway request, and separately verifies that config-only fallback retains configured channels for all. (src/cli/channels-status-cold-imports.test.ts:58, e8a4661a4437)

Likely related people:

  • Peter Steinberger: Current blame attributes the CLI contract, command implementation, Gateway status selection, and adjacent tests to the same recent channels-status commit. (role: current status-path contributor; confidence: high; commits: dc16b1460b07; files: src/cli/channels-cli.ts, src/commands/channels/status.ts, src/gateway/server-methods/channels.ts)
  • Vincent Koc: The proposed head was committed by Vincent Koc, the PR is assigned to him in the supplied timeline, and repository history shows repeated work in the central channel-status files. (role: recent area contributor and current-head committer; confidence: medium; commits: e8a4661a4437; files: src/commands/channels/status.ts, src/commands/channels/status.runtime.ts)

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.

History

Review history (5 earlier review cycles)
  • reviewed 2026-08-02T18:45:59.955Z sha e096241428c932dc19dbb6425555a93e425eed2e :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-02T19:02:28.037Z sha e096241428c932dc19dbb6425555a93e425eed2e :: needs maintainer review before merge. :: none
  • reviewed 2026-08-02T19:10:06.059Z sha e096241428c932dc19dbb6425555a93e425eed2e :: needs maintainer review before merge. :: none
  • reviewed 2026-08-02T19:59:21.836Z sha e096241428c932dc19dbb6425555a93e425eed2e :: needs maintainer review before merge. :: none
  • reviewed 2026-08-02T21:04:00.930Z sha e8a4661 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 2, 2026
@ooiuuii ooiuuii closed this Aug 2, 2026
@ooiuuii ooiuuii reopened this Aug 2, 2026
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 2, 2026
@ooiuuii ooiuuii closed this Aug 2, 2026
@ooiuuii ooiuuii reopened this Aug 2, 2026
@ooiuuii ooiuuii closed this Aug 2, 2026
@ooiuuii ooiuuii reopened this Aug 2, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Aug 2, 2026
@vincentkoc
vincentkoc force-pushed the fix/channels-status-all branch from e096241 to e8a4661 Compare August 2, 2026 20:59
@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

@vincentkoc vincentkoc self-assigned this Aug 2, 2026
@clawsweeper

clawsweeper Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 2, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 2, 2026
@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 2, 2026
@vincentkoc
vincentkoc merged commit 9b6bda6 into openclaw:main Aug 2, 2026
139 of 153 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 3, 2026
…#118124)

Normalize the CLI-only `all` sentinel into the existing unfiltered channel-status request for both Gateway and config-only fallback paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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.

2 participants