Commit beb68c4
committed
Fix: allow clearing cached provider model options and fix mock agent test assertion
- mergeThreadModelOptions: use 'key in incoming' check instead of nullish
coalescing so that explicitly present-but-undefined provider keys clear
previously cached values instead of silently inheriting stale options.
- sendTurnForThread: delete threadModelOptions cache entry when merge
produces undefined, so cleared options don't persist.
- AcpJsonRpcConnection test: use toMatchObject instead of toEqual for
session/new result, since mock agent returns extra 'modes' field.1 parent 12f825a commit beb68c4
File tree
2 files changed
+17
-16
lines changed- apps/server/src
- orchestration/Layers
- provider/acp
2 files changed
+17
-16
lines changedLines changed: 16 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
55 | 63 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
| |||
405 | 402 | | |
406 | 403 | | |
407 | 404 | | |
408 | | - | |
409 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
410 | 411 | | |
411 | 412 | | |
412 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments