Commit 14070d6
committed
Fix spurious session restarts on runtime-mode-set and remove dead fallback chain in plan implementation
- Remove fallback to toProviderModelOptions(thread.modelSelection) in the
thread.runtime-mode-set handler. Before any turn was sent, the fallback would
produce defined modelOptions while the cache had none, causing
sameModelOptions(undefined, derivedOptions) to return false and triggering an
unnecessary session restart for Claude threads.
- Simplify nextThreadModelSelection in ChatView to use selectedModelSelection
directly, removing unreachable ?? fallbacks (selectedModelSelection is always
a non-null ModelSelection from useMemo).1 parent 8cad01a commit 14070d6
File tree
2 files changed
+2
-9
lines changed- apps
- server/src/orchestration/Layers
- web/src/components
2 files changed
+2
-9
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
708 | | - | |
709 | | - | |
710 | | - | |
| 708 | + | |
711 | 709 | | |
712 | 710 | | |
713 | 711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3035 | 3035 | | |
3036 | 3036 | | |
3037 | 3037 | | |
3038 | | - | |
3039 | | - | |
3040 | | - | |
3041 | | - | |
3042 | | - | |
3043 | | - | |
| 3038 | + | |
3044 | 3039 | | |
3045 | 3040 | | |
3046 | 3041 | | |
| |||
0 commit comments