You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: generic model selection via ACP session/set_model (#150)
* feat: generic model selection via ACP session/set_model
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* test: cover explicit codex model control
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Onur Solmaz <2453968+osolmaz@users.noreply.github.com>
|`--model <id>`| Set agent model | Passed through to agent-specific session creation metadata when applicable;if the agent advertises models, `acpx` also applies it via ACP `session/set_model`. |
119
+
|`--verbose`| Enable verbose logs | Prints ACP/debug details to stderr. |
119
120
120
121
Permission flags are mutually exclusive. Using more than one of `--approve-all`, `--approve-reads`, `--deny-all` is a usage error.
121
122
@@ -287,6 +288,7 @@ Behavior:
287
288
- Calls ACP `session/set_config_option`.
288
289
- Routes through queue-owner IPC when an owner is active.
289
290
- Falls back to a direct client reconnect when no owner is running.
291
+
- **`set model <id>`**: Intercepted to call `session/set_model` instead. Some agents support `session/set_model` but not `session/set_config_option`for model changes; routing through the dedicated method ensures broad compatibility.
Copy file name to clipboardExpand all lines: skills/acpx/SKILL.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,12 +139,13 @@ Behavior:
139
139
- Runs a single prompt in a temporary ACP session
140
140
- Does not reuse or save persistent session state
141
141
142
-
### Cancel / Mode / Config
142
+
### Cancel / Mode / Config / Model
143
143
144
144
```bash
145
145
acpx codex cancel
146
146
acpx codex set-mode auto
147
147
acpx codex set thought_level high
148
+
acpx codex set model gpt-5.4
148
149
```
149
150
150
151
Behavior:
@@ -153,8 +154,9 @@ Behavior:
153
154
- `set-mode`: calls ACP `session/set_mode`.
154
155
- `set-mode` mode ids are adapter-defined; unsupported values are rejected by the adapter (often `Invalid params`).
155
156
- `set`: calls ACP `session/set_config_option`.
156
-
- For codex, `--model <id>` is applied after session creation via `session/set_config_option`.
157
157
- For codex, `thought_level` is accepted as a compatibility aliasfor codex-acp `reasoning_effort`.
158
+
- `--model <id>`: passed through to agent-specific session creation metadata when applicable;if the agent advertises models, `acpx` also applies it via `session/set_model`.
159
+
- `set model <id>`: calls `session/set_model`. This is the generic ACP method for mid-session model switching.
158
160
- `set-mode`/`set` route through queue-owner IPC when active, otherwise reconnect directly.
159
161
160
162
### Sessions
@@ -200,6 +202,7 @@ Behavior:
200
202
- `--suppress-reads`: suppress raw read-file contents while preserving the selected format
201
203
- `--timeout <seconds>`: max waittime (positive number)
0 commit comments