Repository navigation
fix: list skills for the remote Gateway’s default agent - #208284
Conversation
Leave the inventory agent unspecified when a remote client omits --agent. Let the selected Gateway apply its own configured default; preserve explicit validation and implicit-local workspace selection. Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 14998ca1-5600-4c30-8ddd-c5b117420269
|
🦞👀 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 CLI lets a remote Gateway select its default agent when --agent is omitted. Example: A remote-only client runs openclaw skills list against a Gateway whose sole agent is harbor.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: current main still supplies a client-local agent for omitted remote selections, and this focused repair fixes that mismatch without actionable findings. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe skills inventory CLI translates command options into skills.status requests, and the selected Gateway resolves the agent and returns the inventory for rendering. flowchart TD
A[Skills inventory command] --> B[Shared status loader]
B --> C[Remote Gateway request]
B --> D[Implicit local workspace selection]
C --> E[Gateway agent resolution]
D --> E
E --> F[Skill inventory output]
Technical reviewBest possible solution: Let the selected Gateway resolve omitted inventory agents while retaining explicit-agent validation and implicit-local workspace selection. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the mismatched client-local selection, and the inspected before-and-after terminal captures demonstrate the reported remote-only scenario. Is this the best way to solve the issue? This is a small repair at the shared CLI producer that uses the existing optional-agent Gateway contract without adding another selection owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 36149f5adba2. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +3, Tests +3, Docs +1. Total +7 across 3 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, 7:09 AM ET / 12:09 UTC. |
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) Follow-up audit: 36295bf is already applied in ordered row 52. e7bce82 changes Workshop remote selection, not remote-default skills status. 16a2d4b UI log search, 21786f6 i18n label pruning, 34d4f8f Docker Doctor reporting, and 9cec330 Workboard grouping are unrelated maintenance references, not companions. 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]>
) 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
Related: #208251
What Problem This Solves
On a remote-only client,
openclaw skills listfails withunknown agent id "main"when the Gateway’s only agent isharbor. The same client can list the skills by passing--agent harbor.User Impact
Bare
skills,skills list,skills info, andskills checkuse the remote Gateway’s default when--agentis omitted. Explicit agents still have to exist. No config change or migration is needed.Why This Change Was Made
skills.statusalready resolves an omitted agent against the Gateway’s roster. The CLI now leaves the ID out instead of supplying a client-local default. I checked the remote authority decision, the local cwd and system-agent precedence, and the reason unknown agents are rejected. This extends #208251’s remote inventory path without changing local workspace selection, offline fallback, mutation routing, or validation.Evidence
I ran the built CLI against a real token-authenticated loopback Gateway on AWS CrabBox. The client and Gateway had separate configs and state; only the Gateway had
harborand theharbor-signalworkspace skill.openclaw skills list7c0080funknown agent id "main". Directskills.statusand--agent harborboth found the marker.harbor-signal, sourceopenclaw-workspace. An absent agent still exited 1, and an explicitly blank agent was rejected.Terminal excerpts from those AWS runs:
Main: the client asks for an agent the Gateway does not have.
PR: the same command lists the skill from the Gateway workspace.
The new regression failed on main because the client sent
agentId: "main". On the patched tree, 55 focused tests, core typecheck, lint, and formatting passed. 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