Files
hapi/docs
SSU-WEI HUANGandGitHub b7b1da40eb feat(copilot): reasoning effort selection for remote sessions (#2348)
* feat(copilot): reasoning effort selection for remote sessions

Copilot's ACP session advertises the active model's reasoning levels as a
thought_level config option. Expose it like Grok's: a session RPC + hub
route for the options, the composer effort picker, and per-turn
session/set_config_option in the remote launcher. The runner forwards
--effort so resumed sessions keep the selection.

* fix(copilot): keep effort options in step with model switches

Copilot answers session/set_model with no config options and pushes the
new model's thought_level via config_option_update; capture it (opt-in in
the ACP backend), re-baseline the launcher's effort after a switch, report
'switch pending' until the next turn applies it, and have the web poll
until discovery succeeds instead of giving up on the first failure.

* test(acp): flavor-neutral config_option_update test

* fix(copilot): gate effort discovery on the model the backend applied

Compare the model the next queued turn carries with the backend's model
instead of session state, so an older queued batch or a failed switch
keeps discovery pending; forward the saved effort on terminal resume.
2026-11-10 15:11:16 +08:00
..
2026-01-04 20:45:15 +08:00