Commit 7d16049
committed
Fix: replace Equal.equals with JSON.stringify comparison for ModelSelection
Equal.equals falls back to reference equality (===) for plain objects
without the Equal trait. Since ModelSelection objects are plain JS objects
created via Schema.Struct/Schema.Union, two identical selections would
always compare as different, causing unnecessary session restarts on every
Claude turn.1 parent e0d4388 commit 7d16049
File tree
1 file changed
+2
-2
lines changed- apps/server/src/orchestration/Layers
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
0 commit comments