Skip to content

Refactor shared channel status read model - #82030

Merged
steipete merged 1 commit into
mainfrom
fix/channel-status-read-model
May 15, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/channel-status-read-model

Conversation

@steipete

@steipete steipete commented May 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

  • Extract shared channel status read-model helpers for Gateway channel account snapshots and credential availability.
  • Migrate channels list and status --all to the shared runtime/local account merge helpers.
  • Add focused read-model coverage for Gateway snapshot normalization, runtime-only accounts, and configured-unavailable credential handling.

Verification:

Real behavior proof

Behavior addressed: Shared the live Gateway/local-config channel status read model used by channels list and status --all, preserving the Discord SecretRef/runtime status behavior fixed for #79343 while reducing duplicated merge logic.
Real environment tested: Local OpenClaw CLI from this branch, run against an isolated temporary config file and state directory on macOS.
Exact steps or command run after this patch: OPENCLAW_CONFIG_PATH=$tmpdir/openclaw.json OPENCLAW_STATE_DIR=$tmpdir/state pnpm openclaw channels list --all
Evidence after fix: Terminal output from the real CLI run included:

Chat channels:
- Discord: installed, not configured, disabled
- QQ Bot: installed, not configured, disabled
- Telegram: installed, not configured, disabled
- WhatsApp: not installed, not configured, disabled

Observed result after fix: The command rendered the channel inventory from the shared read model without crashing; configured-unavailable/local fallback logic remains covered by focused command regressions, and the isolated CLI run confirmed the human-facing list path still produces channel rows after the extraction.
What was not tested: No live Discord credential repro in this refactor PR; the runtime Discord behavior was covered by the already-landed issue fix and mocked command/read-model regressions here.

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: M maintainer Maintainer-authored PR labels May 15, 2026
@steipete steipete added the proof: override Maintainer override for the external PR real behavior proof gate. label 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: Refactor shared channel status read model 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

Copy link
Copy Markdown
Contributor Author

Verification before merge:

Known proof gap: no live Discord credential repro in this refactor PR; live behavior was already fixed in #82016 and this PR keeps focused command/read-model regressions around that behavior.

@steipete
steipete merged commit 4d28450 into main May 15, 2026
124 of 131 checks passed
@steipete
steipete deleted the fix/channel-status-read-model branch May 15, 2026 05:39
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: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant