Repository navigation
fix(cli): stop status/channels list/doctor emitting Matrix SDK deprecation warnings - #190257
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR switches status and channels list to existing async discovery APIs and removes an unused internal sync helper. Example: Run openclaw status on Linux with an empty configuration and no Matrix account.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes remaining synchronous channel-discovery calls on current main; no blocking defect was found, and current-head checks pass. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherCLI inventory and diagnostic commands combine configuration, plugin manifests, and saved-auth presence into channel tables and JSON output. flowchart LR
A[CLI commands] --> B[Read only channel discovery]
B --> C[Channel presence policy]
C --> D[Async plugin auth probe]
D --> E[Existing plugin state]
B --> F[Tables and JSON]
Technical reviewBest possible solution: Merge the focused async-call-site repair while retaining the existing discovery, setup-preparation, and persisted-state owners. Do we have a high-confidence way to reproduce the issue? Current-main callers still reach the deprecated sync probe when saved-auth inspection runs, and the supplied CLI recording demonstrates that failure; no local reproduction was run. Is this the best way to solve the issue? The smallest complete repair is to await the existing async discovery APIs, preserve their selection options and diagnostics, and remove the now-unused internal boolean helper. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 491e537e524d. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -7, Tests +150, Other +1. Total +144 across 14 files. Added test files: 2. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (6 earlier review cycles)
Reviewed November 5, 2026, 6:21 AM ET / 11:21 UTC (Revision 7). |
|
@clawsweeper re-review Addressed both findings in efa00bf:
CI on efa00bf is all green (70 success, 0 failures). |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Added the base-red / head-green replay for the regression tests to the PR body (Tests gap from the last review). No code change; head is still efa00bf. |
|
🦞👀 Re-review progress:
|
…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]>
|
Folded in @ericcurtin's cleanup from #190280 (drop the now-unused sync @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@obviyus when you have a moment, this is ClawSweeper 5/5/5 and ready for maintainer look (it also folds in @ericcurtin's overlapping change from #190280 with co-author credit); happy to adjust anything. |
…ence # Conflicts: # src/commands/doctor-security.test.ts
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.
Cover the async auth probe and channels-list DEP_PLUGIN_SDK silence regressions that land with the read-only async presence fix.
Keep the async-presence allocation current with main's test-line ceiling.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…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]>
Fixes #190243
What Problem This Solves
On an install with no Matrix configured,
openclaw status,openclaw channels listandopenclaw doctoreach print two[DEP_PLUGIN_SDK]warnings blaming "Plugin matrix". Core caused them: these async command paths called the sync channel-presence resolvers, which run the bundledhasAnyMatrixAuthsync export (createPluginStateSyncKeyedStore+.entries()).User Impact
Users no longer see deprecation noise they can't act on, and plugin authors aren't misled into thinking a third-party plugin needs migrating. Configured-channel detection is unchanged. It still reads saved auth, now through the async
exportNameAsyncprobe.Why
Async twins already existed (
hasConfiguredChannelsForReadOnlyScopeAsync,listReadOnlyChannelPluginsForConfigAsync, and the MatrixhasAnyMatrixAuthAsync). The only change is switching the four call sites, which were already insideasyncfunctions:src/commands/status.scan-overview.ts:hasConfiguredChannelsForReadOnlyScopeAsyncsrc/commands/status-all/channels.ts(buildChannelsTable, also reached by plainstatus): newresolveReadOnlyChannelPluginsForConfigAsync. It has the same scope and manifest records as the sync resolver and returns the same full resolution (missing ids, load failures).src/commands/channels/list.tsandsrc/commands/doctor-security.ts:listReadOnlyChannelPluginsForConfigAsyncThe sync compatibility exports are left alone until their 2026-12-31 removal.
Evidence
Real CLI on Linux, fresh
HOME/OPENCLAW_HOME, built from this branch.Before (main):
After:
--trace-deprecationbefore the fix showed the call chainsstatusCommand → collectStatusScanOverview → buildChannelsTable / hasConfiguredChannelsForReadOnlyScope,channelsListCommand → listReadOnlyChannelPluginsForConfigandcollectSecurityWarnings → listReadOnlyChannelPluginsForConfig, all ending athasAnyMatrixAuth.Tests:
src/channels/plugins/read-only.async-presence.test.ts: a bundled plugin declares both sync and async persisted-auth exports. The async resolver detects the saved auth and never calls the sync export.vitest: channels.list*, doctor-security, status*, status-all/channels, read-only*: 38 files, 346 tests passed.oxlintandoxfmt --checkare clean, andpnpm buildis green.Base-red / head-green replay (head
efa00bf)Same 4 regression files, run with
vitest run. Only the 5 non-test source files were reverted to the merge basef7d6774for the base run; the tests are unchanged.f7d6774source + PR testsefa00bfBase failure modes:
read-only.async-presence.test.ts:resolveReadOnlyChannelPluginsForConfigAsync is not a function. Base has no async full-resolution path, sostatuscan only take the sync Matrix probe.channels.list,status-all/channels,doctor-security: base calls the synclistReadOnlyChannelPluginsForConfig/ sync resolver, and the async-only mocks reject it (No "listReadOnlyChannelPluginsForConfig" export is defined on the mock). This is the guard that fails if a sync call comes back.Command-level warning capture (
src/commands/channels.list.dep-warning.test.ts)This runs the real
channelsListCommand(openclaw channels list --json) against an on-disk config and a bundled channel fixture with saved auth. The fixture's legacy sync auth probe emitsDEP_PLUGIN_SDKthe way Matrix's does, and its async probe is silent. The test watches bothprocess.emitWarningand the processwarningevent and asserts that noDEP_PLUGIN_SDKwarning is emitted.Base source (
f7d6774'sread-only.ts,channels/list.ts,status-all/channels.ts,status.scan-overview.ts,doctor-security.ts) with the new test:Head
708a05f:✨ Terminal recording (real built CLI, Linux)
Built with
scripts/build-all.mts, then rannode openclaw.mjs channels listandnode openclaw.mjs statuswith a fresh HOME/state dir and an explicit{}config (OPENCLAW_CONFIG_PATH). Basef7d6774prints 2[DEP_PLUGIN_SDK]DeprecationWarnings per command; the same steps rebuilt from PR head708a05fprint 0, exit 0.