fix(web): remove non-functional file-upload icon from composer (closes #160) - #162
Merged
Conversation
…#160) File upload was never a supported feature — the Paperclip button depended on a sandbox that local non-Docker mode never provides, so it was permanently disabled. Aligns with the already-hidden #47 Plus/Mic controls. - Remove the Paperclip upload button + hidden file input, the handleFilesChosen uploader, attachment chips, attachments/uploading/fileInputRef state, and the send-time attachment notice. - Extract the send cluster into a presentational ComposerSendTools component so it can be rendered in isolation (no jsdom in the monorepo). - Add composerSendTools.test.tsx: asserts the cluster renders the model picker + send button and contains no file input, guarding against upload creeping back. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Merged
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 #160.
What
Removes the file-upload (Paperclip) button from the chat composer. File upload was never a supported feature — the button depended on a sandbox that local non-Docker mode never provides, so it was permanently disabled. This aligns it with the already-hidden #47 Plus (add-context) and Mic (voice) controls.
Changes
<input type="file">, thehandleFilesChosenuploader, the attachment chips, theattachments/uploading/fileInputRefstate, and the send-time attachment notice.ComposerSendToolscomponent (model picker + send button passed in as nodes), so it can be rendered in isolation — the monorepo has no jsdom/@testing-library.composerSendTools.test.tsx: asserts the cluster renders the model picker + send button and contains no file input, guarding against upload creeping back.Verification
packages/web: 16 test files / 121 tests pass (incl. the new 3), typecheck clean,vite buildok.🤖 Generated with Claude Code