Skip to content

Show an out=file block's log on its output bar and in reports - #342

Open
gdey wants to merge 1 commit into
mainfrom
claude/project-thread-wszv0g
Open

gdey wants to merge 1 commit into
mainfrom
claude/project-thread-wszv0g

Conversation

@gdey

@gdey gdey commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Requested by j · project thread

This is step 6 of docs/spilled-output/design.md and follows #340. Until now an out=file block's output was a window into its log, but nothing on the page said the log existed or let you read the rest of it.

What changes

  • mdsh-gui / --serve output bar: shows "63 lines in test.log". Clicking it opens the whole log in the include dialog, with the window's lines marked and scrolled to.
    • A window that matched nothing gets a no match badge, and a log cut at 16 MB gets a truncated badge.
    • Before the block has run this session, the bar shows just the file name and reads the file from disk when clicked.
    • This is carried by Cell.Spill (a new SpillCell type) and App.SpillFile.
  • --html: the output's caption links the log. The link is relative to where the page is written, using the new report.Options.File and report.Options.Out. A truncated log adds "(cut at 16 MB)".
  • --pdf: the caption names the log after the exit status, along with how the window picks its lines.
  • README and CHANGELOG are updated, and the CHANGELOG entry has a screenshot.

I edited the bindings (SpillFile, SpillCell, Cell.spill) by hand, because go generate needs GTK, which isn't installed here. CI's bindings check will confirm they match what the generator writes.

Screenshots

The output bar after Run all: test shows the lines around the first --- FAIL, and lint's match="^warning" found nothing.

output bar

Clicking "63 lines in test.log" opens the whole log with the window's lines marked. That screenshot and the dark-mode one are in the project files under spill-bar/.

Testing

  • go test ./... passes.
  • New tests:
    • notebook.TestSpillCell: before and after a run, the window range, no match, SpillFile.
    • report.TestSpillLink: a link from another folder, a quoted name with a space, truncated, a non-res:// path.
    • pdf.TestRenderSpill.
  • The frontend type-checks: tsc shows no errors in the changed files.

Generated by Claude Code

@gdey gdey self-assigned this Nov 23, 2026
Step 6 of docs/spilled-output/design.md. An out=file block's output was
a window into its log, but nothing said the log was there or let you
read the rest of it.

- mdsh-gui and --serve: the output bar says "63 lines in test.log";
  clicking it shows the whole log in the include dialog, with the
  window's lines marked and scrolled to. A window that matched nothing
  is badged "no match", and a log cut at 16 MB "truncated". Before the
  block runs this session, the bar names the file and reads it from
  disk on click. Cell.Spill and App.SpillFile carry it.
- --html: the output's caption links the log, relative to where the
  page is written (report.Options File and Out), with "cut at 16 MB"
  when truncated.
- --pdf: the caption names the log after the exit status, and how the
  window picks its lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W9mexoiqFA4n1PYQWSzMDS
@gdey
gdey force-pushed the claude/project-thread-wszv0g branch from b634a11 to d590bc7 Compare November 23, 2026 18:58

This branch has not been deployed

No deployments
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