Repository navigation
fix: use the configured system agent for skills inventory - #205659
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesSkills inventory commands fall back to the configured system agent when neither --agent nor the current directory selects an agent. Example: Configure writer and reader, designate reader as the system agent, and run openclaw skills check outside both workspaces.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR provides a focused repair for a current-main inventory-selection failure, with no concrete introduced correctness defect found. Reviewed head: Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe skills CLI resolves configuration, agent identity, and workspace before requesting Gateway inventory or using the existing implicit-local offline fallback. flowchart TD
A[Skills inventory command] --> B[Explicit agent or workspace inference]
B --> C[Configured system agent fallback]
C --> D[Resolved agent and workspace]
D --> E[Gateway skills status]
E --> F[Rendered inventory]
E --> G[Implicit local offline inventory]
G --> F
Technical reviewBest possible solution: Retain the inventory-only opt-in through the existing roster-validated resolver while preserving explicit selection, cwd precedence, and mutation ownership. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the failure for an explicit two-agent roster with a designated system agent and neutral cwd; the linked earlier PR independently supplies built-CLI reproduction output, but no target code was executed during this review. Is this the best way to solve the issue? The repair uses the existing selection owner at the shared inventory boundary, preserves legacy behavior outside explicit fleets, and avoids changing mutation targets. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2cb81bbb38a1. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +9, Tests +30. Total +39 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: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 25, 2026, 8:25 PM ET / November 26, 2026, 01:25 UTC. |
|
Merged via squash.
|
…05659) Originally reported by @yxshee in openclaw#195423.
What Problem This Solves
With two configured agents and a designated system agent, running
openclaw skillsoutside both workspaces asked for--agent. The same error preventedskills list,skills info, andskills checkfrom showing the designated agent’s inventory. @yxshee reported this behavior in #195423.User Impact
These four commands now use the designated system agent from a neutral directory. An explicit
--agentstill takes precedence, followed by the agent whose workspace contains the current directory. A multi-agent roster without a designation still requires a choice.Why This Change Was Made
The inventory caller opts into the same roster-validated system-agent selection used to identify the default in the agent list. Install, update, verify, and Workshop continue to use their existing workspace selection.
Evidence
Hosted verification
The CLI command suite passed 42/42 on the signed head and again on the protected test merge. The full dispatch’s dependency check reported 15 distinct path/symbol pairs in 11 files whose blobs match the parent. The parent workflow omitted that check. The private-profile runs exercise the registered CLI. A packaged CLI run and an upgrade from the latest stable release remain unverified. CLI suite · dependency report