Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 22, 2026, 8:35 AM ET / 12:35 UTC. ClawSweeper reviewWhat this changesThe PR lets directory commands use an already loaded channel plugin before workspace-scoped plugin discovery. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep open: this is a focused, correct candidate fix for the linked multi-agent directory failure; exact-head CI is still incomplete. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherDirectory commands select a channel plugin and invoke its directory adapter for identity or group lookups. The shared resolver normally needs an agent workspace for catalog and installation work; this change bypasses that work only for an already active plugin. flowchart LR
A[Directory command with channel] --> B[Directory resolver]
B --> C{Loaded channel plugin?}
C -->|yes| D[Directory adapter]
C -->|no| E[Agent workspace and catalog]
E --> F[Scoped plugin or installation]
F --> D
D --> G[Identity or group output]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +22, Tests +93. Total +115 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain the directory-only loaded-registry preflight and merge after exact-head checks complete successfully. Do we have a high-confidence way to reproduce the issue? Yes—current main resolves an agent workspace before the active-plugin lookup; a multi-agent configuration without a default owner reaches the reported failure. Is this the best way to solve the issue? Yes—the shared resolver owns the ordering, while the directory-only opt-in preserves workspace discovery and installation for unloaded plugins and login/logout. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f4cb54578397. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
3841ced to
fe6d29a
Compare
|
CI regression repair pushed at The registered-plugin fast path is now explicitly owned by the directory CLI. Other callers, including channel login/logout, retain the catalog/install snapshot sequence. The early registry read is also skipped unless that directory-only option is enabled. Fresh proof after rebasing onto
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Real multi-agent CLI proof is now added to the PR body. Isolated proof config:
Actual repo CLI result for the registered plugin: Sibling negative proof with the same config: Plugin provenance and temporary filesystem paths were redacted; neither affects the directory-owner behavior under test. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
a01fbaf to
19286d4
Compare
d879c3d to
a7c783e
Compare
a7c783e to
50718fb
Compare
|
Merged via squash.
|
…nclaw#124709) * fix(channels): resolve registered plugins before agent workspace * fix(channels): scope registered plugin fast path to directory * fix(channels): restrict directory fast path to loaded plugins
Closes #124679
What Problem This Solves
openclaw directorycould not use an explicitly selected, already registered channel plugin in a multi-agent installation. The shared installable-channel resolver tried to choose a default agent workspace before checking the active channel registry, soAgentSelectionRequiredErroraborted directory lookups even though no workspace discovery or installation was needed.Why This Change Was Made
The directory CLI now explicitly opts into resolving an exact registered channel before workspace-scoped catalog work. Other users of the shared resolver, including channel login and logout, keep their existing catalog/install snapshot sequence. Unregistered plugins remain on the explicit-owner path.
User Impact
Users with multiple configured agents can run directory commands such as
openclaw directory self --channel telegramwhen that channel is already registered. Unregistered workspace plugins still require an explicit system-agent owner before discovery or installation.Evidence
agents.ownership="explicit", two agents with no default owner, and the repo IRC plugin loaded throughplugins.load.paths; no live account, credential, or network connection was used.OPENCLAW_STATE_DIR=<temp> OPENCLAW_CONFIG_PATH=<temp>/openclaw.json pnpm openclaw directory groups list --channel irc --jsonexited 0 and returned the configured#proof-roomgroup through the real plugin directory adapter.--channel missing-proof-channelexited 1 withMultiple agents are configured, but this operation has no explicit owner, proving unresolved plugins still use the workspace-owner gate.d879c3d520204c4cbfcdf4d02f4c729370a22a5bcombines business head19286d4b7aa6410f8065e74da22beee619007d47with frozenupstream/main47399310a08e67c926875a3da8252467585dac6e. The PR-owned delta remains the same four files (+117/-2) while preserving main's explicitagentIdworkspace resolver and the directory-only registered-plugin fast path.node scripts/run-vitest.mjs src/commands/channel-setup/channel-plugin-resolution.test.ts(8/8 passed) andnode scripts/run-vitest.mjs src/cli/directory-cli.test.ts src/cli/channel-auth.test.ts(45/45 passed).config/tsconfig/oxlint.core.json;git diff --check 47399310a08e67c926875a3da8252467585dac6e..HEADpassed.fe6d29ae9c0b7907f2b7fc21e88620181f3bab19without failures. Exact merge-head CI started in run 32094322651; this body records the immediate post-push snapshot and does not claim a terminal result.AI Assistance
AI assistance was used for source analysis, implementation, tests, real CLI validation, and PR drafting. The contributor reviewed the final diff and validation evidence.\n\n### Identity refresh (2026-08-20)\n\n- Metadata-only history rewrite: new head
a7c783ed51ab8c1d7e8ee23d209a96c5370ec9db; all rewritten commits now useLeon-SK668 <[email protected]>for both author and committer. Commit trees, messages, timestamps, parent structure, and the PR business diff are unchanged.\n- No product code or proof claim changed in this refresh. Existing focused tests/CI/review evidence remains behaviorally applicable to the unchanged tree; this new head is available for the normal exact-head checks.\n