Skip to content

<ide_opened_file> IDE context tag pollutes session title and prompt display #1423

@shurkanTwo

Description

@shurkanTwo

What happened?

When a session is created via Claude Code running inside the VS Code
extension, the IDE prepends an <ide_opened_file>...</ide_opened_file>
context block to the user's prompt. The CLI surfaces this injected block
verbatim in both the session/checkpoint title and the rendered prompt
body
, instead of showing only the user's actual message. The result is a
"dirty" title and prompt cluttered with IDE context that the user never typed.

Image

Steps to reproduce

  1. Open any file in VS Code with the Claude Code extension active.
  2. Send a prompt to Claude Code (e.g. "rewrite these docs as one plan").
  3. The IDE silently prepends an <ide_opened_file>...</ide_opened_file>
    block to the message before it's sent.
  4. Open the session in the web viewer.

Entire CLI version

Entire CLI 0.7.5; Go version: go1.26.4

OS and architecture

OS/Arch: linux/amd64

Agent

Claude Code

Terminal

No response

Logs / debug output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions