Skip to content

home: a dropped picture is a picture, on every box that can start a message - #160

Merged
santoshkumarradha merged 1 commit into
devfrom
fix/152-home-drop
Sep 1, 2026
Merged

santoshkumarradha merged 1 commit into
devfrom
fix/152-home-drop

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

Closes #152.

What

  • One drop door, app.pasteFilesInto(box, chips, text), parametrized by the box it writes into. Home's line, the ask here pane and the conversation draft all take it: a dragged picture becomes a chip on the tray with [image #n] in the words; an ordinary file becomes a file chip.
  • Home draws the tray over its own box; start counts a held file as something typed; homeStart sends through submitImages so the bytes ride renew into the conversation it opens (the chain was broken on dev: renew restored the chips but homeStart called plain submit).
  • Home's enter falls into the same droppedLine net as chat's / router — no more unknown command: /var/folders/… — and runLabel no longer offers to run a line whose every word is a path.
  • A drop-shaped paste that names nothing on this machine says <name> is not on this machine (the iTerm2 → ssh → tmux case, where a Finder drop delivers a Mac path) and leaves the text in place.
  • pasteImages/pastedImages were dead code and are gone. Manual page attaching-files.md updated.

Verified

  • go test ./internal/tui3/ ./internal/manual/ ./cmd/aforge-changes/ green; 8 new tests in homedrop_test.go (+ SubmitImage recorder on the errand fake). go vet clean, make build within budget.
  • Real-binary e2e in tmux (bracketed paste via paste-buffer -p, stub model with image input): 12/12 — home drop → token + tray, start → image_url on the wire with [image #1] in the text; chat drop unchanged; missing Mac path notes is not on this machine on home and in chat, and enter on it is no longer unknown command. Baseline staging binary: 4/12.

Deliberately not in this PR

  • dropkeys.go's keystroke fold stays wired to the chat editor; home gets the same safety at enter.
  • startBeside stows the tray with the conversation stepped aside from, as it does the draft.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TJtWmxpjkpwXJNkvBiVV93

@santoshkumarradha
santoshkumarradha force-pushed the fix/152-home-drop branch 4 times, most recently from 97550fd to 7fd2b0d Compare September 1, 2026 00:56
…essage (#152)

The drop door — a dragged file becoming a chip on the tray with `[image #n]`
where the path was — belonged to the conversation's draft alone. `app.paste`
returned early for `pageHome`, inserting the text and stopping, so a screenshot
dropped on the one screen a person is most likely to be looking at became the
raw escaped path the terminal wrote — and `enter` then handed that path to the
slash router, which answered `unknown command` about a file that plainly exists.

One door, parametrized by the box and the tray it writes into
(`app.pasteFilesInto`), taken by the draft, by home's line at the foot and by
the `ask here` pane. `editTags` and `spacedTokens` moved onto `editor` so the
tokens can land in any of them. Home draws the tray directly over its box,
counts a file on it as something typed, strips `[image #n]` out of its list
filter, and carries the pictures into the conversation `start` opens. An errand
holds its own tray and sends through `SubmitImage`.

And a drop that names nothing on this machine — a Mac path delivered to a Linux
TUI over ssh — now says `<name> is not on this machine` instead of inserting
itself in silence, in the conversation and on home alike.

Left out on purpose, and said in the change entry: `dropkeys.go`'s keystroke
fold is still wired to the conversation's editor alone (home catches those drops
at `enter` instead), and a tray held while starting in a typed folder stays with
the conversation `startBeside` steps aside from, exactly as its draft does.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TJtWmxpjkpwXJNkvBiVV93
@santoshkumarradha
santoshkumarradha merged commit ba39111 into dev Sep 1, 2026
1 check passed
@santoshkumarradha
santoshkumarradha deleted the fix/152-home-drop branch September 1, 2026 01:01
@santoshkumarradha santoshkumarradha added the area:chat The v3 surface a person sits in front of (internal/tui3) label Oct 3, 2026
@santoshkumarradha santoshkumarradha added this to the Chat & connections milestone Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:chat The v3 surface a person sits in front of (internal/tui3)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

home: a dropped picture becomes its path, not [image #1] — home's paste door bypasses the tray

1 participant