Repository navigation
fix(cli): agents list no longer blames the Matrix plugin for core deprecation warnings - #195489
Conversation
…recation warnings
|
🦞👀 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 agent-list channel discovery to the existing asynchronous resolver. Example: Run openclaw agents list --bindings with main and ops agents, a Telegram group binding for -100123, and an existing state database without Matrix credentials.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this focused PR fixes a warning-producing caller that remains on main, with no actionable correctness or security findings; CI is still pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe agents CLI combines configured agents and routing bindings with local channel-account discovery, then renders text or JSON inventory. flowchart LR
A[Agent configuration and bindings] --> B[Agents list command]
B --> C[Async channel discovery]
C --> D[Manifest and saved auth probes]
D --> E[Local account inventory]
E --> F[Text or JSON output]
Technical reviewBest possible solution: Use the existing awaited discovery resolver while preserving inventory output, saved-auth detection, and supported synchronous compatibility exports. Do we have a high-confidence way to reproduce the issue? Current main exposes the synchronous discovery-to-Matrix warning path with an existing state database; the contributor supplies matching before/after CLI results, and no target code was executed during this review. Is this the best way to solve the issue? This is the smallest complete repair: await the existing resolver at the affected async command boundary without suppressing warnings or changing the SDK. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9480e8779175. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource 0, Tests +91. Total +91 across 3 files. Added test files: 1. 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. 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 (1 earlier review cycle)
Reviewed November 8, 2026, 8:39 PM ET / November 9, 2026, 01:39 UTC (Revision 2). |
|
After-fix capture requested by the review, on the same state fixture as the before run. The stdout covers the full agent list, routing rules, and channel-status footer; the only change is the absent stderr warnings. The branch is at a51442e, which also replaces the mocked call-count assertion with a command-boundary test: @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Baseline-Refresh: 5e311d1e9cb8ba7383ac79afbd8af9673b37ded6
|
Merged via squash.
|
…recation warnings (openclaw#195489) * fix(cli): agents list no longer blames the Matrix plugin for core deprecation warnings * test(cli): cover agents list deprecation warnings at the command boundary * fix(cli): await saved-auth discovery across channel inventories * test(health): support async inventory in deletion coverage * test(cli): preserve real inventory module exports --------- Co-authored-by: Vincent Koc <[email protected]>
Related: #190243
What Problem This Solves
CLI channel inventories could emit two
DEP_PLUGIN_SDKwarnings blaming the bundled Matrix plugin even though core selected its deprecated synchronous saved-auth probe.Change
Use the existing awaited channel-discovery API in agents list, channel capabilities, interactive removal, fallback status, and health. Provider ordering, inventory options, public synchronous compatibility APIs, and persisted credentials remain unchanged.
Retains @mushuiyu886's agents-list fix and real command-boundary regression, extends the repair to sibling callers, and strengthens the regression to prove that async saved-auth discovery actually ran. Four affected fixture mocks now preserve the real module exports; their obsolete mock-baseline allowances are removed. The dedicated 101-line allocation covers the net regression-test growth; the shared scalar budget is unchanged.
The signed baseline refresh resolves one adjacent mock-baseline deletion conflict while preserving both the PR's and main's removals. It adds no further production behavior.
Evidence
agents list; the rebuilt CLI with isolated synthetic Matrix credentials then exited 0, displayed the Matrix binding, and emitted zero stderr bytes.git diff --checkpassed.282328c19c3d5640c122039de565753ace21487c: CI run 43128938831 completed successfully, including Node tests, both UI E2E shards, production/test types, lint, and baseline ratchets. Security checks and the enforced CI gate passed. Native hosted-proof verification accepted the exact head.Current local test gap
Two refreshed-candidate test launches stopped before executing tests: Vitest's bundled configuration cannot resolve
@solidjs/vite-pluginfrom the shared root installation. The import already exists on main; the PR changes no package/dependency files. The retained root installation and other work were left unchanged. Published-head CI now supplies successful refreshed test/type/lint/ratchet evidence. The earlier full build remains pre-refresh evidence; the CI build-artifacts job was not selected for this diff. Earlier local results are not represented as refreshed-head local test passes.No Matrix storage change or live homeserver is required.