Skip to content

fix: status and channels list print Matrix SDK deprecation warnings - #190280

Closed
ericcurtin wants to merge 2 commits into
openclaw:mainfrom
ericcurtin:fix/status-async-channel-presence
Closed

ericcurtin wants to merge 2 commits into
openclaw:mainfrom
ericcurtin:fix/status-async-channel-presence

Conversation

@ericcurtin

Copy link
Copy Markdown
Contributor

Closes #190243

What Problem This Solves

Fixes: openclaw status, channels list and doctor print Matrix SDK deprecation warnings on installs without Matrix.

User Impact

Users no longer see DEP_PLUGIN_SDK warnings blaming the Matrix plugin when running these commands.

Why This Change Was Made

These commands are async but called the sync channel probe. They now call the async twin, including the status channel table through a new resolveReadOnlyChannelPluginsForConfigAsync that the list helper now reuses. The sync hasConfiguredChannelsForReadOnlyScope had no callers left and is removed.

Evidence

  • Built CLI, clean env, existing state DB, no Matrix credentials. DEP_PLUGIN_SDK warnings on main vs here: status 2 to 0, channels list 2 to 0, doctor 4 to 2. Stdout of status and channels list is unchanged.
  • The 2 left in doctor come from tool setup, which the issue lists as a separate follow-up.
  • Updated command tests fail on main and pass here. tsgo:core, tsgo:core:test, oxlint and oxfmt are clean.

@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: S labels Nov 1, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR switches status, channels list, and Doctor channel discovery to asynchronous probes to avoid Matrix SDK deprecation warnings.

Example: Run openclaw status with an existing state database and no Matrix credentials.

  • Before: Synchronous discovery prints two DEP_PLUGIN_SDK warnings.
  • After: Asynchronous discovery prints no Matrix SDK warnings while preserving status output.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The production direction is sound and CLI results are supplied, but this branch retains diff-caused audit-test and mock-export ratchet failures that the canonical PR has already repaired.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The contributor reports built-CLI runs with a clean environment, an existing state database, and no Matrix credentials: status and channels list warnings drop from two to zero with unchanged stdout, while Doctor retains only the separately excluded tool-setup warnings.
Patch quality 🦪 silver shellfish (2/6) The production direction is sound and CLI results are supplied, but this branch retains diff-caused audit-test and mock-export ratchet failures that the canonical PR has already repaired.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Routine diagnostic commands print Matrix SDK migration warnings that users without Matrix cannot resolve.
Reason: The repair restores the intended read-only diagnostic behavior, but maintaining two equivalent PRs adds no distinct user value.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this PR open. PR close coverage proof kept this PR open against #190257: The runtime repair overlaps clearly, but the supplied evidence does not establish coverage of PR A's useful setup-failure parity test. The prior duplicate assessment and linked implementation context do not prove that coverage.

Priority: P2
Reviewed head: 66e6703a1a506eb1dd4e0068478c04de23ccd6b0

Before merge

  • Improve patch quality - Address the low patch-quality rating before merge; see the review scores for what is holding it back.
  • Maintainer: close or keep this PR - The review found that this PR may be superseded, but the close check did not confirm that the other PR covers all of its work. A maintainer must close this PR or confirm that it still has work to land.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied regression claim does not demonstrate the original warning behavior failing on the base and passing on the head.
Agent review details

How this fits together

Read-only CLI commands combine configuration, plugin manifests, registered channels, and saved-auth presence into channel inventories and diagnostics.

flowchart TD
  A[CLI commands] --> B[Async channel discovery]
  C[Config and manifests] --> B
  B --> D[Saved auth probe]
  D --> E[Matrix state store]
  B --> F[Inventory and diagnostics]
Loading

Technical review

Best possible solution:

Keep this PR open until a linked canonical PR proves it covers this PR's unique work, or a maintainer confirms closure.

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

Source traces the synchronous command callers to Matrix's deprecated store APIs when a state database exists; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

Awaiting existing async discovery fixes the cause, and the resolver extraction preserves status diagnostics without adding another discovery owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9237ad230bee.

Provenance checked

  • Read-only CLI discovery keeps the original intent (24db09a: Keep status, channels list, and Doctor on cold configuration-oriented paths instead of loading full plugin runtimes.)
  • Asynchronous saved-auth discovery keeps the original intent (5c70041: Prepare persisted channel account state asynchronously while preserving configured-account and saved-login behavior.)
  • Registered-channel discovery optimization keeps the original intent (2746891: Avoid irrelevant saved-auth waits for registered or excluded channel owners.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 5c70041 adds src/channels/plugins/read-only.ts:531 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5c7004136d9c; files: src/channels/plugins/read-only.ts)
  • Gustavo Madeira Santana: Raw commit 24db09a adds src/channels/plugins/read-only.ts:4 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 24db09a19bde; files: src/channels/plugins/read-only.ts)

PR surface

Source 0, Tests +10. Total +10 across 13 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 17 17 0
Tests 6 33 23 +10
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 50 40 +10

Root-cause cluster

