feat: inline data file viewer for tabular data#95
Draft
dimavedenyapin wants to merge 4 commits intomainfrom
Draft
feat: inline data file viewer for tabular data#95dimavedenyapin wants to merge 4 commits intomainfrom
dimavedenyapin wants to merge 4 commits intomainfrom
Conversation
Add DataFilePreview and DataFileDialog components that detect tabular files (CSV, JSON, JSONL, TSV, Excel) in agent tool calls and task attachments, rendering interactive inline table previews with sort, filter, and fullscreen expansion. Parsing is handled in the main process via papaparse and xlsx. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When the agent writes a .py file containing marimo markers (`import marimo`, `@app.cell`, `marimo.App`), the transcript auto-detects it and shows a MarimoEmbed component with Run/Edit buttons. Clicking Run spawns a local `marimo run --headless --no-token` server and embeds the live notebook in an iframe inline in the chat, with fullscreen expansion support. - marimo-server.ts: manages marimo process lifecycle (launch, stop, cleanup) - MarimoEmbed.tsx: inline component with run/edit/fullscreen/stop controls - Detection: content-based (tool input/output) + async disk fallback - Graceful handling when marimo is not installed (shows install instructions) - All marimo servers cleaned up on app quit Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…el, lockfile Integrated main's shutdown refactor (shutdownAppServices) with marimo cleanup, and merged deriveToolSubtitle with marimo/tabular detection in ToolCallMessage. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Architecture
fileViewer:readTabularFileandfileViewer:getFileInfoIPC handlers +attachments:resolvePathfileViewerandattachments.resolvePathnamespacesDataFilePreview(inline) andDataFileDialog(fullscreen) componentsToolCallMessagetool inputsDataFileDialogSupported Formats
CSV, TSV, JSON, JSONL, XLSX, XLS (Parquet placeholder for future)
Screenshot generated with Remotion
The PR screenshot above was rendered programmatically using Remotion (
scripts/remotion/).Test plan
🤖 Generated with Claude Code