Skip to content

feat: Refactor file attachments, attachment previews and external file support#939

Merged
charlesvien merged 6 commits intomainfrom
02-17-implement_previews_for_file_attachment_chips
Feb 18, 2026
Merged

feat: Refactor file attachments, attachment previews and external file support#939
charlesvien merged 6 commits intomainfrom
02-17-implement_previews_for_file_attachment_chips

Conversation

@charlesvien
Copy link
Member

@charlesvien charlesvien commented Feb 18, 2026

  • File attachments refactor - Refactors attachment support. Adds AttachmentsBar component for previewing attachments (you can also unattach them). Refactors useTiptapEditor and useDraftSync to handle image attachments alongside text mentions.
  • External file support - Adds readAbsoluteFile tRPC endpoint so files outside the repo can be read and displayed in panels. Updates prompt-builder.ts to detect absolute paths and route them to the correct endpoint. Fixes path mangling in usePanelLayoutHooks.tsx where absolute paths were incorrectly prepended with the repo path.
  • Image preview in code editor - CodeEditorPanel now detects image files and renders them as elements instead of showing binary blob in the code editor.
  • Panel improvements - PanelMessage gains a detail prop for secondary text. Error states now show the file path for easier debugging.
Screenshot 2026-02-18 at 3 29 23 AM

@charlesvien charlesvien changed the title Implement proper file attachments and attachment previews feat: Implement file attachments, image previews, and external file support Feb 18, 2026
@charlesvien charlesvien changed the title feat: Implement file attachments, image previews, and external file support feat: Implement file attachments, image previews and external file support Feb 18, 2026
@charlesvien charlesvien marked this pull request as ready for review February 18, 2026 11:06
@charlesvien charlesvien force-pushed the 02-17-implement_previews_for_file_attachment_chips branch from e786664 to 45aeca5 Compare February 18, 2026 11:27
@charlesvien charlesvien force-pushed the 02-16-improve_session_error_handling_and_display branch from 5686511 to 6e38dfa Compare February 18, 2026 11:38
@charlesvien charlesvien force-pushed the 02-17-implement_previews_for_file_attachment_chips branch from a806464 to 13a9680 Compare February 18, 2026 11:38
@charlesvien charlesvien changed the title feat: Implement file attachments, image previews and external file support feat: Refactor file attachments, image previews and external file support Feb 18, 2026
@charlesvien charlesvien changed the title feat: Refactor file attachments, image previews and external file support feat: Refactor file attachments, attachment previews and external file support Feb 18, 2026
@charlesvien charlesvien force-pushed the 02-16-improve_session_error_handling_and_display branch 2 times, most recently from 9a44674 to 9cf435d Compare February 18, 2026 12:31
@charlesvien charlesvien force-pushed the 02-17-implement_previews_for_file_attachment_chips branch from 940c449 to 0fde44d Compare February 18, 2026 12:31
@charlesvien charlesvien force-pushed the 02-16-improve_session_error_handling_and_display branch from 9cf435d to c7cc194 Compare February 18, 2026 15:03
@charlesvien charlesvien force-pushed the 02-17-implement_previews_for_file_attachment_chips branch from 0fde44d to 6842712 Compare February 18, 2026 15:03
@charlesvien charlesvien changed the base branch from 02-16-improve_session_error_handling_and_display to graphite-base/939 February 18, 2026 15:20
@charlesvien charlesvien force-pushed the 02-17-implement_previews_for_file_attachment_chips branch from 6842712 to b34db1f Compare February 18, 2026 15:20
@graphite-app graphite-app bot changed the base branch from graphite-base/939 to main February 18, 2026 15:21
@charlesvien charlesvien force-pushed the 02-17-implement_previews_for_file_attachment_chips branch from b34db1f to 28d5955 Compare February 18, 2026 15:21
@charlesvien charlesvien merged commit 9717832 into main Feb 18, 2026
13 checks passed
@charlesvien charlesvien deleted the 02-17-implement_previews_for_file_attachment_chips branch February 18, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants