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
{{ message }}
Repository navigation
Commit af319d3
Browse filesBrowse the repository at this point in the historyBrowse files
Restore saved model and valid config selections on genuine reconnects,
reconcile complete acknowledgements, and preserve notification ordering
through initialization, idle controls, and active turns. Do not reuse a
client after failed preference restoration.
Consolidates the resume repair with accepted model/effort persistence and
returns the accepted snapshot to embedded consumers.
Co-authored-by: Firmansyah Otoluwa <[email protected]>
- Docs/JSON: fix raw ACP tool-call pipelines and message examples so automation reads nested session updates and handles partial tool updates. Fixes #520. Thanks @prateek.
18
+
- Session controls: restore saved model/config selections after reconnect, keep reasoning effort aligned with accepted model changes, and return accepted configuration to embedded clients without pinning unselected defaults. Thanks @programmerlapar.
- ACPX pins the built-in package range so fresh installs pick up Claude model and ACP adapter fixes without depending on a global adapter binary.
7
+
- Model switches can change the available effort controls. ACPX updates existing saved effort selections from the accepted response and removes selections whose controls disappear.
8
+
- Saved model and config selections are restored after reconnect, without replacing the conversation.
Copy file name to clipboardExpand all lines: agents/Codex.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,4 +6,6 @@
6
6
- ACPX owns the built-in package range so fresh launches use the repository-selected stable adapter line without requiring a global install.
7
7
- Runtime controls exposed by current codex-acp releases include ACP modes plus separate `model` and `reasoning_effort` session config options.
8
8
- Use the advertised base model id with `acpx --model <id> codex ...` or `acpx codex set model <id>`, then set reasoning effort separately with `acpx codex set reasoning_effort <value>`.
9
+
- Switching models can adjust reasoning effort. ACPX saves the accepted effort for an existing selection, or removes that selection if the new model has no effort control.
10
+
- Reconnecting restores the saved model and effort before prompting, even when the adapter resumes the conversation with different defaults.
9
11
- Legacy `models` metadata may encode both values in a combined id such as `gpt-5.6-sol[max]`; ACPX uses that form only when the adapter does not advertise the newer model config option.
Copy file name to clipboardExpand all lines: docs/CLI.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -322,6 +322,8 @@ Behavior:
322
322
- Routes through queue-owner IPC when an owner is active.
323
323
- Falls back to a direct client reconnect when no owner is running.
324
324
- **`set model <id>`**: Uses the advertised model config option through `session/set_config_option`; adapters that explicitly advertise legacy `models` metadata use `session/set_model`.
325
+
- Saves accepted values for existing non-mode selections, including reasoning effort adjusted or removed by a model switch; does not pin unselected defaults.
326
+
- Restores saved model and config selections after reconnect, before the next prompt; already loaded sessions are reused without replay.
Copy file name to clipboardExpand all lines: docs/session-control.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,11 @@ acpx claude set verbosity terse
48
48
acpx set model gpt-5.4 # defaults to codex
49
49
```
50
50
51
-
Calls ACP `session/set_config_option` with the literal `<key>` and `<value>`. Non-mode `set_config_option` values are persisted by `acpx` and replayed onto fresh adapter sessions when the adapter supports those config keys.
51
+
Calls ACP `session/set_config_option` with the literal `<key>` and `<value>`. Non-mode selections are saved using the adapter's accepted values and restored after reconnect, before the next prompt. If a control changes another saved selection, such as reasoning effort after a model switch, ACPX saves the adjusted value or removes the selection when its control disappears. Unselected defaults are not pinned.
52
+
53
+
After a genuine resume or load, ACPX restores the saved model first when the adapter advertises model controls, then replays saved configuration. An already loaded, reusable session needs no replay. A failed replay stops the operation with an error instead of silently continuing with defaults.
54
+
55
+
For applications using `acpx/runtime`, `AcpxRuntime.setConfigOption(...)` returns the ACP response's complete `configOptions` after saving the accepted state. Use that response to update displayed controls, including changed or removed sibling options.
Copy file name to clipboardExpand all lines: skills/acpx/SKILL.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,6 +189,8 @@ Behavior:
189
189
- Current codex-acp releases expose `model` and `reasoning_effort` as separate config options.
190
190
- `--model <id>`: Claude-compatible adapters may consume session creation metadata; other agents must advertise a model config option or legacy `models` metadata.
191
191
- `set model <id>`: uses `session/set_config_option`for advertised model config options and preserves `session/set_model`for explicitly advertised legacy models.
192
+
- Model switches can change or remove reasoning-effort controls. ACPX reconciles saved non-mode selections with the accepted response;selecta supported effort again if needed.
193
+
- After reconnect, ACPX restores the saved model when advertised and replays saved config selections before prompting. A replay failure is reported instead of silently using defaults.
192
194
- `set-mode`/`set` route through queue-owner IPC when active, otherwise reconnect directly.
0 commit comments