Roo-Code/src
Hannes Rudolph a11be8b72e fix: validate Gemini thinkingLevel against model capabilities and handle empty streams (#11303)
* fix: validate Gemini thinkingLevel against model capabilities and handle empty streams

getGeminiReasoning() now validates the selected effort against the model's
supportsReasoningEffort array before sending it as thinkingLevel. When a
stale settings value (e.g. 'medium' from a different model) is not in the
supported set, it falls back to the model's default reasoningEffort.

GeminiHandler.createMessage() now tracks whether any text content was
yielded during streaming and handles NoOutputGeneratedError gracefully
instead of surfacing the cryptic 'No output generated' error.

* fix: guard thinkingLevel fallback against 'none' effort and add i18n TODO

The array validation fallback in getGeminiReasoning() now only triggers
when the selected effort IS a valid Gemini thinking level but not in
the model's supported set. Values like 'none' (explicit no-reasoning
signal) are no longer overridden by the model default.

Also adds a TODO for moving the empty-stream message to i18n.

* fix: track tool_call_start in hasContent to avoid false empty-stream warning

Tool-only responses (no text) are valid content. Without this,
agentic tool-call responses would incorrectly trigger the empty
response warning message.
2026-02-08 20:50:21 +00:00
..
__mocks__ Add timeout to OpenAI Compatible Provider Client (#9898) 2025-12-08 17:36:53 -08:00
__tests__ chore: treat extension .env as optional (#11116) 2026-01-30 16:15:50 -07:00
activate ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
api fix: validate Gemini thinkingLevel against model capabilities and handle empty streams (#11303) 2026-02-08 20:50:21 +00:00
assets Show the Roo provider on the welcome screen (#8317) 2025-09-25 16:13:04 -04:00
core feat: add lock toggle to pin API config across all modes in workspace (#11295) 2026-02-07 20:31:22 -07:00
extension feat: add IPC query handlers for commands, modes, and models (#11279) 2026-02-06 16:29:49 -08:00
i18n ux: improve Skills and Slash Commands settings UI with multi-mode support (#11157) 2026-02-03 12:11:58 -05:00
integrations refactor(read_file): Codex-inspired read_file refactor EXT-617 (#10981) 2026-01-29 15:16:32 -07:00
services feat: add support for .agents/skills directory (#11181) 2026-02-05 16:40:06 -08:00
shared ux: improve Skills and Slash Commands settings UI with multi-mode support (#11157) 2026-02-03 12:11:58 -05:00
types feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
utils fix: sanitize tool_use_id in tool_result blocks to match API history (#11131) 2026-01-30 23:15:25 -05:00
workers Count tokens worker (#3037) 2025-04-29 12:29:25 -07:00
.gitignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.prettierignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.vscodeignore debug: Add ErrorBoundary component for better error handling (#5085) 2025-07-23 08:45:35 -04:00
esbuild.mjs refactor: migrate baseten provider to AI SDK (#11261) 2026-02-06 20:02:17 -05:00
eslint.config.mjs Fix linter errors (#3821) 2025-05-21 23:16:43 -07:00
extension.ts chore: treat extension .env as optional (#11116) 2026-01-30 16:15:50 -07:00
package.json refactor: migrate zai provider to AI SDK (#11263) 2026-02-07 10:27:11 -07:00
package.nls.ca.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.de.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.es.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.fr.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.hi.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.id.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.it.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.ja.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.ko.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.nl.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.pl.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.pt-BR.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.ru.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.tr.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.vi.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.zh-CN.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.zh-TW.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
tsconfig.json Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
turbo.json Improve turbo task dependency declarations (#4323) 2025-06-04 09:32:27 -07:00
vitest.config.ts Show console logging in vitests when the --no-silent flag is set (#7467) 2025-08-28 12:51:21 -04:00
vitest.setup.ts Show console logging in vitests when the --no-silent flag is set (#7467) 2025-08-28 12:51:21 -04:00