feat: inline file preview card for agent-created and filesystem files#5373
Open
Eiyron wants to merge 1 commit intoMintplex-Labs:masterfrom
Open
feat: inline file preview card for agent-created and filesystem files#5373Eiyron wants to merge 1 commit intoMintplex-Labs:masterfrom
Eiyron wants to merge 1 commit intoMintplex-Labs:masterfrom
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 this adds
Whenever the agent creates or edits a file via both the
create-*-fileskills and thefilesystem-write-text-file/filesystem-edit-filetools, a collapsible inline preview card now appears in the chat. No download required to see what was created.Preview supports
Files changed (7 files)
FilePreviewCard/index.jsx— collapsible preview card componentChatHistory/index.jsx— routes fileDownloadCard websocket messages to FilePreviewCardHistoricalOutputs/index.jsx— uses FilePreviewCard for historical messagesmodels/files.js— adds previewUrl() and fetchText() helpersagentFileServer.js— adds /preview endpoint; relaxes DB ownership check so files serve immediately before chat record is savedfilesystem/write-text-file.js— registers preview output via socket.send() (live) and registerOutput() (historical) after writingfilesystem/edit-file.js— same as above after editsTechnical notes