[BUG] ide references are not working in agents mode

Status Fixed / completed
Reported on v2.1.141
Maintainer reply ✓ Yes — claude[bot]
Activity 4 comments · opened May 14, 2026 · closed May 15, 2026
💡 Likely answer: A maintainer (claude[bot], contributor) responded on this thread — see the highlighted reply below.

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When /ide is connected with Claude Code and you are sending references to it they do not land in the input.
The only way to start a new session from the agent view is to start typing something.
For example I want to type

Please refactor [I send a file reference from IDE]

but it does not get appended:
<img width="511" height="775" alt="Image" src="https://github.com/user-attachments/assets/2dc950ec-b479-45d0-a5dc-a6b87c3d77dd" />

Then the session starts and if you look into it, in fact it was added (file ref is @skipper):

<img width="511" height="775" alt="Image" src="https://github.com/user-attachments/assets/a3afd461-c9a2-4303-86b4-bcfa554fb444" />

Only for some reason in the beginning

What Should Happen?

When typing in the agent view files sent from /ide need to land in the input, same for files highlighted via ide.

Steps to Reproduce

Start claude agents
Connect to an IDE.
In the IDE send some file to Claude.
See that the file is missing in hte input

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Claude Code Version

2.1.141

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Ghostty

Additional Information

Intellij Idea

View original on GitHub ↗

4 Comments

claude[bot] contributor · 5 months ago

This issue was fixed as of version 2.1.143.

TheRusskiy · 5 months ago

@bogini seems like the issue persists,
the agents "parent" view does not receive inputs from the IDE,
child sessions do receive them.
This is a problem because you need these references when starting a new session from the parent view.

<img width="537" height="826" alt="Image" src="https://github.com/user-attachments/assets/959c80f3-7d4c-47b6-a0d4-9fb39d1d1d9e" />

TheRusskiy · 4 months ago

I created a new issue since this one was mistakenly closed https://github.com/anthropics/claude-code/issues/60499

github-actions[bot] · 3 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.