jcode icon indicating copy to clipboard operation
jcode copied to clipboard

BUG: Auto model swap from gpt 5.5 (high) to 5.5 (lo) fast

Open eDiZoN3 opened this issue 5 months ago • 2 comments

when setting model to gpt-5.5 (high) or (max), jcode automatically decides to do the tasts with 5.5 (lo) fast anyways. is this a bug or an outrouting after classifying the task as easy?

eDiZoN3 avatar Jun 30 '26 19:06 eDiZoN3

This shouldn't happen, I'll look into it

1jehuang avatar Jul 01 '26 03:07 1jehuang

Found and fixed on master in 446d3fff.

Root cause: this was a remote-mode (client/server) bug in the model picker. Picking an effort-variant row like gpt-5.5 (high) staged only the model spec for the server switch; the chosen effort was applied to the TUI's local stand-in provider, which never reaches the server. The server kept its configured default effort (typically low), so the session silently ran gpt-5.5 at low effort - the 'auto swap to (lo) fast' you observed.

Fix: the picker now stages the effort variant alongside the pending model switch, and the client sends a SetReasoningEffort request right after the model-switch request succeeds. The header reflects the requested effort immediately and is confirmed by the server event. Covered by 4 regression tests (picker staging + wire-level dispatch).

This will be in the next release. If you still see effort downgrades after that, please note whether it happens mid-session (without touching the picker) - that would point at a different path (config reload/session restore, tracked in #380).

1jehuang avatar Jul 03 '26 03:07 1jehuang