You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
home: a dropped picture becomes its path, not [image #1] — home's paste door bypasses the tray #152
Drag a screenshot onto the terminal while home is up (the launcher box at the foot, or the ask here exchange pane) and the box fills with the raw path — /Users/x/Desktop/Screenshot\ 2026-08-31\ at\ 5.21.40\ PM.png — instead of [image #1] with the picture on the tray. In a conversation the same drop works when the file is on the TUI's machine.
app.paste (internal/tui3/app.go ~6660) has an early return for pageHome: it inserts the text into a.home.box (or the focused exchange pane's ex.box) and returns. The drop door — pasteFiles → attach + [image #n] token (imagepaste.go) — is reached only on the fall-through below it, which is the chat draft. Home never gets there. The path having spaces is not the cause; pastedWords already unescapes \ , quotes and file://.
The keystroke shape of a drop (dropkeys.go) is likewise wired only to the chat editor, not to home's box.
A second, related gap explains "it also stayed a path in chat" over ssh: iTerm2 → ssh → tmux delivers a Mac path to a TUI running on the Linux box. pasteFiles stats it, finds nothing, and silently inserts the text — nothing tells the person the file is not on this machine.
Fix
Home's box and the exchange pane's box take the same door as the chat draft: pictures go on the tray with [image #n] in the box, files go on the tray, the tray strip is drawn above home's box, start / ask here carry the pictures (renew already carries side.chips into the new conversation; submit reads a.chips).
A paste that is drop-shaped (droppedPathShape) but names nothing on this machine says so — <name> is not on this machine — and the text stays in the box as before.
Home's list filter ignores [image #n] tokens so the row list does not empty when a picture is dropped.
Drafted with CodeAF · reviewed and owned by the author
Reproduced on the staging binary (4ee7e81) with a real bracketed paste through tmux (paste-buffer -p), file Screenshot 2026-08-31 at 5.21.40 PM.png on this machine:
chat: works — tray shows ▣ #1 Screenshot 2026-08-31 at 5.21.40 PM.png, draft holds [image #1], the request on the wire carries image_url (data:image/png;base64,…) beside the text. Spaces are not the problem.
home: the box fills with /tmp/…/Screenshot\ 2026-08-31\ at\ 5.21.40\ PM.png, and home reads the leading slash as a COMMAND: action row + run /tmp/…/Screenshot\ …, foot enter runs this command. Enter then fails as an unknown command.
chat, path not on this machine (iTerm2 → ssh → tmux delivers a Mac path): the path is inserted as text with no note — which is what "it stayed a path in chat" looks like from the owner's seat.
So the fix has three parts: home's box (and the exchange pane's) take the chat draft's drop door; home's dispatcher falls into the same droppedLine net as chat's / router; a drop-shaped paste that names nothing here says <name> is not on this machine.
Activity
santoshkumarradha commentedon Sep 1, 2026
Reproduced on the staging binary (4ee7e81) with a real bracketed paste through tmux (
paste-buffer -p), fileScreenshot 2026-08-31 at 5.21.40 PM.pngon this machine:▣ #1 Screenshot 2026-08-31 at 5.21.40 PM.png, draft holds[image #1], the request on the wire carriesimage_url(data:image/png;base64,…) beside the text. Spaces are not the problem./tmp/…/Screenshot\ 2026-08-31\ at\ 5.21.40\ PM.png, and home reads the leading slash as a COMMAND: action row+ run /tmp/…/Screenshot\ …, footenter runs this command. Enter then fails as an unknown command.So the fix has three parts: home's box (and the exchange pane's) take the chat draft's drop door; home's dispatcher falls into the same
droppedLinenet as chat's/router; a drop-shaped paste that names nothing here says<name> is not on this machine.home: a dropped picture is a picture, on every box that can start a m…
home: a dropped picture is a picture, on every box that can start a m…
home: a dropped picture is a picture, on every box that can start a m…
home: a dropped picture is a picture, on every box that can start a m…
home: a dropped picture is a picture, on every box that can start a m…
home: a dropped picture is a picture, on every box that can start a m…