[Bug]: Claude adapter drops image attachments, so Claude never sees them
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Start a thread with the Claude engine selected.
- Attach an image (I used a 76 KB JPEG) and ask Claude to describe it.
- Send.
Expected behavior
The image reaches Claude as an image content block and Claude can describe it, just as Grok does on the same build.
Actual behavior
Claude can't see the image. The local Claude transcripts (~/.claude/projects/…) contain no image blocks in any user message, so the attachment is never sent. Claude only sees the image if I give it the file path and it opens it with its own Read tool. Claude's stream-json input accepts image blocks, so this looks like the adapter dropping the attachment rather than a model limit. Grok on the same build receives and reads the same attachment correctly.
Suggested fix: send image attachments as image content blocks in the Claude stream-json input, as the Grok adapter already does.
Impact
Major degradation or frequent failure
Version or commit
0.1.9
Environment
macOS 27.2.1, T3 Code desktop 0.1.9, Claude engine
Workaround
Give Claude the file's path. T3 saves attachments in ~/.t3/userdata/attachments/, and Claude can open them from there.
@ferrraridave-coder Which provider was shown next to the model in the picker when you sent the image (the built-in 'Claude' provider, a custom Claude instance, or a Claude agent from the ACP Registry), and was the image on the thread's first message, on a message sent while Claude was still working, or in a thread that started on another provider?
It was the built-in Claude provider. I didn't have the Claude CLI yet, so I let T3 Code install it (Claude CLI v2.1.325). I then logged in to the Claude CLI in Terminal using OAuth. When I went back to T3 Code, it was already authenticated.
The image was on the thread's very first message, not on one sent while Claude was still working. The whole thread used Claude Fable 5.2 and no other model or provider.
I tried to reproduce this on the current build and could not.
On origin/main 632802cd32 (Linux VM, web client served by T3CODE_DEV_SEED=0 vp run dev on a fresh database): paired the preview browser, opened a new thread in the server project, chose the built-in Claude provider with Claude Haiku 5.5 (Claude CLI 2.1.325, the reporter's version), attached a 15 KB JPEG (red background, blue circle, the text 'ZEBRA42') through the composer's file input, and sent it as the thread's first message: 'Without using any tools, describe the attached image: its background colour, the shape and its colour, and any text in it.' Claude answered with no tool calls: 'The background is solid red. In the center is a filled blue circle ... in bold yellow capital letters, is the text "ZEBRA42".' The native Claude transcript (~/.claude/projects/
Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.