Repository navigation
Attach images and folders to chat messages - #69
Merged
currentbits merged 3 commits intoAug 15, 2026
Merged
Conversation
… devCoder.ts is a 3,756-line second implementation that keeps
… Worklogs and toolcalls dont seem to show up for kimi k3
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
currentbits
deleted the
coder/we-should-be-able-to-add-images-and-fold-53c77b
branch
October 3, 2026 16:07
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 #68.
What changed
Users can now attach images and folders to a chat message in the composer:
src/components/Composer.tsx): paperclip button opens a native multi-select dialog (images and folders), images can be pasted from the clipboard, and files/folders can be drag-dropped onto the composer. Attachments appear as removable chips above the textarea, with thumbnails for images, and clear on successful send.electron/attachments.js,electron/ipc.js,electron/preload.js): newattachments:pick / fromPaths / saveImage / readImagechannels. Picked and dropped paths are classified via statSync (image extensions or directories; other files stay in the existing @-mention flow). Pasted images are persisted underuserData/attachments/<threadId>/.webUtils.getPathForFileresolves absolute paths for dropped files.electron/runner.js): attachments are sanitized (absolute paths only), stored on the user transcript message so they survive reload, and appended to the dispatch prompt as an absolute-path list. Every provider (claude stdin, codex/grok/kimi/opencode argv) receives them, since agents run locally and read the paths with their normal file tools. Live-session follow-ups and retries carry the same attachments.ThreadView.tsx): user bubbles render their attachment chips/thumbnails.AttachmentInfoinsrc/shared/ipc.ts,ChatMessage.attachments,runs.startinput, plusdevCoder/wireClientimplementations and test-fake support. The attach button and drop are hidden in web mode, where no native dialog exists.Why
Agents frequently need visual context (screenshots, mockups) or a whole folder as input. Since agents execute on the same machine, passing absolute paths is sufficient for every provider and avoids provider-specific image-block protocols.
Tests
New:
test/composerAttachments.test.tsx(5 tests),electron/test/attachments.test.js(5 tests).Full suites green: 649/649 renderer, 737/737 electron, core and memory-server passing.
tsc --noEmitclean.PR created by the Kimi Code agent