Skip to content

fix: list skills for the remote Gateway’s default agent - #208284

Merged
daniel-lxs merged 2 commits into
mainfrom
openclaw/remote-skills-default-agent-11a3ec
Nov 29, 2026
Merged

daniel-lxs merged 2 commits into
mainfrom
openclaw/remote-skills-default-agent-11a3ec

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #208251

What Problem This Solves

On a remote-only client, openclaw skills list fails with unknown agent id "main" when the Gateway’s only agent is harbor. The same client can list the skills by passing --agent harbor.

User Impact

Bare skills, skills list, skills info, and skills check use the remote Gateway’s default when --agent is omitted. Explicit agents still have to exist. No config change or migration is needed.

Why This Change Was Made

skills.status already 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 harbor and the harbor-signal workspace skill.

Same command: openclaw skills list Result
Main 7c0080f Exit 1: unknown agent id "main". Direct skills.status and --agent harbor both found the marker.
Patched CLI Exit 0: harbor-signal, source openclaw-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.

Main exits 1 with unknown agent id main

PR: the same command lists the skill from the Gateway workspace.

PR lists harbor-signal and exits 0

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

roboclaw-bot and others added 2 commits November 29, 2026 11:38
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
@clawsweeper

clawsweeper Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation cli CLI command changes size: XS labels Nov 29, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 29, 2026 12:05
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. labels Nov 29, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

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

  • Before: The command requests main and exits 1 with unknown agent id "main".
  • After: The command lists harbor-signal from the Gateway workspace and exits 0.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, coherent repair with shipped-command before-and-after evidence and focused regression coverage; broad exact-head CI remains in progress.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): Inspected terminal captures show the built skills CLI failing on main and returning harbor-signal after the fix against a real authenticated loopback Gateway with separate client/server state; separate-host networking was not exercised.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A remote-only client cannot inspect skills without naming the Gateway agent explicitly.
Reason: The maintainer-authored direction restores the existing remote ownership contract with a focused change and no new configuration.

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: 820c9a8ed735b1529dad51c2174afcba546ce3c8

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Remote inventory agent selection changes intended behavior with a stated reason (36295bf: The prior repair delegated explicitly named remote agents to the Gateway while deliberately leaving omitted-agent behavior outside its scope; this PR explains and fixes that remaining case.)
  • Local selection, unknown-agent rejection, and remote fallback keeps the original intent (fix(skills): fail closed for unavailable remote Gateway #117567: Explicit Gateway targets own inventory and must expose failures rather than substitute local data; subsequent unknown-agent and local system-agent repairs retain their existing paths.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit f69f81a adds src/cli/skills-cli.ts:113 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f69f81af9ebe; files: src/cli/skills-cli.ts)
  • RoboClaw: Raw commit 36295bf adds src/cli/skills-cli.ts:95 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 36295bf4584c; files: src/cli/skills-cli.ts)

PR surface

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

View PR surface stats
Area Files Added Removed Net
Source 1 9 6 +3
Tests 1 6 3 +3
Docs 1 3 2 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 18 11 +7

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:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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.

Reviewed November 29, 2026, 7:09 AM ET / 12:09 UTC.

@daniel-lxs
daniel-lxs merged commit 159176a into main Nov 29, 2026
211 checks passed
@daniel-lxs
daniel-lxs deleted the openclaw/remote-skills-default-agent-11a3ec branch November 29, 2026 12:29
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
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]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 30, 2026
)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes docs Improvements or additions to documentation impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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