Skip to content

fix(channels): list channel catalog status - #78591

Closed
steipete wants to merge 1 commit into
mainfrom
fix/channels-list-catalog-status
Closed

steipete wants to merge 1 commit into
mainfrom
fix/channels-list-catalog-status

Conversation

@steipete

@steipete steipete commented May 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix openclaw channels list so it lists channel surfaces only, instead of mixing in model/auth provider profiles.

  • includes bundled chat channels, trusted catalog channels, and configured channel ids
  • reports configured/enabled/installed status for each channel
  • keeps configured account detail rows under each channel
  • removes auth provider and provider usage output from channels list
  • updates CLI help text to match the command semantics

Verification

pnpm exec oxfmt --write src/commands/channels/list.ts src/commands/channels.list.test.ts src/cli/channels-cli.ts
pnpm exec vitest run src/commands/channels.list.test.ts --maxWorkers=1 --no-fileParallelism
pnpm exec tsgo -p test/tsconfig/tsconfig.core.test.json --incremental false --pretty false --noEmit
git diff --check

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes commands Command implementations size: M maintainer Maintainer-authored PR labels May 6, 2026
@clawsweeper

clawsweeper Bot commented May 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 3, 2026, 5:00 PM ET / 21:00 UTC.

Summary
This PR changes openclaw channels list to list channel catalog/status rows, removes auth-provider and usage output from the command, and updates the channel-list help text and tests.

PR surface: Source +82, Tests +15. Total +97 across 3 files.

Reproducibility: yes. for the review blockers: source inspection of the PR head shows opts.usage is discarded, JSON is written under channels, and catalog metadata can be masked by earlier entries. I did not run commands because this review is read-only.

Review metrics: 1 noteworthy metric.

  • CLI/JSON contract blockers: 1 stale flag path, 1 JSON root rename, 1 catalog precedence issue. These are user-facing command/API compatibility concerns that green unit tests would not settle before merge.

Root-cause cluster
Relationship: superseded
Canonical: #78456
Summary: The same channel-list cleanup is already implemented by the merged sibling PR, while this PR is a conflicting older branch with a duplicate predecessor using the same head SHA.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🧂 unranked krab
Patch quality: 🧂 unranked krab
Result: blocked until real behavior proof from a real setup is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Close as superseded by the merged sibling PR, or rebase on current main before any further review.
  • If revived, preserve the released JSON/CLI contracts and resolve the stale flag and catalog precedence findings.
  • [P1] Add redacted real terminal output, screenshots, logs, or linked artifacts showing the after-fix openclaw channels list behavior.

Proof guidance:

  • [P1] Needs real behavior proof before merge: The PR body lists formatter, unit-test, typecheck, and diff-check commands, but it does not include after-fix real CLI output, terminal screenshots, logs, or linked artifacts showing the changed command behavior. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Risk before merge

  • [P1] The PR branch is dirty against current main, so any revival needs a rebase or replacement review rather than landing the submitted branch as-is.
  • [P1] The branch changes the JSON contract to { channels } and leaves --no-usage registered but ignored; if merged after conflict resolution, that could break scripts or preserve a misleading CLI flag.
  • [P1] The current PR body only lists formatter/unit/typecheck commands, so it does not satisfy the external-PR real behavior proof gate.

Maintainer options:

  1. Close as superseded after maintainer review (recommended)
    Keep the implementation from Feat/channels list show all and drop auth #78456 and close this conflicting branch once the protected label has been handled.
  2. Rebase and preserve current contracts
    If maintainers want to revive the branch, rebase it onto current main, preserve the released chat JSON contract, remove or implement stale flag handling, and re-prove the CLI behavior.
  3. Sponsor a different breaking contract
    Maintainers could intentionally choose a different JSON/CLI contract, but that should come with explicit migration docs and upgrade proof before merge.

Next step before merge

  • [P1] The protected maintainer label, dirty merge state, and already-merged sibling implementation make this a maintainer disposition item, not a safe repair-job candidate.

Security
Cleared: No concrete security or supply-chain concern was found in the CLI command, help text, and unit-test changes.

Review findings

  • [P1] Preserve the JSON chat contract — src/commands/channels/list.ts:237
  • [P2] Honor or remove the usage option — src/commands/channels/list.ts:148
  • [P2] Let catalog metadata override fallback fields — src/commands/channels/list.ts:160-162
Review details

Best possible solution:

Keep the released/current implementation from #78456 and close this stale branch after explicit protected-label maintainer review.

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

Yes for the review blockers: source inspection of the PR head shows opts.usage is discarded, JSON is written under channels, and catalog metadata can be masked by earlier entries. I did not run commands because this review is read-only.

Is this the best way to solve the issue?

No. The merged implementation in #78456 is the better solution because it removes the stale flag across CLI paths, preserves the chat JSON root with added metadata, includes docs/tests, and covers the installed-but-unconfigured catalog regression.

