Mark Rachapoom c73acb731f fix: send image attachments to gateway and prefix attached file paths
Two issues with image handling in chat:

1. Images pasted/dropped in chat were uploaded to disk but only file
   paths were sent as plain text. The model never received actual image
   bytes. Now sends base64 image data as `attachments` in the chat.send
   RPC so vision-capable models can see images directly.

2. Attached file paths (e.g. assets/screenshot.png) were not prefixed
   with the workspace root, unlike [Context: workspace file '...'] paths.
   The agent couldn't resolve relative paths. Now both patterns get the
   workspace prefix.

Files changed:
- chat-panel.tsx: read images as base64 via FileReader, send as FileUIPart
- chat/route.ts: extract image file parts, prefix attached file paths
- gateway/chat/route.ts: accept attachments in request body
- active-runs.ts: thread attachments through startRun
- agent-runner.ts: forward attachments to chat.send RPC
- chat-message.tsx: render inline image previews in user messages

Made-with: Cursor
2026-03-20 21:39:07 -07:00
..
2026-03-17 14:52:14 -07:00
2026-03-20 10:30:41 -07:00
2026-03-19 19:39:07 -07:00
2026-03-19 19:46:52 -07:00
2026-02-11 18:35:35 -08:00
2026-02-11 18:35:35 -08:00
2026-03-19 19:39:07 -07:00
2026-02-19 17:46:54 -08:00
2026-03-04 16:34:45 -08:00
2026-03-04 13:23:34 -08:00