Repository navigation
fix: list skills for agents on a remote Gateway - #208251
Conversation
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 739972fd-dc47-4b90-9e11-953257e0cf7a
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: passed. What this changesThe skills inventory commands send an explicitly named remote agent to the selected Gateway without requiring that agent in the client configuration. Example: The client config contains client, while the selected Gateway contains research and its remote-inventory-marker skill.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a concrete remote-agent inventory failure still present on current main. The change preserves local validation and remote failure handling; no actionable defects were found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe skills CLI selects an agent and requests skills.status from the Gateway, which validates its roster and returns the workspace inventory for CLI rendering. flowchart TD
A[Skills CLI command] --> B[Read client routing config]
B --> C[Explicit remote agent]
B --> D[Local workspace selection]
C --> E[Gateway skills status]
D --> E
E --> F[Validate Gateway roster]
F --> G[Render skill inventory]
Technical reviewBest possible solution: Let the selected remote Gateway validate explicit inventory agent IDs while retaining client roster validation for local workspace operations. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the premature client-roster rejection, corroborated by the supplied before-fix built-CLI capture; this review did not execute the reproduction. Is this the best way to solve the issue? The fix uses the existing target classifier, normalizer, RPC owner, and shared report reader, with no competing roster or fallback implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2a428f218211. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +6, Tests +11, Docs +2. Total +19 across 4 files. Added test files: 0. 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:
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 Reviewed November 29, 2026, 5:57 AM ET / 10:57 UTC. |
Ask the selected remote Gateway for the explicitly named agent’s skill inventory. Local workspace inventory still checks its own configured agents. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 739972fd-dc47-4b90-9e11-953257e0cf7a (cherry picked from commit 36295bf) Follow-up audit: 159176a is separately selected in row 53 and applies after this explicit-agent fix; e7bce82 changes Workshop remote selection, not skills status. 16a2d4b UI log search, 21786f6 i18n label pruning, 34d4f8f Docker Doctor reporting, and 9cec330 Workboard grouping are unrelated maintenance references, not companions. Release adaptation: Pass the core-only config read into the stable local workspace inference without importing later system-agent selection. Explicit remote IDs are resolved by the Gateway. Co-authored-by: RomneyDa <[email protected]>
Ask the selected remote Gateway for the explicitly named agent’s skill inventory. Local workspace inventory still checks its own configured agents. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 739972fd-dc47-4b90-9e11-953257e0cf7a Release adaptation: Use the release workspace resolver without the main-only system-agent flag; validate explicit remote agents at the selected Gateway without changing local fallback. (cherry picked from commit 36295bf) Co-authored-by: RomneyDa <[email protected]>
When a remote client omits --agent on a skills inventory command, let the Gateway select its configured default. The Gateway still validates explicit agent IDs. Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 14998ca1-5600-4c30-8ddd-c5b117420269 (cherry picked from commit 159176a) Release adaptation: Also ports prerequisite 36295bf (#208251). Keep the local resolver and fallback only for the implicit local Gateway; the selected remote owns its default or explicitly named agent inventory. Release adaptation: Let the remote Gateway choose its default agent when omitted, preserve explicit remote-agent selection and Workshop’s release best-effort local config path, and test both CLI cases. Co-authored-by: RomneyDa <[email protected]>
Ask the selected remote Gateway for the explicitly named agent’s skill inventory. Local workspace inventory still checks its own configured agents. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 739972fd-dc47-4b90-9e11-953257e0cf7a


What Problem This Solves
openclaw skills list --agent research --jsonexits 1 withUnknown agent idwhenresearchexists only on the selected remote Gateway. The client rejects the agent before asking the Gateway for its inventory.User Impact
skills list,skills info,skills check, and bareskillscan read inventory for an explicitly named remote agent without adding it to the client config. An agent missing from the Gateway still fails. No migration or configuration change is needed.Why This Change Was Made
The selected Gateway owns its roster. The CLI sends the normalized explicit ID directly to
skills.statusrather than resolving a client workspace. Local workspace operations and selection when--agentis omitted are unchanged.I checked the original unknown-agent fix: it prevents a local fallback from fabricating a report. That safeguard remains in place. The remote fallback decision explicitly makes the remote Gateway authoritative.
Evidence
Before and after terminal captures. I ran the built CLI and a real token-authenticated loopback Gateway on AWS CrabBox with separate client and server configs and state directories. Only the Gateway had
researchand its workspace skillremote-inventory-marker.d88223eskills.statusreturned the marker;skills list --agent research --jsonexited 1 withUnknown agent id.0132ad3researchworkspace. The Gateway rejectedabsent(exit 1);!!!also remained an error.The new command regression failed on main and passed with the fix. Both focused CLI suites passed (52 tests), as did the core TypeScript check, changed-file lint and formatting, and
git diff --check. I verified the published head has the same Git tree as the AWS candidate. I did not run the full suite or test a separate-host network.Reported and co-authored by @daniel-lxs.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
🦞 Made with OpenClaw