continue-custom/gui/src/redux/thunks
Dallin Romney 93c437cb0b
Improve error handling UX and move stream retry to BaseLLM (#11773)
* Improve error handling UX and move stream retry to BaseLLM

- Remove issue reporting buttons (GitHub/Discussions) from stream error dialog
- Add error detection for invalid API keys, OpenAI org verification,
  insufficient balance (402), and failed secret templating
- Update out-of-credits copy to match current messaging
- Add sk- prefix validation for OpenAI/Anthropic keys in add model form
- Update OpenRouter API key URL to workspaces/default/keys
- Move overloaded/malformed JSON retry from GUI streamThunkWrapper to
  BaseLLM _retryableStream to avoid glitchy UI from GUI-level retries
- Add overloaded/malformed JSON detection to core retry infrastructure

* fix: simplify retry architecture and make sk- validation a warning

- Remove _retryableStream from BaseLLM; overloaded/malformed JSON retry
  belongs in withExponentialBackoff at the HTTP fetch level
- Revert defaultShouldRetry/calculateDelay exports (no longer needed externally)
- Keep OpenRouter API key URL unchanged
- Make sk- prefix validation a warning instead of blocking error

* Fix stale comment referencing removed retry decorator

* Improve 402 Insufficient Balance error message clarity

* fix: improve copy - rename "View key" to "Check API key", use warning styles, simplify secret error message

* fix: use ternary for className to avoid space stripping by prettier

* style: fix prettier formatting in OutOfCreditsDialog

---------

Co-authored-by: continue[bot] <230936708+continue[bot]@users.noreply.github.com>
2026-03-24 12:40:19 -07:00
..
callToolById.ts feat: limited MCP App support (#10132) 2026-02-05 19:07:44 -08:00
cancelStream.ts clear dangling messages logic 2025-06-30 11:34:28 -07:00
cancelToolCall.ts fix: unify event names and fix tool calls test 2025-09-19 21:46:46 -07:00
edit.ts remove unused variables in load session 2025-09-25 17:46:44 +05:30
evaluateToolPolicies.ts feat: remove auto-accept edits setting (#8310) 2025-10-27 16:21:34 -07:00
handleApplyStateUpdate.test.ts feat: remove auto-accept edits setting (#8310) 2025-10-27 16:21:34 -07:00
handleApplyStateUpdate.ts fix: use yolo when applying diff 2025-10-29 10:20:33 +05:30
moveTerminalProcessToBackground.ts feat: Add ability to stop foreground terminal commands 2025-09-09 10:12:59 -07:00
preprocessToolCallArgs.ts fix: separate preprocessed tool args (#8111) 2025-10-07 09:35:50 -07:00
selectFirstHubProfile.ts remove all barrel extensions 2025-06-19 13:42:43 -07:00
session.ts allow async save of old session 2026-01-15 11:37:24 +05:30
streamNormalInput.ts fix: harden system message tools and wire toolOverrides to system message path (#10485) 2026-03-13 12:52:05 -07:00
streamResponse.test.ts fix: extra setInactive in test 2025-10-12 00:03:05 -07:00
streamResponse.ts feat: tool call args preprocessing (#7992) 2025-09-30 18:49:29 -07:00
streamResponse_errorHandling.test.ts feat: tool call args preprocessing (#7992) 2025-09-30 18:49:29 -07:00
streamResponse_toolCalls.test.ts Update streamResponse_toolCalls.test.ts 2025-10-17 18:37:25 -07:00
streamResponseAfterToolCall.ts feat: tool call args preprocessing (#7992) 2025-09-30 18:49:29 -07:00
streamThunkWrapper.tsx Improve error handling UX and move stream retry to BaseLLM (#11773) 2026-03-24 12:40:19 -07:00
updateFileSymbols.ts fix: iterations on notch updates - create agent vs assistant, skip gui tests for now 2025-09-09 20:27:50 -07:00
updateSelectedModelByRole.ts feat: use thunj 2025-04-08 18:47:29 -07:00