mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-24 04:47:03 +00:00
* 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.