feat: generic model selection via ACP session/set_model#150
feat: generic model selection via ACP session/set_model#150ironerumi wants to merge 6 commits intoopenclaw:mainfrom
Conversation
Add agent-agnostic model selection that works across any ACP agent implementing session/set_model (e.g. Droid, Gemini), not tied to any agent's _meta conventions. - --model <id> flag at spawn time calls session/set_model after session creation when agent advertises available models - `acpx <agent> set model <id>` mid-session routes through session/set_model instead of session/set_config_option - Model state tracking, caching, and status enrichment - Graceful degradation: agents without model support skip silently; ACP-coded rejections produce clear error messages - Model cache only updated on successful set (not on rejection) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Triage resultHuman attention: Quick readThis PR is directionally right and the targeted feature validation passed. Blocking Codex review findings were fixed locally and pushed; no P0/P1 findings remain for current head The remaining handoff reason is CI state: the stored CI snapshot is green, but it is for older head IntentMake WhyBefore this PR, model selection was tied to Claude-specific Codex reviewLocal review for the current branch head is clear on blocking severity. Handled in this lane:
Current review status:
CI/CDTargeted feature validation passed on the PR branch using:
Additional focused reruns were completed locally after fixes in this lane. Stored CI snapshot:
Workflow approval is not the blocker here. The blocker is that the available CI snapshot does not confirm the latest head. RecommendationEscalate to a human for the final merge decision. Recommended next action:
|
Triage resultHuman attention: Quick read
IntentThis PR is trying to make WhyThe underlying problem is that Codex review
CI/CD
RecommendationEscalate to a human. The implementation looks right-shaped, but the flow is blocked by an ambiguous merge conflict in |
# Conflicts: # src/cli-core.ts
Triage resultHuman attention: Quick read
IntentMake Why
Codex review
CI/CD
RecommendationEscalate to a human to decide whether to require completion of the targeted feature validation before landing, or to make an explicit risk call and proceed without it. |
Summary
--model <id>at session creation callssession/set_modelwhen agent advertises modelsacpx <agent> set model <id>routes throughsession/set_modelinstead ofsession/set_config_optionTest plan
tsc --noEmit)Closes #148
Partially addresses #49
🤖 Generated with Claude Code