continue-custom/gui/src/util
Dallin Romney 393c92509f
fix: show actionable error when Ollama fails to parse tool calls (#11870)
* fix: show actionable error when Ollama fails to parse tool calls

When Ollama models (e.g. gpt-oss:20b) produce malformed tool call
output, Ollama returns "error parsing tool call" which previously
surfaced as an opaque "Unknown error".

Add pattern matching in analyzeError() to detect this specific error
and show a helpful message explaining the issue is transient, that the
user can resubmit, and that enabling "Only use system message tools"
in Settings > Experimental avoids Ollama's native tool call parser.

Fixes #11783, #11063, #10954, #10897, #10711, #10221, #9433

* fix: refine Ollama tool call error copy and matching

Tighten string match to "error parsing ollama response: error: error
parsing tool call" to avoid false positives. Soften settings suggestion
to "Enabling ... may reduce these errors".

* fix: match on Ollama's error string directly
2026-03-25 22:09:11 -07:00
..
clientTools fix: separate preprocessed tool args (#8111) 2025-10-07 09:35:50 -07:00
test feat: tool call args preprocessing (#7992) 2025-09-30 18:49:29 -07:00
cn.ts docstring 2025-06-26 21:56:53 -07:00
compactConversation.ts fix: prettier 2025-07-18 11:33:29 -07:00
editOutcomeLogger.test.ts fix: outcome logger test 2025-08-21 11:27:42 -07:00
editOutcomeLogger.ts fix: redux bug 2025-08-20 22:41:19 -07:00
errorAnalysis.test.ts feat: add useResponsesApi option to opt out of Responses API (#11809) 2026-03-25 16:09:46 -07:00
errorAnalysis.ts fix: show actionable error when Ollama fails to parse tool calls (#11870) 2026-03-25 22:09:11 -07:00
index.ts feat: expose legacy /share command to VS Code UI 2025-08-18 16:12:06 +02:00
isContinueTeamMember.ts feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
localStorage.test.ts chore: add vitest script, example unit test 2024-10-16 10:30:15 +09:00
localStorage.ts feat: restore feedback modal for user interest collection 2025-11-08 03:18:57 +00:00
migrateLocalStorage.ts fix: duplicate imports 2025-09-04 14:55:25 -07:00
navigation.ts Rename "agent" terminology to "config" throughout the codebase (#8229) 2025-10-13 22:25:42 -07:00
toolCallState.test.ts fix: tests and prettier 2025-08-20 17:45:16 -07:00
toolCallState.ts feat: auto-accept agent edits setting auto accept edit tools (#7993) 2025-10-06 13:51:25 -07:00