Relationship: duplicate
Canonical: #190257
Summary: Both PRs repair the same synchronous presence-probe calls for the same reported Matrix warnings; the canonical PR now has passing gates.

Members:

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

Labels

Label changes:

  • add P2: Misleading SDK warnings affect routine diagnostics without evidence of blocked commands or lost functionality.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: Misleading SDK warnings affect routine diagnostics without evidence of blocked commands or lost functionality.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 1, 2026, 6:40 AM ET / 11:40 UTC.

@ericcurtin

Copy link
Copy Markdown
Contributor Author

Fixed the audit test spy and the mock-exports ratchet (5fdf91c). @clawsweeper re-review

Copy link
Copy Markdown
Contributor

Hi @ericcurtin 👋 I just noticed this PR and my #190257 both fix the same Matrix SDK deprecation-warning bug (#190243), and you opened yours a few minutes before mine. Sorry for the overlap, I didn't spot it in time.

Rather than having two PRs compete, I'd be happy to work on this together. I can fold your extra changes (the channel-plugin-ids.ts / channel-presence-policy.ts bits) into #190257 with a Co-authored-by trailer for you, so we both get credit. Or, if you'd rather carry it here, I'm glad to help on this PR instead. Whatever's easiest for you and the maintainers. Thanks!

@ericcurtin

Copy link
Copy Markdown
Contributor Author

Thanks @jerome-queck, happy to go with #190257. The only extra here is dropping the now-unused sync hasConfiguredChannelsForReadOnlyScope (channel-presence-policy.ts, channel-plugin-ids.ts). Please fold that in. I'll close this once it lands there.

jerome-queck added a commit to jerome-queck/openclaw that referenced this pull request Nov 2, 2026
…cope

All callers now use hasConfiguredChannelsForReadOnlyScopeAsync. Remove the
sync helper, its re-export from channel-plugin-ids, and the stale sync mock
in the status scan test helpers, matching openclaw#190280.

Co-authored-by: ericcurtin <[email protected]>

Copy link
Copy Markdown
Contributor

Thanks @ericcurtin! I've folded the removal of the unused sync hasConfiguredChannelsForReadOnlyScope (plus the matching test-helper mock cleanup) into #190257 with co-author credit: 85a57e3. Really appreciate you being so easy to work with!

@ericcurtin

Copy link
Copy Markdown
Contributor Author

Closing in favour of #190257, which now has the extra change. Thank you @jerome-queck.

@ericcurtin ericcurtin closed this Nov 2, 2026
obviyus pushed a commit that referenced this pull request Nov 8, 2026
…ation warnings (#190257)

* fix(cli): use async channel presence probes in status, channels list and doctor (#190243)

* test: migrate read-only resolver mocks to async APIs

* test(channels): prove channels list emits no DEP_PLUGIN_SDK warning

Refs #190243.

* refactor(plugins): drop unused sync hasConfiguredChannelsForReadOnlyScope

All callers now use hasConfiguredChannelsForReadOnlyScopeAsync. Remove the
sync helper, its re-export from channel-plugin-ids, and the stale sync mock
in the status scan test helpers, matching #190280.

Co-authored-by: ericcurtin <[email protected]>

* fix: drop duplicate async read-only resolver after main merge

Merge of main into fix/190243-async-presence left two
resolveReadOnlyChannelPluginsForConfigAsync exports. Keep main's
withPluginSetupPreparation path; remove the older simple duplicate
that broke transform/lint/types/prompt-snapshots.

* test: allocate test-lines for async presence proofs (#190243)

Cover the async auth probe and channels-list DEP_PLUGIN_SDK silence
regressions that land with the read-only async presence fix.

---------

Co-authored-by: jerome-queck <[email protected]>
Co-authored-by: ericcurtin <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 9, 2026
…ation warnings (openclaw#190257)

* fix(cli): use async channel presence probes in status, channels list and doctor (openclaw#190243)

* test: migrate read-only resolver mocks to async APIs

* test(channels): prove channels list emits no DEP_PLUGIN_SDK warning

Refs openclaw#190243.

* refactor(plugins): drop unused sync hasConfiguredChannelsForReadOnlyScope

All callers now use hasConfiguredChannelsForReadOnlyScopeAsync. Remove the
sync helper, its re-export from channel-plugin-ids, and the stale sync mock
in the status scan test helpers, matching openclaw#190280.

Co-authored-by: ericcurtin <[email protected]>

* fix: drop duplicate async read-only resolver after main merge

Merge of main into fix/190243-async-presence left two
resolveReadOnlyChannelPluginsForConfigAsync exports. Keep main's
withPluginSetupPreparation path; remove the older simple duplicate
that broke transform/lint/types/prompt-snapshots.

* test: allocate test-lines for async presence proofs (openclaw#190243)

Cover the async auth probe and channels-list DEP_PLUGIN_SDK silence
regressions that land with the read-only async presence fix.

---------

Co-authored-by: jerome-queck <[email protected]>
Co-authored-by: ericcurtin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

status / channels list / doctor print Matrix DEP_PLUGIN_SDK warnings on installs without Matrix (core calls sync presence probe from async paths)

2 participants