Skip to content

[BUG] Claude Code OAuth API fails when a tool is named read_file (works when renamed) #10867

@loject

Description

@loject

Problem (one or two sentences)

Claude Code OAuth API request fails when the tools list contains a tool named read_file. Renaming the tool to _read_file makes the exact same request succeed.

Context (who is affected and when)

Affects users who are signed in with Claude Code OAuth. It happens when Roo Code sends any request that includes file-reading tools.

Reproduction steps

  1. OS: Linux (any), Roo Code: current main, Provider: Claude Code OAuth, Model: claude-sonnet-4-5
  2. Sign in with Claude Code OAuth.
  3. Trigger any chat request where Roo Code sends tools including a tool named read_file (e.g. read a file from workspace).
  4. Observe: the Claude Code API request fails.
  5. Rename the tool from read_file to _read_file (no other changes).
  6. Repeat the same request.
  7. Observe: the request succeeds and tool calls still work.

Expected result

The request should succeed and the model should be able to call tools normally.

Actual result

The Claude Code OAuth API request fails only when a tool is named read_file. Renaming it to _read_file makes the same request succeed.

Variations tried (optional)

No response

App Version

3.41.3 and nightly 0.0.7779

API Provider (optional)

None

Model Used (optional)

Claude 4.5 Sonnet

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Date/time: 2026-01-21T15:39:34.349Z
Extension version: 0.0.7779
Provider: claude-code
Model: claude-sonnet-4-5

This credential is only authorized for use with Claude Code and cannot be used for other API requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions