Skip to content

[BUG] Roo code won't edit any files - Error apply patch #11358

@tobico

Description

@tobico

Problem (one or two sentences)

When roo code tries to edit a file, I get this error message:

Date/time: 2026-02-10T01:08:32.512Z
Extension version: 3.47.3
Provider: openai-native
Model: gpt-5-mini

Error apply patch:
Tab close: Invalid tab not found!

Context (who is affected and when)

I'm running roo code in code mode and asking it to modify a specific file which is attached to the context. The result from the AI provider includes a call to edit a file.

Reproduction steps

  1. Environment is VS Code on Windows 11, connected to WSL with NixOS.
  2. Run a code request with a file attached to the context, and ask for changes to the file.

Expected result

Roo code should edit the file, or ask me to approve an edit

Actual result

Error message is shown, the edit is not done.

Variations tried (optional)

No response

App Version

3.47.3

API Provider (optional)

OpenAI

Model Used (optional)

N/A

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions