-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
When attaching multiple files with @ command their content is returned to model without attribution to which file it belongs.
For example, in an empty folder create two files:
// a.txt
28
// b.txt
42
Then ask the model to give you their contents with What numbers are written in files @a.txt and @b.txt ?. In my case with Claude Sonnet 4.5 it returns their contents switched:
The files contain:
- a.txt: 42
- b.txt: 28
Here is the relevant part of this request intercepted with mitmproxy:
{
"role": "user",
"content": [
{
"type": "text",
"text": "What numbers are written in files @a.txt and @b.txt ?"
},
{
"type": "text",
"text": "Called the Read tool with the following input:
{\"filePath\":\".../test/a.txt\"}"
},
{
"type": "text",
"text": "Called the Read tool with the following input:
{\"filePath\":\".../test/b.txt\"}"
},
{
"type": "text",
"text": "<file>\n00001| 42\n00002| \n\n(End of file - total 2 lines)\n</file>"
},
{
"type": "text",
"text": "<file>\n00001| 28\n00002| \n\n(End of file - total 2 lines)\n</file>"
}
]
}As you can see it is impossible to say which content is which.
Plugins
None
OpenCode version
1.1.40
Steps to reproduce
See above.
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working