Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1414 commits
Select commit Hold shift + click to select a range
7766b91
Revert "fix: merge settings and versionedSettings for Roo provider mo…
cte Dec 11, 2025
5072ff1
Revert the 3.6.5 release (we halted it) (#10036)
cte Dec 11, 2025
4dabd52
Release v3.36.5 (#10037)
cte Dec 11, 2025
f97b515
Changeset version bump (#10038)
github-actions[bot] Dec 11, 2025
bdce2cc
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 12, 2025
6ba0233
test: adjust terminal count limits in TerminalRegistry tests
mini2s Dec 12, 2025
2d1db85
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 12, 2025
8308cbd
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 12, 2025
495b5c6
ux: improve auto-approve timer visibility in follow-up suggestions (#…
brunobergher Dec 12, 2025
d976a9b
fix: cancel auto-approval timeout when user starts typing (#9937)
roomote-v0[bot] Dec 12, 2025
f67c4cd
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 12, 2025
23a214c
fix: extract raw error message from OpenRouter metadata (#10039)
daniel-lxs Dec 12, 2025
ba7c553
feat: add tool alias support for model-specific tool customization (#…
daniel-lxs Dec 12, 2025
0f8fac9
fix: show tool protocol dropdown for LiteLLM provider (#10053)
daniel-lxs Dec 12, 2025
8da4d3d
feat: add WorkspaceTaskVisibility type for organization cloud setting…
roomote-v0[bot] Dec 12, 2025
f60c14e
Release: v1.91.0 (#10055)
jr Dec 12, 2025
3521270
feat: sanitize MCP server/tool names for API compatibility (#10054)
daniel-lxs Dec 12, 2025
0742335
Release v3.36.6 (#10057)
cte Dec 12, 2025
4771de1
Changeset version bump (#10058)
github-actions[bot] Dec 12, 2025
a3b258a
fix: use JavaScript-based hover for checkpoint menu visibility (#10056)
hannesrudolph Dec 12, 2025
05e64dd
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 13, 2025
312fb62
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 13, 2025
1ae042d
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 13, 2025
0fbbe66
feat: remove auto-approve toggles for to-do and retry actions (#10062)
hannesrudolph Dec 14, 2025
3e0dbd1
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 14, 2025
e4b9568
feat(openrouter): add improvements to openrouter provider (#10082)
hannesrudolph Dec 14, 2025
1be8a99
feat: Add Amazon Nova 2 Lite model to Bedrock provider (#9830)
roomote-v0[bot] Dec 14, 2025
9f3122f
feat: add AWS Bedrock service tier support (#9955)
roomote-v0[bot] Dec 14, 2025
a80a74a
Capture more of OpenRouter's provider specific error details (#10073)
jr Dec 14, 2025
3254109
feat(web-evals): improve run logs and formatters (#10081)
hannesrudolph Dec 15, 2025
d2665c2
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 15, 2025
cd12313
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 15, 2025
afe4996
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 15, 2025
c713916
Move isToolAllowedForMode out of shared directory (#10089)
cte Dec 15, 2025
12d9fad
chore: add changeset for v3.36.7 (#10091)
mrubens Dec 15, 2025
1d4fc52
Changeset version bump (#10092)
github-actions[bot] Dec 15, 2025
1f3ab2b
fix: prevent duplicate MCP tools error by deduplicating servers at so…
daniel-lxs Dec 15, 2025
5929e26
feat: add metadata to error details dialog (#10050)
roomote-v0[bot] Dec 15, 2025
1ff5d1d
web: Fixes link to provider pricing page (#10107)
brunobergher Dec 15, 2025
bf81fa7
feat(read-file): implement incremental token-budgeted file reading (#…
jr Dec 15, 2025
3502f41
Add config to control public sharing (#10105)
mrubens Dec 16, 2025
be894a6
Release: v1.92.0 (#10116)
mrubens Dec 16, 2025
a6caa55
Remove the description from bedrock service tiers (#10118)
mrubens Dec 16, 2025
8138c1b
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 16, 2025
ef3c88c
feat: remove strict ARN validation for Bedrock custom ARN users (#10110)
roomote-v0[bot] Dec 16, 2025
69307ba
fix: prevent race condition from deleting wrong API messages (#10113)
hannesrudolph Dec 16, 2025
6619d46
feat(anthropic): enable native tools by default and add telemetry tra…
daniel-lxs Dec 16, 2025
a9a15b3
feat: enable native tools by default for multiple providers (#10059)
daniel-lxs Dec 16, 2025
eb249a0
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 16, 2025
596783d
Release v3.36.8 (#10119)
cte Dec 16, 2025
748004b
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 16, 2025
93bc8c4
fix: add additionalProperties: false to nested MCP tool schemas (#10109)
daniel-lxs Dec 16, 2025
a7b192a
fix: normalize tool call IDs for cross-provider compatibility via Ope…
daniel-lxs Dec 16, 2025
caf6142
feat: add full error details to streaming failure dialog (#10131)
roomote-v0[bot] Dec 16, 2025
7ce329b
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 16, 2025
c7cdf83
fix: validate tool_result IDs in delegation resume flow (#10135)
daniel-lxs Dec 16, 2025
84c5d2f
feat(evals): improve evals UI with tool groups and duration fix (#10133)
hannesrudolph Dec 16, 2025
b4c6758
Changeset version bump (#10120)
github-actions[bot] Dec 16, 2025
6270c4b
Release v3.36.9 (#10138)
cte Dec 16, 2025
efef269
Changeset version bump (#10137)
github-actions[bot] Dec 16, 2025
f414ba4
fix: correct token counting for context truncation display (#9961)
hannesrudolph Dec 16, 2025
d274812
feat(deepseek): implement interleaved thinking mode for deepseek-reas…
hannesrudolph Dec 16, 2025
5eb4fe3
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 17, 2025
d7bd32b
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 17, 2025
2863b1c
Update next.js to ~15.2.8 (#10140)
jr Dec 17, 2025
f9997ba
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 17, 2025
343665f
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 17, 2025
970deea
fix(deepseek): preserve reasoning_content during tool call sequences …
hannesrudolph Dec 17, 2025
cc3bc35
feat: add gemini-3-flash-preview model (#10151)
hannesrudolph Dec 17, 2025
275ccf6
Release v3.36.10 (#10153)
mrubens Dec 17, 2025
752a950
Changeset version bump (#10154)
github-actions[bot] Dec 17, 2025
4693b9e
fix(bedrock): convert tool_result to XML text when native tools disab…
daniel-lxs Dec 17, 2025
ed631dc
fix: remove dots and colons from MCP tool names for Bedrock compatibi…
daniel-lxs Dec 17, 2025
bdf7d2a
fix: improve terminal process error handling and abort operation
mini2s Dec 17, 2025
65d1cde
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 17, 2025
affa5f2
fix(ROO-202): refresh Roo models cache with session token on auth sta…
daniel-lxs Dec 17, 2025
eac0d62
fix: support AWS GovCloud and China region ARNs in Bedrock provider (…
roomote-v0[bot] Dec 17, 2025
9e9d779
feat: enable native tool calling by default for Z.ai models (#10158)
roomote-v0[bot] Dec 17, 2025
0b86796
[feat] Claude Code Provider Native Tool Calling (#10077)
hannesrudolph Dec 17, 2025
aa3b4ae
fix: normalize MCP tool schemas for Bedrock and OpenAI strict mode (#…
daniel-lxs Dec 17, 2025
2a2411d
fix: enable native tools by default for OpenAI compatible provider (#…
daniel-lxs Dec 17, 2025
09552fa
Release v3.36.11 (#10161)
cte Dec 17, 2025
495664c
Changeset version bump (#10162)
github-actions[bot] Dec 17, 2025
45dbe4d
feat(telemetry): extract error messages from JSON payloads for better…
daniel-lxs Dec 17, 2025
f899de1
fix: add userAgentAppId to Bedrock embedder for code indexing (#10166)
roomote-v0[bot] Dec 18, 2025
06c5c7f
feat: update OpenAI and Gemini tool preferences (#10170)
hannesrudolph Dec 18, 2025
50f28da
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 18, 2025
0bfdb97
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 18, 2025
cb2e53e
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 18, 2025
b64f09a
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 18, 2025
17b1680
Release v3.36.12 (#10181)
cte Dec 18, 2025
d376869
Changeset version bump (#10182)
github-actions[bot] Dec 18, 2025
3cb2c1d
Revert "Revert "feat: change defaultToolProtocol default from xml to …
mrubens Dec 18, 2025
d92d729
fix(litellm): merge default model info with router models for NTC sup…
daniel-lxs Dec 18, 2025
e84e334
Release: v1.93.0 (#10190)
cte Dec 18, 2025
157a097
feat(vscode-lm): add native tool support (#10191)
daniel-lxs Dec 18, 2025
8251170
feat: Replace edit_file tool alias with edit_file tool (#9983)
hannesrudolph Dec 18, 2025
3e0d9c6
feat: lock task tool protocol for consistent task resumption (#10192)
daniel-lxs Dec 18, 2025
3a2ad6b
feat(telemetry): add PostHog exception tracking for consecutive mista…
daniel-lxs Dec 18, 2025
7789b40
Release v3.36.13 (#10194)
cte Dec 18, 2025
b37b231
Changeset version bump (#10195)
github-actions[bot] Dec 18, 2025
e2d1599
feat: improve 'no tools used' error handling with grace retry (#10196)
hannesrudolph Dec 18, 2025
9c03476
feat(vertex): add native tool calling for Claude models on Vertex AI …
hannesrudolph Dec 19, 2025
c3a4d14
fix: strip unsupported JSON Schema format values for OpenAI compatibi…
daniel-lxs Dec 19, 2025
4b9d9b7
Release v3.36.14 (#10200)
cte Dec 19, 2025
3c05cae
Changeset version bump (#10201)
github-actions[bot] Dec 19, 2025
b67b1e8
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 19, 2025
bc50606
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 19, 2025
a475cd3
feat(telemetry): add telemetry event handling through webview messages
mini2s Dec 19, 2025
2dec78c
fix: refresh models button not flushing cache properly (#9870)
pdecat Dec 19, 2025
3f1f8be
feat(vertex): add 1M context window beta support for Claude Sonnet 4 …
hannesrudolph Dec 19, 2025
61903f9
feat(providers): add native tool calling support to LM Studio and Qwe…
hannesrudolph Dec 19, 2025
6e2b852
ux: improve API error handling and visibility (#10204)
brunobergher Dec 19, 2025
ae41af6
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 19, 2025
bb358fb
ux: add downloadable error diagnostics from chat errors (#10188)
brunobergher Dec 19, 2025
397328c
feat: merge native tool defaults for openai-compatible provider (#10213)
hannesrudolph Dec 19, 2025
aabee0f
fix: force additionalProperties false for strict mode compatibility (…
daniel-lxs Dec 19, 2025
bade932
fix: enable native tool calls for Requesty provider (ROO-235) (#10211)
daniel-lxs Dec 19, 2025
ccbb25d
Release v3.36.15 (#10218)
cte Dec 19, 2025
f7adc4b
Changeset version bump (#10219)
github-actions[bot] Dec 19, 2025
5c798a9
fix: normalize tool schemas for VS Code LM API to fix error 400 (#10221)
hannesrudolph Dec 20, 2025
d2814da
Release v3.36.16 (#10224)
mrubens Dec 20, 2025
78dc344
Changeset version bump (#10225)
github-actions[bot] Dec 20, 2025
6cf7be6
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 20, 2025
37765c8
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 20, 2025
f3ca7c4
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 21, 2025
5ae4d4d
Custom tool calling (#10083)
cte Dec 21, 2025
3beeac6
Remove the "test" custom tools (#10255)
cte Dec 21, 2025
2bb3755
Add custom tool definitions to @roo-code/types (#10233)
cte Dec 21, 2025
fb9245f
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 22, 2025
6b755ed
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 22, 2025
f23e9ac
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 22, 2025
08eed65
fix(evals): add missing packages/core to Dockerfile.runner (#10272)
hannesrudolph Dec 22, 2025
a148b0b
feat: add Cloud Team page with comprehensive team features (#10267)
roomote-v0[bot] Dec 22, 2025
e3cd031
feat: remove parallel_tool_calls parameter from litellm provider (#10…
roomote-v0[bot] Dec 22, 2025
c800c67
feat(build): add types package bundling and alias support
mini2s Dec 22, 2025
149e78e
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 22, 2025
a7d258b
update(settings): change default tool protocol to XML
mini2s Dec 22, 2025
529e0d7
fix: enable Requesty refresh models with credentials (#10273)
daniel-lxs Dec 22, 2025
6b141fb
fix: disable strict mode for MCP tools to preserve optional parameter…
daniel-lxs Dec 22, 2025
7fae76e
fix: move array-specific properties into anyOf variant in normalizeTo…
daniel-lxs Dec 22, 2025
24d988d
refactor(custom-tools): improve tool loading and instance consistency
mini2s Dec 22, 2025
a144a37
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 22, 2025
f462eeb
fix(chutes): add graceful fallback for model parsing (#10279)
hannesrudolph Dec 22, 2025
9b06a98
fix: emit tool_call_end events in OpenAI handler when streaming ends …
daniel-lxs Dec 22, 2025
0d3e81d
feat(core): add support for custom tool parsing in AssistantMessagePa…
mini2s Dec 23, 2025
2c5a4c8
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 23, 2025
d00d9ed
feat: deprecate XML tool protocol selection, force native for new tas…
daniel-lxs Dec 23, 2025
b37b387
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 23, 2025
518a440
feat(zai): add GLM-4.7 model with thinking mode support (#10282)
hannesrudolph Dec 23, 2025
44a7ba5
fix: improve reasoning_details accumulation and serialization (#10285)
hannesrudolph Dec 23, 2025
bd78a63
feat(evals): add message log deduper utility (#10286)
hannesrudolph Dec 23, 2025
e7c1851
feat(minimax): move environment_details to system message for thinkin…
hannesrudolph Dec 23, 2025
f21ec12
fix: add CRLF line ending normalization to search_replace and search_…
hannesrudolph Dec 23, 2025
eeaf33c
refactor(zai): merge environment_details into tool result instead of …
hannesrudolph Dec 23, 2025
edee332
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 23, 2025
2997566
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 23, 2025
061ae14
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 23, 2025
a8ac2ce
fix: emit tool_call_end events in BaseOpenAiCompatibleProvider (#10293)
hannesrudolph Dec 23, 2025
89e9261
fix: preserve reasoning_content in condense summary for DeepSeek-reas…
hannesrudolph Dec 23, 2025
dd44f8f
Release v3.37.0 (#10295)
mrubens Dec 23, 2025
30090de
Changeset version bump (#10296)
github-actions[bot] Dec 23, 2025
a7c1d24
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 23, 2025
71f312b
feat: enable mergeToolResultText for Roo Code Cloud provider (#10301)
hannesrudolph Dec 23, 2025
ddc0c01
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 23, 2025
044d502
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 23, 2025
0f3df0e
feat: add grace retry for empty assistant messages (#10297)
hannesrudolph Dec 23, 2025
40812dc
Release: v1.95.0 (#10309)
jr Dec 23, 2025
9b99890
feat(prompts): strengthen native tool-use guidance (#10311)
hannesrudolph Dec 23, 2025
ded6486
feat: enable mergeToolResultText for all OpenAI-compatible providers …
hannesrudolph Dec 23, 2025
53e1ff0
fix: preserve reasoning_details shape to prevent malformed responses …
hannesrudolph Dec 23, 2025
dfa7c35
fix(task): drain queued messages while waiting for ask (#10315)
hannesrudolph Dec 23, 2025
6afc59b
fix(openai): send native tool definitions by default (#10314)
hannesrudolph Dec 23, 2025
57cafa5
ux: Provider-centric signup (#10306)
brunobergher Dec 23, 2025
5c7939b
chore: add changeset for v3.37.1 (#10316)
mrubens Dec 23, 2025
1e71015
Changeset version bump (#10317)
github-actions[bot] Dec 23, 2025
efe97f7
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 24, 2025
d29555b
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 24, 2025
ae7d014
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 24, 2025
6d8be95
refactor: simplify tool protocol resolution logic
mini2s Dec 24, 2025
62a4ebf
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 25, 2025
02996f8
refactor: optimize stream rendering and file reading limits
mini2s Dec 25, 2025
ab0aff3
refactor(tools): simplify extractTextFromFile parameters
mini2s Dec 25, 2025
4a8f2bc
feat(chat): add tool protocol display to task header
mini2s Dec 25, 2025
e83f568
fix(test): respect user toolProtocol preference over model capabilities
mini2s Dec 25, 2025
66ef6d8
update(provider): update zgsm model handling and native tool protocol…
mini2s Dec 25, 2025
355f27b
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 25, 2025
446b7db
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 25, 2025
a07d28c
feat: remove OpenRouter Transforms feature (#10341)
roomote-v0[bot] Dec 25, 2025
a510223
feat: remove simpleReadFileTool completely (#10254)
roomote-v0[bot] Dec 25, 2025
8bce6cb
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 26, 2025
343d5e9
Add support for skills (#10335)
mrubens Dec 26, 2025
da4cf6d
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 26, 2025
c081410
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 26, 2025
6f16528
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 26, 2025
0d50ed6
Add support for npm packages and .env files to custom tools (#10336)
cte Dec 26, 2025
2eebf3c
fix: capture extended thinking signatures for tool use continuations …
daniel-lxs Dec 26, 2025
13370a2
feat: add optional mode field to slash command front matter (#10344)
roomote-v0[bot] Dec 27, 2025
72c142b
refactor(core,webview): improve code review types and performance
mini2s Dec 27, 2025
41637d2
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 27, 2025
510af82
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 27, 2025
c61dd7a
Remove the mergeToolResultText in the Roo provider for now (#10359)
mrubens Dec 27, 2025
25f76ce
Revert "fix: capture extended thinking signatures for tool use contin…
mrubens Dec 27, 2025
5c5ddd3
Release v3.38.0 (#10361)
mrubens Dec 27, 2025
ba1dd3c
Changeset version bump (#10362)
github-actions[bot] Dec 27, 2025
7980cd3
fix: enforce maxConcurrentFileReads limit in read_file tool (#10363)
roomote-v0[bot] Dec 27, 2025
c46532a
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 28, 2025
8cf3acc
refactor(zgsm): optimize native protocol handling and model ID usage
mini2s Dec 28, 2025
add06a2
docs: clarify path to Security Settings in privacy policy (#10367)
roomote-v0[bot] Dec 28, 2025
a18c9b7
Improve error message when read_file is used on directory (#10371)
roomote-v0[bot] Dec 29, 2025
1011064
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 29, 2025
b90e6cf
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 29, 2025
6948ed7
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 29, 2025
a42387e
Handle custom tool use similarly to MCP tools for ipc schema purposes…
jr Dec 29, 2025
e851b93
fix: correct GitHub repository URL in marketing page (#10377)
roomote-v0[bot] Dec 29, 2025
6ba7931
Revert "feat: enable mergeToolResultText for all OpenAI-compatible pr…
hannesrudolph Dec 29, 2025
ca8fd5c
fix: flush pending tool results before condensing context (#10379)
daniel-lxs Dec 29, 2025
958705a
chore: add changeset for v3.38.1 (#10384)
mrubens Dec 29, 2025
c193f59
Changeset version bump (#10385)
github-actions[bot] Dec 29, 2025
19b7dac
fix: update Cerebras maxTokens to 16384 (#10387)
sebastiand-cerebras Dec 30, 2025
0e9a765
docs: Replace Todo Lists video with Context Management video (#10375)
SannidhyaSah Dec 30, 2025
6d8fa39
Release: v1.96.0 (#10395)
jr Dec 30, 2025
9539553
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 30, 2025
f2abc39
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Dec 30, 2025
d33cdef
fix(utils): add optional chaining for provider settings
mini2s Dec 30, 2025
ed13921
feat(skills): align with Agent Skills spec (#10409)
hannesrudolph Dec 30, 2025
c37aa02
chore: remove human-relay provider (#10388)
hannesrudolph Dec 30, 2025
ca1bc18
Fix rate limit wait display (#10389)
hannesrudolph Dec 31, 2025
ca41119
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Dec 31, 2025
dea33f9
fix: prevent write_to_file from creating files at truncated paths (#1…
mrubens Dec 31, 2025
1179662
Release v3.38.2 (#10416)
mrubens Dec 31, 2025
2068531
Changeset version bump (#10417)
github-actions[bot] Dec 31, 2025
3074ccc
fix(claude-code): stop frequent sign-ins by hardening OAuth refresh (…
hannesrudolph Jan 1, 2026
586cf47
fix: add type check for lastMessage.text in TTS useEffect (#10431)
roomote-v0[bot] Jan 1, 2026
f05dada
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Jan 2, 2026
277ec1b
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Jan 2, 2026
787a257
feat(chat): add collapsible markdown blocks and improve protocol erro…
mini2s Jan 2, 2026
d24a1d6
refactor(task): restructure conversation history handling
mini2s Jan 3, 2026
08c3431
feat: recursively load .roo/rules and AGENTS.md from subdirectories (…
mrubens Jan 3, 2026
1459f01
Release: v1.99.0 (#10447)
mrubens Jan 3, 2026
c307dc7
fix: add maxConcurrentFileReads limit to native read_file tool schema…
roomote-v0[bot] Jan 4, 2026
b4302c7
chore: add changeset for v3.38.3 (#10450)
mrubens Jan 4, 2026
d23824d
Changeset version bump (#10451)
github-actions[bot] Jan 4, 2026
b6053fa
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Jan 4, 2026
bf764aa
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Jan 4, 2026
cbc0ae4
feat: add image support documentation to read_file native tool descri…
roomote-v0[bot] Jan 5, 2026
0bb551d
Merge branch 'main' of github.com:zgsm-ai/costrict into roo-to-main
mini2s Jan 5, 2026
6d55b6a
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Jan 5, 2026
f2276be
fix: add explicit deduplication for duplicate tool_result blocks (#10…
roomote-v0[bot] Jan 5, 2026
30dd454
Merge remote-tracking branch 'upstream/main' into roo-to-main
mini2s Jan 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions src/core/prompts/tools/native-tools/__tests__/read_file.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,48 @@ describe("createReadFileTool", () => {
})
})

describe("supportsImages option", () => {
it("should include image format documentation when supportsImages is true", () => {
const tool = createReadFileTool({ supportsImages: true })
const description = getFunctionDef(tool).description

expect(description).toContain(
"Automatically processes and returns image files (PNG, JPG, JPEG, GIF, BMP, SVG, WEBP, ICO, AVIF) for visual analysis",
)
})

it("should not include image format documentation when supportsImages is false", () => {
const tool = createReadFileTool({ supportsImages: false })
const description = getFunctionDef(tool).description

expect(description).not.toContain(
"Automatically processes and returns image files (PNG, JPG, JPEG, GIF, BMP, SVG, WEBP, ICO, AVIF) for visual analysis",
)
expect(description).toContain("may not handle other binary files properly")
})

it("should default supportsImages to false", () => {
const tool = createReadFileTool({})
const description = getFunctionDef(tool).description

expect(description).not.toContain(
"Automatically processes and returns image files (PNG, JPG, JPEG, GIF, BMP, SVG, WEBP, ICO, AVIF) for visual analysis",
)
})

it("should always include PDF and DOCX support in description", () => {
const toolWithImages = createReadFileTool({ supportsImages: true })
const toolWithoutImages = createReadFileTool({ supportsImages: false })

expect(getFunctionDef(toolWithImages).description).toContain(
"Supports text extraction from PDF and DOCX files",
)
expect(getFunctionDef(toolWithoutImages).description).toContain(
"Supports text extraction from PDF and DOCX files",
)
})
})

describe("combined options", () => {
it("should correctly combine low maxConcurrentFileReads with partialReadsEnabled", () => {
const tool = createReadFileTool({
Expand All @@ -120,6 +162,49 @@ describe("createReadFileTool", () => {
expect(description).not.toContain("line_ranges")
expect(description).not.toContain("Example multiple files")
})

it("should correctly combine partialReadsEnabled and supportsImages", () => {
const tool = createReadFileTool({
partialReadsEnabled: true,
supportsImages: true,
})
const description = getFunctionDef(tool).description

// Should have both line_ranges and image support
expect(description).toContain("line_ranges")
expect(description).toContain(
"Automatically processes and returns image files (PNG, JPG, JPEG, GIF, BMP, SVG, WEBP, ICO, AVIF) for visual analysis",
)
})

it("should work with partialReadsEnabled=false and supportsImages=true", () => {
const tool = createReadFileTool({
partialReadsEnabled: false,
supportsImages: true,
})
const description = getFunctionDef(tool).description

// Should have image support but no line_ranges
expect(description).not.toContain("line_ranges")
expect(description).toContain(
"Automatically processes and returns image files (PNG, JPG, JPEG, GIF, BMP, SVG, WEBP, ICO, AVIF) for visual analysis",
)
})

it("should correctly combine all three options", () => {
const tool = createReadFileTool({
maxConcurrentFileReads: 3,
partialReadsEnabled: true,
supportsImages: true,
})
const description = getFunctionDef(tool).description

expect(description).toContain("maximum of 3 files")
expect(description).toContain("line_ranges")
expect(description).toContain(
"Automatically processes and returns image files (PNG, JPG, JPEG, GIF, BMP, SVG, WEBP, ICO, AVIF) for visual analysis",
)
})
})

describe("tool structure", () => {
Expand Down
5 changes: 4 additions & 1 deletion src/core/prompts/tools/native-tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export interface NativeToolsOptions {
partialReadsEnabled?: boolean
/** Maximum number of files that can be read in a single read_file request (default: 5) */
maxConcurrentFileReads?: number
/** Whether the model supports image processing (default: false) */
supportsImages?: boolean
}

/**
Expand All @@ -43,11 +45,12 @@ export interface NativeToolsOptions {
* @returns Array of native tool definitions
*/
export function getNativeTools(options: NativeToolsOptions = {}): OpenAI.Chat.ChatCompletionTool[] {
const { partialReadsEnabled = true, maxConcurrentFileReads = 5 } = options
const { partialReadsEnabled = true, maxConcurrentFileReads = 5, supportsImages = false } = options

const readFileOptions: ReadFileToolOptions = {
partialReadsEnabled,
maxConcurrentFileReads,
supportsImages,
}

return [
Expand Down
20 changes: 17 additions & 3 deletions src/core/prompts/tools/native-tools/read_file.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
import type OpenAI from "openai"

const READ_FILE_SUPPORTS_NOTE = `Supports text extraction from PDF and DOCX files, but may not handle other binary files properly.`
/**
* Generates the file support note, optionally including image format support.
*
* @param supportsImages - Whether the model supports image processing
* @returns Support note string
*/
function getReadFileSupportsNote(supportsImages: boolean): string {
if (supportsImages) {
return `Supports text extraction from PDF and DOCX files. Automatically processes and returns image files (PNG, JPG, JPEG, GIF, BMP, SVG, WEBP, ICO, AVIF) for visual analysis. May not handle other binary files properly.`
}
return `Supports text extraction from PDF and DOCX files, but may not handle other binary files properly.`
}

/**
* Options for creating the read_file tool definition.
Expand All @@ -10,6 +21,8 @@ export interface ReadFileToolOptions {
partialReadsEnabled?: boolean
/** Maximum number of files that can be read in a single request (default: 5) */
maxConcurrentFileReads?: number
/** Whether the model supports image processing (default: false) */
supportsImages?: boolean
}

/**
Expand All @@ -20,7 +33,7 @@ export interface ReadFileToolOptions {
* @returns Native tool definition for read_file
*/
export function createReadFileTool(options: ReadFileToolOptions = {}): OpenAI.Chat.ChatCompletionTool {
const { partialReadsEnabled = true, maxConcurrentFileReads = 5 } = options
const { partialReadsEnabled = true, maxConcurrentFileReads = 5, supportsImages = false } = options
const isMultipleReadsEnabled = maxConcurrentFileReads > 1

// Build description intro with concurrent reads limit message
Expand Down Expand Up @@ -50,7 +63,8 @@ export function createReadFileTool(options: ReadFileToolOptions = {}): OpenAI.Ch
? `Example multiple files (within ${maxConcurrentFileReads}-file limit): { files: [{ path: 'file1.ts' }, { path: 'file2.ts' }] }`
: "")

const description = baseDescription + optionalRangesDescription + READ_FILE_SUPPORTS_NOTE + " " + examples
const description =
baseDescription + optionalRangesDescription + getReadFileSupportsNote(supportsImages) + " " + examples

// Build the properties object conditionally
const fileProperties: Record<string, any> = {
Expand Down
4 changes: 4 additions & 0 deletions src/core/task/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1444,6 +1444,10 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
this.handleWebviewAskResponse("noButtonClicked", text, images)
}

public supersedePendingAsk(): void {
this.lastMessageTs = Date.now()
}

/**
* Updates the API configuration but preserves the locked tool protocol.
* The task's tool protocol is locked at creation time and should NOT change
Expand Down
90 changes: 90 additions & 0 deletions src/core/task/__tests__/validateToolResultIds.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,96 @@ describe("validateAndFixToolResultIds", () => {
expect(resultContent[1].type).toBe("text")
expect((resultContent[1] as Anthropic.TextBlockParam).text).toBe("Some additional context")
})

// Verifies fix for GitHub #10465: Terminal fallback race condition can generate
// duplicate tool_results with the same valid tool_use_id, causing API protocol violations.
it("should filter out duplicate tool_results with identical valid tool_use_ids (terminal fallback scenario)", () => {
const assistantMessage: Anthropic.MessageParam = {
role: "assistant",
content: [
{
type: "tool_use",
id: "tooluse_QZ-pU8v2QKO8L8fHoJRI2g",
name: "execute_command",
input: { command: "ps aux | grep test", cwd: "/path/to/project" },
},
],
}

// Two tool_results with the SAME valid tool_use_id from terminal fallback race condition
const userMessage: Anthropic.MessageParam = {
role: "user",
content: [
{
type: "tool_result",
tool_use_id: "tooluse_QZ-pU8v2QKO8L8fHoJRI2g", // First result from command execution
content: "No test processes found",
},
{
type: "tool_result",
tool_use_id: "tooluse_QZ-pU8v2QKO8L8fHoJRI2g", // Duplicate from user approval during fallback
content: '{"status":"approved","message":"The user approved this operation"}',
},
],
}

const result = validateAndFixToolResultIds(userMessage, [assistantMessage])

expect(Array.isArray(result.content)).toBe(true)
const resultContent = result.content as Anthropic.ToolResultBlockParam[]

// Only ONE tool_result should remain to prevent API protocol violation
expect(resultContent.length).toBe(1)
expect(resultContent[0].tool_use_id).toBe("tooluse_QZ-pU8v2QKO8L8fHoJRI2g")
expect(resultContent[0].content).toBe("No test processes found")
})

it("should preserve text blocks while deduplicating tool_results with same valid ID", () => {
const assistantMessage: Anthropic.MessageParam = {
role: "assistant",
content: [
{
type: "tool_use",
id: "tool-123",
name: "read_file",
input: { path: "test.txt" },
},
],
}

const userMessage: Anthropic.MessageParam = {
role: "user",
content: [
{
type: "tool_result",
tool_use_id: "tool-123",
content: "First result",
},
{
type: "text",
text: "Environment details here",
},
{
type: "tool_result",
tool_use_id: "tool-123", // Duplicate with same valid ID
content: "Duplicate result from fallback",
},
],
}

const result = validateAndFixToolResultIds(userMessage, [assistantMessage])

expect(Array.isArray(result.content)).toBe(true)
const resultContent = result.content as Array<Anthropic.ToolResultBlockParam | Anthropic.TextBlockParam>

// Should have: 1 tool_result + 1 text block (duplicate filtered out)
expect(resultContent.length).toBe(2)
expect(resultContent[0].type).toBe("tool_result")
expect((resultContent[0] as Anthropic.ToolResultBlockParam).tool_use_id).toBe("tool-123")
expect((resultContent[0] as Anthropic.ToolResultBlockParam).content).toBe("First result")
expect(resultContent[1].type).toBe("text")
expect((resultContent[1] as Anthropic.TextBlockParam).text).toBe("Environment details here")
})
})

describe("when there are more tool_uses than tool_results", () => {
Expand Down
4 changes: 4 additions & 0 deletions src/core/task/build-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ export async function buildNativeToolsArray(options: BuildToolsOptions): Promise
// Determine if partial reads are enabled based on maxReadFileLine setting.
const partialReadsEnabled = maxReadFileLine !== -1

// Check if the model supports images for read_file tool description.
const supportsImages = modelInfo?.supportsImages ?? false

// Build native tools with dynamic read_file tool based on settings.
const nativeTools = getNativeTools({
partialReadsEnabled,
maxConcurrentFileReads,
supportsImages,
})

// Filter native tools based on mode restrictions.
Expand Down
46 changes: 34 additions & 12 deletions src/core/task/validateToolResultIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,31 @@ export function validateAndFixToolResultIds(
}

// Find tool_result blocks in the user message
const toolResults = userMessage.content.filter(
let toolResults = userMessage.content.filter(
(block): block is Anthropic.ToolResultBlockParam => block.type === "tool_result",
)

// Deduplicate tool_result blocks to prevent API protocol violations (GitHub #10465)
// Terminal fallback race conditions can generate duplicate tool_results with the same tool_use_id.
// Filter out duplicates before validation since Set-based checks below would miss them.
const seenToolResultIds = new Set<string>()
const deduplicatedContent = userMessage.content.filter((block) => {
if (block.type !== "tool_result") {
return true
}
if (seenToolResultIds.has(block.tool_use_id)) {
return false // Duplicate - filter out
}
seenToolResultIds.add(block.tool_use_id)
return true
})

userMessage = {
...userMessage,
content: deduplicatedContent,
}

toolResults = deduplicatedContent.filter(
(block): block is Anthropic.ToolResultBlockParam => block.type === "tool_result",
)

Expand Down Expand Up @@ -139,15 +163,12 @@ export function validateAndFixToolResultIds(
)
}

// Create a mapping of tool_result IDs to corrected IDs
// Strategy: Match by position (first tool_result -> first tool_use, etc.)
// This handles most cases where the mismatch is due to ID confusion
//
// Track which tool_use IDs have been used to prevent duplicates
// Match tool_results to tool_uses by position and fix incorrect IDs
const usedToolUseIds = new Set<string>()
const contentArray = userMessage.content as Anthropic.Messages.ContentBlockParam[]

const correctedContent = userMessage.content
.map((block) => {
const correctedContent = contentArray
.map((block: Anthropic.Messages.ContentBlockParam) => {
if (block.type !== "tool_result") {
return block
}
Expand Down Expand Up @@ -177,17 +198,18 @@ export function validateAndFixToolResultIds(
}

// No corresponding tool_use for this tool_result, or the ID is already used
// Filter out this orphaned tool_result by returning null
return null
})
.filter((block): block is NonNullable<typeof block> => block !== null)

// Add missing tool_result blocks for any tool_use that doesn't have one
// After the ID correction above, recalculate which tool_use IDs are now covered
const coveredToolUseIds = new Set(
correctedContent
.filter((b): b is Anthropic.ToolResultBlockParam => b.type === "tool_result")
.map((r) => r.tool_use_id),
.filter(
(b: Anthropic.Messages.ContentBlockParam): b is Anthropic.ToolResultBlockParam =>
b.type === "tool_result",
)
.map((r: Anthropic.ToolResultBlockParam) => r.tool_use_id),
)

const stillMissingToolUseIds = toolUseBlocks.filter((toolUse) => !coveredToolUseIds.has(toolUse.id))
Expand Down
3 changes: 3 additions & 0 deletions src/core/tools/ExecuteCommandTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ export class ExecuteCommandTool extends BaseTool<"execute_command"> {
provider?.postMessageToWebview({ type: "commandExecutionStatus", text: JSON.stringify(status) })
await task.say("shell_integration_warning")

// Invalidate pending ask from first execution to prevent race condition
task.supersedePendingAsk()

if (error instanceof ShellIntegrationError) {
const [rejected, result] = await executeCommandInTerminal(task, {
...options,
Expand Down