Repository navigation
home: a dropped picture is a picture, on every box that can start a message - #160
Merged
Merged
Conversation
santoshkumarradha
force-pushed
the
fix/152-home-drop
branch
4 times, most recently
from
September 1, 2026 00:56
97550fd to
7fd2b0d
Compare
…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
force-pushed
the
fix/152-home-drop
branch
from
September 1, 2026 01:01
7fd2b0d to
abe7650
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #152.
What
app.pasteFilesInto(box, chips, text), parametrized by the box it writes into. Home's line, theask herepane 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.startcounts a held file as something typed;homeStartsends throughsubmitImagesso the bytes riderenewinto the conversation it opens (the chain was broken on dev:renewrestored the chips buthomeStartcalled plainsubmit).enterfalls into the samedroppedLinenet as chat's/router — no moreunknown command: /var/folders/…— andrunLabelno longer offers toruna line whose every word is a path.<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/pastedImageswere dead code and are gone. Manual pageattaching-files.mdupdated.Verified
go test ./internal/tui3/ ./internal/manual/ ./cmd/aforge-changes/green; 8 new tests inhomedrop_test.go(+SubmitImagerecorder on the errand fake).go vetclean,make buildwithin budget.paste-buffer -p, stub model with image input): 12/12 — home drop → token + tray,start→image_urlon the wire with[image #1]in the text; chat drop unchanged; missing Mac path notesis not on this machineon home and in chat, andenteron it is no longerunknown 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 atenter.startBesidestows the tray with the conversation stepped aside from, as it does the draft.🤖 Generated with Claude Code
https://claude.ai/code/session_01TJtWmxpjkpwXJNkvBiVV93