Files
t3code/apps
Cursor Agent de46c2f9bd Fix sameModelSelectionOptions to compare only options, not full ModelSelection
The function was comparing the entire ModelSelection (provider, model, options)
via JSON.stringify, but shouldRestartForModelSelectionChange is meant to restart
claudeAgent sessions only when options change. Since both adapters report
sessionModelSwitch: "in-session", model-name-only changes should use the
in-session setModel call, not trigger a full session restart.

Changed the comparison to only look at the options field of ModelSelection.
2026-03-24 21:44:42 +00:00
..