Commit 0f3e831
compaction: prevent tool calls from models that ignore prompt instructions
* Qwen3 and other open-weight models hallucinate tool calls
during compaction despite the prompt saying not to, crashing
the session with "Tool call not allowed while generating
summary"
FIX
* set toolChoice: "none" at the API protocol level so the
model is structurally prevented from emitting tool calls1 parent a27d3c1 commit 0f3e831
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
266 | 267 | | |
267 | 268 | | |
268 | 269 | | |
| |||
0 commit comments