Skip to content

Conversation

@daniel-lxs
Copy link
Member

@daniel-lxs daniel-lxs commented Jan 9, 2026

Summary

Removes the convertToSimpleMessages function which was converting tool_use blocks to text like [Tool Use: write_to_file] instead of proper OpenAI tool_calls format.

This caused models to output text mimicking tool calls instead of actually invoking tools, triggering errors like:

"The model provided text/reasoning but did not call any of the required tools."

Root Cause

convertToSimpleMessages was added in Feb 2025 for Volcano Ark (.volces.com) compatibility when tools weren't being sent. After v3.37.1 added NATIVE_TOOL_DEFAULTS, tools were always sent but history showed text patterns, confusing models.

Changes

  • Remove convertToSimpleMessages usage from openai.ts
  • Delete simple-format.ts and its tests
  • Remove openAiLegacyFormat setting from provider-settings schema
  • Remove legacy format checkbox from OpenAI Compatible settings UI
  • Remove useLegacyFormat translation key from all 18 locales

Testing

  • All 5170 tests pass
  • All 121 OpenAI provider tests pass
  • TypeScript compilation passes

Fixes ROO-433


Important

Remove convertToSimpleMessages to fix tool call issues for OpenAI-compatible providers, affecting settings and localization.

  • Behavior:
    • Remove convertToSimpleMessages from openai.ts, fixing tool call issues for OpenAI-compatible providers.
    • Delete simple-format.ts and its tests.
  • Settings:
    • Remove openAiLegacyFormat from provider-settings schema.
    • Remove legacy format checkbox from OpenAI Compatible settings UI.
  • Localization:
    • Remove useLegacyFormat translation key from all 18 locales.
  • Testing:
    • All 5170 tests pass.
    • All 121 OpenAI provider tests pass.
    • TypeScript compilation passes.

This description was created by Ellipsis for 5c3b910. You can customize this summary. It will automatically update as commits are pushed.

…penAI-compatible providers

Removes the convertToSimpleMessages function which was converting tool_use blocks
to text like '[Tool Use: write_to_file]' instead of proper OpenAI tool_calls format.

This caused models to output text mimicking tool calls instead of actually invoking
tools, triggering errors like 'The model provided text/reasoning but did not call
any of the required tools.'

Root cause: convertToSimpleMessages was added for Volcano Ark compatibility when
tools weren't being sent. After v3.37.1 added NATIVE_TOOL_DEFAULTS, tools were
always sent but history showed text patterns, confusing models.

Changes:
- Remove convertToSimpleMessages usage from openai.ts
- Delete simple-format.ts and its tests
- Remove openAiLegacyFormat setting from provider-settings schema
- Remove legacy format checkbox from OpenAI Compatible settings UI
- Remove useLegacyFormat translation key from all locales

Fixes ROO-433
@daniel-lxs daniel-lxs requested review from cte, jr and mrubens as code owners January 9, 2026 16:43
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. bug Something isn't working labels Jan 9, 2026
@roomote
Copy link
Contributor

roomote bot commented Jan 9, 2026

Rooviewer Clock   See task on Roo Cloud

Review complete. No issues found.

The PR correctly removes deprecated convertToSimpleMessages functionality that was causing tool calling issues for OpenAI-compatible providers. The cleanup is thorough - all references to openAiLegacyFormat, the simple-format module, and related UI/translation keys have been properly removed.

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Jan 9, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 9, 2026
@mrubens mrubens merged commit 907b94b into main Jan 9, 2026
23 checks passed
@mrubens mrubens deleted the fix/roo-433-remove-simple-format branch January 9, 2026 17:03
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Jan 9, 2026
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants