Commit 025e605
committed
fix: prevent API error messages from polluting chat history
Remove error message from API conversation history when assistant provides no response.
Keep error display to user via say("error") but do not add to LLM context.
This fixes the issue where API errors disrupt conversation flow.
Fixes #72491 parent c608392 commit 025e605
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2132 | 2132 | | |
2133 | 2133 | | |
2134 | 2134 | | |
2135 | | - | |
2136 | | - | |
2137 | | - | |
2138 | | - | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
2139 | 2138 | | |
2140 | 2139 | | |
2141 | 2140 | | |
| |||
0 commit comments