Repository navigation
feat: select and manage installed agents from Models - #150224
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: blocked before merge. Reviewed September 20, 2026, 8:12 AM ET / 12:12 UTC (Revision 39). ClawSweeper reviewWhat this changesAdds installed-agent controls and model selection to Models settings, setup, and chat, with streamed replies and administrator-confirmed per-chat permission recovery. Merge readiness⛔ Blocked before merge - 3 items remain Keep open for normal landing. This maintainer-sponsored integration remains distinct from current main, retained behavior proof is sufficient, and no blocking defect was found in the reviewed paths. Priority: P2 Review scores
Verification
How this fits togetherThe model catalog connects installed native agents to OpenClaw’s shared model picker. The Gateway owns session selection, consent, transcripts, and run authority; ACPX handles communication with the selected native application. flowchart TD
A[Installed native agents] --> B[ACPX discovery]
B --> C[Shared model catalog]
C --> D[Models settings and chat picker]
D --> E[Gateway session and permission checks]
E --> F[Authorized native turn]
F --> G[Streamed reply and transcript]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve explicit runtime and billing choices, visible per-chat recovery, and the demonstrated core-first plugin upgrade path. Do we have a high-confidence way to reproduce the issue? Not applicable as a single bug reproduction: this is a feature integration, with retained observations covering selection, consent, streaming, cancellation, and persistence. Is this the best way to solve the issue? Yes. The implementation reuses ACPX for native transport and existing core owners for selection, session authority, and transcripts; the permission tradeoff is explicitly documented and maintainer-sponsored. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 02c89f1b07ca. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (38 earlier review cycles; latest 8 shown)
|
|
Prepared local build using the merged ACPX #616 source. The published draft still waits for the official package. The installed OpenCode agent returned one visible reply from a local model fixture in five seconds. The messaging tool profile showed the recovery message below without a new model request or workspace change. These captures do not establish paid-provider inference. |
86e05e9 to
ed54742
Compare
|
landpr-approve-admin-merge |






What Problem This Solves
Connects supported installed OpenCode, Qwen Code, Pi, and Kilo Code agents to Models settings, setup, the shared model picker, and chat. Each CLI owns its sign-in; this does not discover every arbitrary ACP-compatible executable.
User Impact
Why This Change Was Made
OpenClaw owns model selection, consent, transcripts, session lifecycle, and run authority. ACPX owns transport, model inspection, session-scoped client permissions, and final prompt admission. This consumes upstream ACPX #622, #623, and #624, rather than maintaining private enforcement wrappers in OpenClaw.
Both dependencies now use published acpx 0.17.1. The temporary Git-source pin and source-build approval are removed. Exact, dated dependency cooldown exclusions remain; installer integrity checks and script-disabled managed installation are unchanged.
The final reconciliation keeps catalog requests with the existing catalog schema owner, removes an unused type facade, and preserves native observation identity at the merge producer. Native policy calculation lives in the existing execution-policy module instead of importing the full agent runner during preflight. Runtime availability, implicit fallback, and explicit native pins stay with the execution selector; chat preflight checks only the known host-only runtime's permission restrictions. Tests exercise real catalog invalidation rather than retired UI wording or private metadata.
Evidence
[email protected]updater installed the standard candidate package. Staging, migration rehearsal/continuation, canary, swap, and Doctor succeeded. The existing session retained its ID, model, runtime, workspace, label, and permissions. Restart was explicit afterupdate --no-restart; automatic OS-service restart is not claimed./resetretention, restart retention, and unchanged agent defaults. Zero inference requests. The unchanged QA runner used Bun after a host Node/Undici error; the product Gateway used Node and the built candidate. Leases, credentials, processes, and listeners were cleaned up.opencode/big-pickle, an isolated HOME, and no API-key environment variables.chat.send. Inspected before/after screenshots are embedded in the PR discussion and originating chat; earlier consent/retry captures remain available.chat.sendvalidation. Moving the shared policy implementation fixed it without changing policy decisions: all nine moved function bodies and denial-prompt initializers have identical tokens. The registered consent-refusal test, 25 native-process cases, 18 model-ownership cases, 168 harness-selection cases, and seven relocated pure policy cases passed. The seven policy cases were moved, not added; the oversized selection module no longer needs its old size exception.Upgrade, Telegram, and UI recordings bind the compiled
99ecb40e5d0artifact. Later ACP changes affect empty catalog observations, schema placement, metadata-only policy loading, and test fixtures. Consent decisions and denial prompts are unchanged; native execution and pre-admission refusal were rechecked after the policy move. The final main merge also carries upstream update-service planning changes; retained upgrade proof still exercises the unchanged published 2026.9.4 driver with explicit no-restart, not a new automatic-service-restart claim. Historical observations are not relabeled as reruns of a later commit. Final exact-head review and hosted checks remain separate gates.Disclosed limits
npm-packinstallation imported successfully but correctly lacked official-plugin storage trust for native execution. The normal npm installation through the canonical prepublish registry fixture closed that execution gap without trust overrides.--bundle-plugin acpxdistribution failed Darwin staging in[email protected](binding.gypmissing). No flags or packaging code were weakened; the standard candidate installation remained intact. That custom-distribution route is not claimed green.Compatibility and intended permission contract
The maintainer-requested behavior is explicit administrator-only, per-chat delegation to the native app when optional restrictions cannot be enforced—not silent global relaxation or a second OpenClaw enforcement system. Mandatory boundaries, live run authority, and consent retirement remain required. The accompanying SDK additions use the existing harness, transcript, and turn-stream owners; existing silent transcript-write defaults remain unchanged.
The candidate plugin declares
compat.pluginApi: >=2026.9.5; supported installation uses that SDK floor rather than relying on the older general install hint. The package proof upgraded the host before installing the candidate plugin.Existing API-key setup and explicit ACP commands remain available. No database schema migration is introduced. No package release, operator Gateway redeployment, or OpenClaw merge is included in this preparation.
Contributor context
Sandbox recovery and upstream-first integration requested by @obviyus. Discussion, implementation and verification.