Skip to content

[BUG] Tools Use & Code Editing not working When Selecting gpt-5-codex with OpenAI Provider (v3.28.7) #8273

@AreChen

Description

@AreChen

Problem (one or two sentences)

After using OpenAI as the provider with the gpt-5-codex model, code editing and correct tool invocation are not possible.

Context (who is affected and when)

Who: All users of Roo Code who try to use the OpenAI provider with the gpt-5-codex model.
When: Immediately after switching the model to gpt-5-codex (or on first app start if it is set as default).
Impact: gpt-5-codex cannot run any tool commands

Reproduction steps

  1. Open Roo Code
  2. Set Model to gpt-5-codex with openai.
  3. Save/apply the changes.
  4. Execute user instructions in CODE mode

Expected result

Use tool calls and code editing correctly like GPT-5.

Actual result

not working

Variations tried (optional)

No response

App Version

3.28.7

API Provider (optional)

None

Model Used (optional)

No response

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

[ERROR] You did not use a tool in your previous response! Please retry with a tool use.

# Reminder: Instructions for Tool Use

Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:

<actual_tool_name>
<parameter1_name>value1</parameter1_name>
<parameter2_name>value2</parameter2_name>
...
</actual_tool_name>

For example, to use the attempt_completion tool:

<attempt_completion>
<result>
I have completed the task...
</result>
</attempt_completion>

Always use the actual tool name as the XML tag name for proper parsing and execution.

# Next Steps

If you have completed the user's task, use the attempt_completion tool. 
If you require additional information from the user, use the ask_followup_question tool. 
Otherwise, if you have not completed the task and do not need additional information, then proceed with the next step of the task. 
(This is an automated message, so do not respond to it conversationally.)

<environment_details>
# VSCode Visible Files
config_manager.py

# VSCode Open Tabs


# Current Time
Current time in ISO 8601 UTC format: 2025-09-24T02:28:23.295Z
User time zone: Asia/Hong_Kong, UTC+8:00

# Current Cost
$0.09

# Current Mode
<slug>code</slug>
<name>💻 Code</name>
<model>gpt-5-codex</model>
You have not created a todo list yet. Create one with `update_todo_list` if your task is complicated or involves multiple steps.
</environment_details>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Unassigned / ActionableClear and approved. Available for contributors to pick up.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions