[BUG] ide references are not working in agents mode
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
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