Repository navigation
feat(composer): drop images and folders on the whole thread (#469) - #473
Merged
currentbits merged 3 commits intoAug 18, 2026
Merged
Conversation
added 3 commits
August 18, 2026 10:10
… Orchestration skills: handoff, advisor, committee as one-com
… Windows support hardening: WSL boundary, doctor checks, sand
Finder folders never reached classifyPaths because drop lived only on the composer strip and read dataTransfer.files. Bind the open thread as the drop target, resolve items via webkitGetAsEntry + droppedFilePath, show a drop overlay, and surface a one-line error when nothing attaches.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This was referenced Aug 18, 2026
currentbits
deleted the
coder/drag-and-drop-images-and-folders-onto-th-1e30e1
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.
Summary
Thread-wide drag-and-drop for images and folders, matching the CLI muscle memory from #469.
Finder folders never reached
classifyPathsbecause drop lived only on the composer strip and readdataTransfer.files. The open thread (<main data-thread-drop>) is now the drop target — transcript, empty state, and composer all accept a Finder drop.Drops resolve each
DataTransferItemviawebkitGetAsEntry()/getAsFile()so a directory keeps a File thatwebUtils.getPathForFile→attachments:fromPaths→classifyPathscan turn intokind: "folder". Images still becomekind: "image". The paperclip picker is unchanged as the fallback.While a file drag is over the thread, a dashed overlay says “Drop images or folders” and
dropEffectiscopy. If a drop yields zero attachments (unsupported type, no path, web-mode folder), the composer shows a one-line error.Tests
test/dropFiles.test.ts— items vs FileList, mixed, skip non-filestest/composerAttachments.test.tsx— image, directory-on-items-only, mixed, empty-drop errortest/threadView.test.tsx— drop on the transcript, overlay on dragentertest/webDegrade.test.tsx— existing websaveImagepath + nativedroppedFilePath/fromPathsfolderCloses #469