feat(x): Files panel for chats, in-app PDF viewing, file card redesign - #829
Open
Gagancreates wants to merge 1 commit into
Open
feat(x): Files panel for chats, in-app PDF viewing, file card redesign#829Gagancreates wants to merge 1 commit into
Gagancreates wants to merge 1 commit into
Conversation
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.
What
Claude-style "Files" experience for chats: see every file/doc the agent created in the current chat at a glance, open PDFs inside Rowboat, and cleaner file cards.
Files panel
lib/session-files.ts— pure derivation of the chat's files from two sources: completed file-writing tool calls (file-writeText/editText/copy/renamefollows the file /removedrops it /code_agent_runchangedFiles anchored to cwd), and```filepathfences in assistant messages (the same fences that render inline cards — this is how shell-generated files like PDFs surface). Deduped by path;tmp/scratch files filtered.components/chat-files-panel.tsx— right-hand panel (mirrors version-history-panel's shell) listing each file as aFilePathCard.In-app PDF viewing
PdfFileViewer, chat docks to the side pane) instead of the OS viewer.PdfFileViewernow also handles absolute/~paths (e.g. agent-saved Desktop PDFs) by loading throughshell:readFileBase64into a blob URL — theapp://workspaceprotocol is boundary-guarded and can't serve them. Files over the 10MB IPC cap fall back to the existing "Open in system" state.navigateToViewno-op: re-navigating to the already-open file from a maximized chat pane now un-maximizes so the file becomes visible.File card redesign
FilePathCardgets a document-page glyph (folded corner, extension label color-accented by type) instead of generic lucide icons, tighter typography, hover polish, and a hover-revealed "Reveal in Finder" action. Full-width as before.Notes
npm run typecheckpasses.spawn-agentchild turns) aren't in the parent conversation, so they don't appear in the panel yet — needs per-child-turn transcript fetches as a follow-up.🤖 Generated with Claude Code