Skip to content

fix(channels): prefer runtime status in channel list - #82016

Merged
steipete merged 1 commit into
mainfrom
codex/discord-runtime-channel-list
May 15, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/discord-runtime-channel-list

Conversation

@steipete

@steipete steipete commented May 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Make text openclaw channels list prefer reachable Gateway channels.status account snapshots before command-local config/env inspection.
  • Keep --json output on the existing local schema/path.
  • Mark configured-but-unavailable credential sources as *-unavailable in text output.
  • Add regression coverage for Gateway-preferred Discord status, fallback behavior, and unavailable credential rendering.

Verification

  • node scripts/run-vitest.mjs src/commands/channels.list.test.ts
  • pnpm exec oxfmt --check src/commands/channels/list.ts src/commands/channels.list.test.ts CHANGELOG.md
  • git diff --check
  • node scripts/crabbox-wrapper.mjs run --provider blacksmith-testbox --blacksmith-org openclaw --blacksmith-workflow .github/workflows/ci-check-testbox.yml --blacksmith-job check --blacksmith-ref main --idle-timeout 90m --ttl 240m --timing-json --shell -- "env CI=1 NODE_OPTIONS=--max-old-space-size=4096 OPENCLAW_TEST_PROJECTS_PARALLEL=6 OPENCLAW_VITEST_MAX_WORKERS=1 OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=900000 pnpm check:changed"

Real behavior proof

Behavior addressed: openclaw channels list --all now consults the running Gateway account snapshot for text output when reachable, so a Discord account that is available in the Gateway does not get downgraded by command-local token inspection.

Real environment tested: Patched OpenClaw checkout on macOS with the operator's real OpenClaw config and live command execution. Live Hetzner diagnostic before the patch also showed the split-brain state: Gateway status reported Discord configured/running/connected while installed channels list --all reported Discord default not configured with token=none.

Exact steps or command run after this patch: pnpm openclaw channels list --all

Evidence after fix: Terminal output from the patched command:

Chat channels:
- Discord default: installed, configured, enabled, token=config
- Slack default: installed, configured, enabled, bot=config, app=config
- Telegram default: installed, configured, enabled, token=tokenFile
- Feishu: not installed, not configured, disabled
- WeCom: not installed, not configured, disabled
- Google Chat: not installed, not configured, disabled
- Nostr: not installed, not configured, disabled
- Microsoft Teams: not installed, not configured, disabled
- Mattermost: not installed, not configured, disabled
- Nextcloud Talk: not installed, not configured, disabled
- Matrix: not installed, not configured, disabled
- LINE: not installed, not configured, disabled
- Weixin: not installed, not configured, disabled
- Zalo: not installed, not configured, disabled
- ClickClack: not installed, not configured, disabled
- Yuanbao: not installed, not configured, disabled
- Zalo Personal: not installed, not configured, disabled
- Synology Chat: not installed, not configured, disabled
- Tlon: not installed, not configured, disabled
- iMessage: not installed, not configured, disabled
- IRC: not installed, not configured, disabled
- QA Channel: not installed, not configured, disabled
- QQ Bot: not installed, not configured, disabled
- Signal: not installed, not configured, disabled
- Twitch: not installed, not configured, disabled
- WhatsApp: not installed, not configured, disabled

Observed result after fix: The real command output reports Discord as installed, configured, enabled with a credential source, and the command completes without disabling or hiding the channel row.

What was not tested: The original reporter's machine/plaintext upgrade config was not available; the service-only-env mismatch is covered by the live before-state diagnostic plus the Gateway-preferred regression in this patch.

Fixes #79343.

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: S maintainer Maintainer-authored PR labels May 15, 2026
@clawsweeper

clawsweeper Bot commented May 15, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(channels): prefer runtime status in channel list This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete steipete added the proof: override Maintainer override for the external PR real behavior proof gate. label May 15, 2026
@steipete
steipete merged commit b672be5 into main May 15, 2026
125 of 134 checks passed
@steipete
steipete deleted the codex/discord-runtime-channel-list branch May 15, 2026 04:42
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations maintainer Maintainer-authored PR proof: override Maintainer override for the external PR real behavior proof gate. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Discord channel becomes not configured, disabled after upgrade

1 participant