Full review comments:

  • [P1] Preserve the JSON chat contract — src/commands/channels/list.ts:237
    channels list --json previously exposed channel accounts under chat, but this branch writes only { channels }. Existing scripts would lose the documented channel-account payload shape; the merged implementation keeps chat and adds metadata under each channel for a safer migration path.
    Confidence: 0.91
  • [P2] Honor or remove the usage option — src/commands/channels/list.ts:148
    channelsListCommand discards opts.usage, while this branch still registers --no-usage in the CLI. Users and scripts get identical behavior regardless of the flag, so the branch should either remove the flag everywhere or wire it to real output behavior.
    Confidence: 0.93
  • [P2] Let catalog metadata override fallback fields — src/commands/channels/list.ts:160-162
    upsert applies ...existing after ...entry, so a runtime plugin inserted first can prevent trusted catalog label/order metadata from winning later. That makes catalog-backed installed channels sort or display with fallback fields instead of authoritative catalog metadata.
    Confidence: 0.87

Overall correctness: patch is incorrect
Overall confidence: 0.91

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 010b61746379; fix evidence: release v2026.6.11, commit 9170243f9246.

Label changes

Label justifications:

  • P2: The item is a normal-priority CLI/channel-list cleanup that is already solved elsewhere but still needs maintainer disposition because the branch is conflicting and protected.
  • merge-risk: 🚨 compatibility: The PR changes the command's CLI flag and JSON output contract in ways that could break existing scripts or preserve misleading behavior if merged.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🧂 unranked krab.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body lists formatter, unit-test, typecheck, and diff-check commands, but it does not include after-fix real CLI output, terminal screenshots, logs, or linked artifacts showing the changed command behavior. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed

PR surface:

Source +82, Tests +15. Total +97 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 2 144 62 +82
Tests 1 105 90 +15
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 249 152 +97

What I checked:

  • Current main implements channel-only listing: Current main exposes only json and all options, renders configured/available/installable chat channels under chat, and prints a static pointer to openclaw status or openclaw models list for model-provider usage. (src/commands/channels/list.ts:23, 010b61746379)
  • Current tests cover the requested catalog behavior: The current test suite asserts no auth or usage JSON fields and includes the WeCom-like regression where a catalog channel installed on disk but unconfigured still appears under --all. (src/commands/channels.list.test.ts:541, 010b61746379)
  • Current CLI and docs advertise the merged command contract: Current CLI registration has --all and no --no-usage, and docs explain that auth profiles and model usage moved to openclaw models auth list, openclaw status, or openclaw models list. Public docs: docs/cli/channels.md. (docs/cli/channels.md:31, 010b61746379)
  • Merged sibling PR owns the implementation: Feat/channels list show all and drop auth #78456 merged on 2026-05-07 with merge commit 9170243 and changed the same command, tests, route args, CLI help, and docs. (9170243f9246)
  • Release provenance: The latest release is v2026.6.11, published 2026-06-30; direct tag-file inspection shows the released channels list source, CLI help, tests, and docs include the merged channel-only behavior. (src/commands/channels/list.ts:23, e085fa1a3ffd)
  • PR branch still has compatibility blockers: The PR head still accepts but discards opts.usage, writes JSON as { channels } instead of preserving the existing chat root, and has catalog metadata merge-order concerns already noted in review comments. (src/commands/channels/list.ts:148, 288876dda789)

Likely related people:

  • sliverp: Authored and merged the sibling PR that now owns the channel-only channels list behavior, route parsing, tests, docs, and release-note context. (role: superseding implementation author and merger; confidence: high; commits: c6f788d2c1d0, 26be932c8f64, f436dd575b5b; files: src/commands/channels/list.ts, src/commands/channels.list.test.ts, src/cli/channels-cli.ts)
  • Dallin Romney: Current origin/main is at a recent commit by this author; this is weak ownership signal for repository state, not specific channel-list authorship. (role: recent main contributor; confidence: low; commits: 010b61746379; files: src/commands/channels/list.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 288876dda7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

return;
}
const includeUsage = opts.usage !== false;
void opts.usage;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Honor or remove the usage option

channelsListCommand now discards opts.usage (void opts.usage), so callers get the same result regardless of --no-usage. The CLI still exposes that flag, which creates a misleading contract for users and scripts that relied on it to control usage snapshot behavior. Please either wire the option back into output behavior or remove the flag and related help text so the command surface matches runtime behavior.

Useful? React with 👍 / 👎.

Comment on lines +161 to +162
...entry,
...existing,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Let catalog metadata override plugin fallback fields

The upsert merge order applies ...existing after ...entry, so once a channel is first inserted from runtime plugins, later trusted-catalog data cannot replace fields like label/order. This causes installed catalog channels to ignore catalog ordering metadata and sort incorrectly when plugin meta omits order (for example, manifest-derived plugins in read-only.ts do not set meta.order). The merge precedence should preserve status unions while still allowing authoritative catalog metadata to update display fields.

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot mentioned this pull request May 7, 2026
12 of 25 tasks
@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. labels Jun 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jun 23, 2026
@steipete

steipete commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Closing as superseded. #78456 shipped the current channel-catalog/list behavior, and current main has continued evolving that surface (src/commands/channels/list.ts) with runtime status and external-plugin repair handling. This stale branch no longer represents the maintained implementation.

Thanks for preserving the earlier fix direction.

@steipete steipete closed this Jul 5, 2026
@shakkernerd
shakkernerd deleted the fix/channels-list-catalog-status branch October 19, 2026 23:19
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 maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant