Commit 0f3df0e
authored
feat: add grace retry for empty assistant messages (#10297)
Implements grace retry error handling for 'no assistant messages' API
errors, following the same pattern as PR #10196 for 'no tools used'.
- Add consecutiveNoAssistantMessagesCount counter to Task.ts
- First failure: silent retry (grace retry)
- After 2+ consecutive failures: show MODEL_NO_ASSISTANT_MESSAGES error
- Add UI handling in ChatRow.tsx with ErrorRow component
- Add localized strings to all 18 locale files
- Add comprehensive tests for the grace retry behavior1 parent 71f312b commit 0f3df0e
File tree
21 files changed
+522
-18
lines changed- src/core/task
- __tests__
- webview-ui/src
- components/chat
- i18n/locales
- ca
- de
- en
- es
- fr
- hi
- id
- it
- ja
- ko
- nl
- pl
- pt-BR
- ru
- tr
- vi
- zh-CN
- zh-TW
21 files changed
+522
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| |||
1985 | 1986 | | |
1986 | 1987 | | |
1987 | 1988 | | |
| 1989 | + | |
1988 | 1990 | | |
1989 | 1991 | | |
1990 | 1992 | | |
| |||
3158 | 3160 | | |
3159 | 3161 | | |
3160 | 3162 | | |
| 3163 | + | |
| 3164 | + | |
3161 | 3165 | | |
3162 | 3166 | | |
3163 | 3167 | | |
| |||
3291 | 3295 | | |
3292 | 3296 | | |
3293 | 3297 | | |
| 3298 | + | |
| 3299 | + | |
| 3300 | + | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
| 3305 | + | |
| 3306 | + | |
3294 | 3307 | | |
3295 | 3308 | | |
3296 | 3309 | | |
| |||
0 commit comments