Commit de46c2f
committed
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.1 parent 96d6160 commit de46c2f
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments