Repository navigation
fix(skills): keep sag available with alternate credentials - #147685
Conversation
The bundled sag metadata declared ELEVENLABS_API_KEY as a mandatory env requirement, so the skill was reported unavailable — and doctor --fix offered to disable it — whenever the key came from another source sag itself supports (SAG_API_KEY, key files, --api-key-file). Readiness now gates on the sag binary only and delegates credential validation to the CLI, matching the bundled himalaya pattern. Fixes #147346 (cherry picked from commit 870577c)
|
🦞👀 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. Reviewed September 13, 2026, 10:14 PM ET / September 14, 2026, 02:14 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR keeps installed sag skills available with alternate credentials, documents recovery from earlier disablement, and adds registered CLI readiness and Doctor regression coverage. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main and v2026.9.4 retain the incorrect prerequisite. No blocking defect was found, the supplied proof supports the changed behavior, and the previous draft blocker is resolved. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw reads bundled skill prerequisites to decide which skills appear available to agents, CLI users, and the Control UI. Doctor consumes that same status when deciding whether to disable unavailable skills; sag itself resolves credentials when invoked. flowchart TD
A[Bundled sag metadata] --> B[Shared skill readiness]
C[Installed executable and settings] --> B
B --> D[CLI and Control UI status]
B --> E[Doctor repair decision]
B --> F[Agent skill availability]
F --> G[sag resolves credentials]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +134, Docs +2. Total +136 across 4 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep credential validation with sag, preserve binary gating and optional key injection, and retain explicit recovery without overriding intentional disablement. Do we have a high-confidence way to reproduce the issue? Yes, from source: install sag, supply only its supported alternate credentials, and omit ELEVENLABS_API_KEY and the OpenClaw apiKey override; current main marks it unavailable and ordinary Doctor repair can disable it. This review did not execute the reproduction. Is this the best way to solve the issue? Yes. Correcting the existing skill declaration fixes the shared consumers without introducing a competing credential reader or changing global Doctor policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d9c45426e163. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
landpr-approve-admin-merge |
|
Thanks @LiuwqGit! Proof: The Skills list and CLI show installed
|
…147685) AI-assisted. Supersedes openclaw#147381 by @LiuwqGit. Closes openclaw#147346. ## What Problem This Solves A working `sag` skill appears unavailable, and `doctor --fix` disables it, when its installed CLI obtains credentials outside the Gateway environment. ## User Impact Installed `sag` stays available with alternate credentials. The executable checks credentials when it runs. Optional configured-key injection remains available. Doctor does not automatically re-enable entries disabled by an earlier run. The saved flag does not distinguish Doctor repair from an intentional user choice. If the earlier disablement was incorrect, run `openclaw config set skills.entries.sag.enabled true`. Refresh the Skills list; the next agent turn uses the refreshed skill settings. ## Why This Change Was Made The bundled skill declaration keeps its executable requirement and removes the incorrect environment prerequisite. The original metadata fix and authorship are preserved. The regression now runs registered `skills info sag --json` and stopped-Gateway `doctor --fix`, including the saved enable flag, instead of calling the status helper directly. ## Evidence | Check | Main | This change | | --- | --- | --- | | Real CLI and Gateway `skills.status` | Needs setup; not visible | Ready; visible | | Control UI Skills list | Under Needs Setup | Under Ready | | Skill details | Missing-variable warning | Warning gone; key editor retained | | Stopped-Gateway Doctor | Saves `enabled=false` | Preserves absent or explicitly true enablement | | Registered CLI regression | Four expected failures | Four passes | Correlated request/response frames confirm that both the browser and CLI received `skills.status` from the Gateway. The installed executable's alternate key-file check uses a local test endpoint; live-account validity and audio production are not claimed. Fresh merge `489365ccffab2e043d676ed3b01cb2e0b5a203d4` has candidate parent `40632360f3ff8162fa27503e08c636223c8cc852` and main parent `c0c96881fafde0c7233634efb2ec656d11c9d5fe`. It passes 4 registered CLI regressions, 44 skill tests, 10 Doctor tests, and 153 test-registration checks. Changed-file lint, formatting, and whitespace checks pass. Main's regression run used `b02160ba495e16a79daefed319200ef062027a4b` with the same test and unchanged main metadata. The process test uses the existing isolated CLI project. Fixed test owners and CI job counts remain unchanged; generated compact group placement can change as the test inventory grows. Readiness does not establish live-account validity or successful audio output. ### Skills list | Before | After | | --- | --- | |  |  | ### Missing requirement and key editor | Before | After | | --- | --- | |  |  | ## Consumers - Discovery, Gateway and CLI status, both Doctor skill checks, onboarding, summaries, and recommendations read the same prerequisite declaration. - The Control UI list and agent controls consume the corrected status; the optional key editor remains available. - Runtime selection reads the same metadata. New snapshots preserve optional key injection; existing snapshot refresh rules remain unchanged. - Native clients consume the existing response. The macOS binary-trust reader uses the unchanged binary requirement. - Explicit disablement, allowlists, agent filters, configured-secret isolation, and automatic-update Doctor protection remain unchanged. ## Compatibility No new configuration key, schema, protocol, dependency, or runtime credential reader. Existing disabled entries are not automatically re-enabled. The skill prose assigns credential checking to the executable; readiness does not promise valid account credentials or successful speech generation. Co-authored-by: LiuwqGit <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
AI-assisted.
Supersedes #147381 by @LiuwqGit.
Closes #147346.
What Problem This Solves
A working
sagskill appears unavailable, anddoctor --fixdisables it, when its installed CLI obtains credentials outside the Gateway environment.User Impact
Installed
sagstays available with alternate credentials. The executable checks credentials when it runs. Optional configured-key injection remains available.Doctor does not automatically re-enable entries disabled by an earlier run. The saved flag does not distinguish Doctor repair from an intentional user choice. If the earlier disablement was incorrect, run
openclaw config set skills.entries.sag.enabled true. Refresh the Skills list; the next agent turn uses the refreshed skill settings.Why This Change Was Made
The bundled skill declaration keeps its executable requirement and removes the incorrect environment prerequisite. The original metadata fix and authorship are preserved. The regression now runs registered
skills info sag --jsonand stopped-Gatewaydoctor --fix, including the saved enable flag, instead of calling the status helper directly.Evidence
skills.statusenabled=falseCorrelated request/response frames confirm that both the browser and CLI received
skills.statusfrom the Gateway. The installed executable's alternate key-file check uses a local test endpoint; live-account validity and audio production are not claimed.Fresh merge
489365ccffab2e043d676ed3b01cb2e0b5a203d4has candidate parent40632360f3ff8162fa27503e08c636223c8cc852and main parent4750ff8d2b389280bdeaeec44d78b88cb7fb81d1. It passes 4 registered CLI regressions, 44 skill tests, 10 Doctor tests, and 153 test-registration checks. Changed-file lint, formatting, and whitespace checks pass. Main's regression run usedd0cf628ff20d234657813074774739bcf321447dwith the same test and unchanged main metadata.The process test uses the existing isolated CLI project. Fixed test owners and CI job counts remain unchanged; generated compact group placement can change as the test inventory grows. Readiness does not establish live-account validity or successful audio output.
Skills list
Missing requirement and key editor
Consumers
Compatibility
No new configuration key, schema, protocol, dependency, or runtime credential reader. Existing disabled entries are not automatically re-enabled. The skill prose assigns credential checking to the executable; readiness does not promise valid account credentials or successful speech generation.