Skip to content

fix(cli): agents list no longer blames the Matrix plugin for core deprecation warnings - #195489

Merged
vincentkoc merged 6 commits into
openclaw:mainfrom
mushuiyu886:fix/agents-list-matrix-deprecation
Nov 12, 2026
Merged

vincentkoc merged 6 commits into
openclaw:mainfrom
mushuiyu886:fix/agents-list-matrix-deprecation

Conversation

@mushuiyu886

@mushuiyu886 mushuiyu886 commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Related: #190243

What Problem This Solves

CLI channel inventories could emit two DEP_PLUGIN_SDK warnings 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

  • Reproduced both warnings through real agents list; the rebuilt CLI with isolated synthetic Matrix credentials then exited 0, displayed the Matrix binding, and emitted zero stderr bytes.
  • Five-caller migration: 77 focused tests passed, one Windows-only skip; full build, command typecheck, and targeted lint passed before baseline refresh.
  • Final partial-mock correction: all 55 affected tests passed before baseline refresh, including the health deletion case that caught the missing async export.
  • Refreshed candidate: mock-export ratchet passed (6337 grandfathered factories), test-line ratchet passed (16 lines of slack), and git diff --check passed.
  • Fresh independent P0–P3 review of the complete refreshed delta found no actionable findings.
  • Published head 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-plugin from 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.

@clawsweeper

clawsweeper Bot commented Nov 9, 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: XS labels Nov 9, 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. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. 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 9, 2026
@clawsweeper

clawsweeper Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The inventory is accompanied by two Matrix-attributed DEP_PLUGIN_SDK warnings.
  • After: The same inventory is printed with empty stderr.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused existing-owner repair with supplied CLI proof, meaningful command-boundary regression coverage, and no open findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The body and current-head follow-up show the real agents-list CLI on an isolated two-agent Telegram-binding fixture with the same existing SQLite database: stdout compares identical and stderr contains zero bytes and zero deprecation warnings; the inspected GIF belongs to the earlier sibling-command fix and is not used to prove this change.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Listing agents misleadingly suggests that the Matrix plugin needs updating when core selected its deprecated probe.
Reason: A narrow caller migration removes warnings users cannot resolve while preserving the existing command contract.

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
Reviewed head: a51442e4d8357443a450cc332581744e8f8a7471

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Agent-list provider discovery changes intended behavior with a stated reason (refactor: consolidate single-consumer internal surfaces #180641: Consolidate private single-consumer operations while preserving public behavior and lazy boundaries; this establishes the current placement, not the original synchronous-probe introduction.)
  • Asynchronous saved-account discovery keeps the original intent (5c70041: Prepare persisted channel-account state asynchronously while preserving configured-account and saved-login behavior.)
  • Existing agent inventory tests keeps the original intent (test(core): remove low-value tests (batch d420) #180132: Consolidate test setup while retaining distinct behavior contracts; this PR adapts the existing fixture and adds command-boundary warning coverage.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source 0, Tests +91. Total +91 across 3 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 4 4 0
Tests 2 98 7 +91
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 102 11 +91

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Misleading deprecation warnings affect routine agent inventory without blocking agent execution or message delivery.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-09T01:13:27.515Z sha 015f011 :: needs real behavior proof before merge. :: none

Reviewed November 8, 2026, 8:39 PM ET / November 9, 2026, 01:39 UTC (Revision 2).

@mushuiyu886

Copy link
Copy Markdown
Contributor Author

After-fix capture requested by the review, on the same state fixture as the before run. /tmp/oc-proof/state-agents was reused unchanged and still contains state/openclaw.sqlite:

$ diff before-agents.out after-agents.out && echo identical
identical

$ wc -c after-agents.err
0 after-agents.err

$ grep -c DEP_PLUGIN_SDK after-agents.err
0

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: src/commands/agents.list.dep-warning.test.ts loads a synthetic bundled channel whose sync persisted-auth export emits DEP_PLUGIN_SDK, runs agentsListCommand, and requires zero such warnings. That file fails on the base commit and passes here.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 9, 2026
@vincentkoc
vincentkoc enabled auto-merge (squash) November 11, 2026 03:12
@vincentkoc
vincentkoc disabled auto-merge November 11, 2026 03:18
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Nov 11, 2026
@vincentkoc
vincentkoc merged commit 8d4ca54 into openclaw:main Nov 12, 2026
137 of 138 checks passed
@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants