GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): preserve saved notebook traceback frame boundaries by StiensWout · Pull Request #36602 · pingdotgg/t3code

Conversation

@StiensWout

@StiensWout StiensWout commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Saved notebook error previews concatenate the separator, heading and stack frames when IPython omits trailing newlines. Add a frame boundary only when the preceding entry lacks one, preserving already-terminated frames and the existing source, stream and MIME text joins.

Small fast-lane fix: a private traceback normalizer, no state, storage or new UI flow. Web and desktop share this parser and whitespace-preserving preview; mobile has no consumer. Transport, providers, permissions and connection modes are unchanged.

Found by Wout’s bughunt (GPT 6.1 Sol), independently confirmed by Claude Opus 5.5 at f315da333952f161a381e3afedbd1dfcb08ae3e5, and reproduced again on current main before fixing.

Proof

  • The existing saved-notebook parser test fails on base and passes on the fix. Exact output assertions cover default traceback frames, frames that already end with newlines, and older IPython newlines followed by ANSI resets.
  • pnpm exec vp test run apps/web/src/components/files/FilePreviewPanel.test.ts passes.
  • pnpm exec vp run scenarios:prove scripts/scenarios/notebook-traceback-frames.e2e.ts --base bebaf3ec04 --target web fails on base and passes on the final fix through the real web app and isolated server. The subsequent rebase has identical patches (git range-diff).
  • pnpm exec vp run check:changed passes.
  • Real IPython Context, Plain and Minimal outputs were also checked through openNotebook; the already-terminated formats retain their original text.

Before:
Concatenated traceback

After:
Separated traceback

Proof limits: the web scenario uses shortened realistic frames; full kernel output was checked at the parser boundary. Desktop was not launched separately. ANSI styling is outside this fix. The scenario is retained as local proof rather than a permanent scenario. No proof auditor is required by the fast lane.

Council review

Reviewer Round 1
Claude Opus 5.5 8/10
GPT 6.1 Sol 9.5/10

Opus S1 was fixed after this round: existing newlines followed by ANSI SGR resets no longer gain another newline, covered by an exact-output test that failed before the fix. N1 comments were corrected. N2, an optional return-type change, was declined because it adds no behavioral benefit. The first-round average was 8.75, so this fast lane did not require a second voting round. The 8/10 is the recorded pre-fix score, not a re-review.

Local cubic: no findings; fork repository context was unavailable. Trim retained the focused implementation and assertions without changes.

Created with GPT 6.1 Sol (lead and review) and Claude Opus 5.5 (build, trim and review) in T3 Code through the Codex and Claude harnesses.

Closes #36601

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
StiensWout and others added 2 commits November 14, 2026 09:59
@StiensWout @claude @codex
fix(web): saved notebook tracebacks keep frames on separate lines
146768e
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: GPT 6.1 Sol <[email protected]>
@StiensWout @codex @claude
fix(web): preserve traceback newlines before ANSI resets
225df14
Co-authored-by: GPT 6.1 Sol <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 14, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 14, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 225df14

Macroscope's review found this PR approvable — This change preserves line boundaries in saved notebook tracebacks without changing ordinary output handling. Its effects are limited to preview formatting, with existing size limits retained.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 28f1786
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6d4f114e-0262-4271-992c-5fa64a790493
Commits

Reviewing files that changed from the base of the PR and between 225df14 and 9bc2dd4.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The notebook preview now inserts missing line breaks between traceback frames when building fallback output text. Existing output.text and text/plain precedence remains unchanged. Tests cover newline handling and ANSI sequences.

Changes: Notebook traceback preview

Layer / File(s) Summary
Normalize traceback fallback
apps/web/src/components/files/extendedDocumentPreview.ts, apps/web/src/components/files/FilePreviewPanel.test.ts
Traceback frames are normalized before use as fallback output text. Tests cover missing and existing line breaks, plus ANSI sequences.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: geezoria

Merge Risk: Minimal · previous review 225df

Saved notebook error tracebacks now show each frame on its own line, with no change to other output text. The change is local and low-risk, and tests cover the main traceback formats.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix (saved notebook traceback frame boundaries) and the scope (web). The changeset adds a traceback normalizer that inserts a newline between frames when the preceding frame lacks …
Description check Passed The description covers the problem (concatenated separator, heading and stack frames in saved notebook error previews), the change (a frame boundary added only when the preceding entry lacks a newline…
Linked Issues check Passed [#36601] Requires traceback entries from saved version 4 notebooks to appear on separate lines, with existing newlines preserved. At the reviewed head, openNotebook in extendedDocumentPreview.ts p…
Out of Scope Changes check Passed The source diff at the reviewed head adds one private helper, tracebackLines, and changes one call site in openNotebook to use it. The output.text and text/plain precedence is unchanged. The h…
Full details: Title check

Explanation

The title names the fix (saved notebook traceback frame boundaries) and the scope (web). The changeset adds a traceback normalizer that inserts a newline between frames when the preceding frame lacks one, and adds tests for that behavior. The title is specific and matches the main change. It follows the conventional commit style the template suggests.

Full details: Description check

Explanation

The description covers the problem (concatenated separator, heading and stack frames in saved notebook error previews), the change (a frame boundary added only when the preceding entry lacks a newline), scope (web and desktop share the parser; mobile has no consumer; linked to issue #36601), and verification (exact-output tests, the vp test run command, check:changed, and before/after screenshots). It uses the template's section headings in substance, though it does not use the literal Problem/Change/Scope/Verification headings. The template's required 'Verification' section is addressed with specific commands and results, and the proof limits are stated. The description is complete and specific. The council review and attribution sections go beyond the template but do not undermine the required content.

Full details: Linked Issues check

Explanation

[#36601] Requires traceback entries from saved version 4 notebooks to appear on separate lines, with existing newlines preserved. At the reviewed head, openNotebook in extendedDocumentPreview.ts passes output.traceback through the new tracebackLines helper when output.text and text/plain are absent. tracebackLines inserts \n before a string frame when the preceding frame does not end in a newline, optionally followed by ANSI SGR resets. Frames that already end in a newline are left unchanged. The change is at the parser boundary, which the issue names as the reproduction point. The PR also adds exact-output tests in FilePreviewPanel.test.ts covering default frames, newline-terminated frames, and ANSI-reset frames. I did not read the test file hunks; the verdict relies on the source diff and the PR's reported test results. ANSI styling is excluded by the issue and is not required here. Mobile is not in scope. No coding requirement remains unmet.

Full details: Out of Scope Changes check

Explanation

The source diff at the reviewed head adds one private helper, tracebackLines, and changes one call site in openNotebook to use it. The output.text and text/plain precedence is unchanged. The helper has no state, storage, transport, or UI effect. The test additions in FilePreviewPanel.test.ts directly verify this traceback behavior. Each change connects to issue #36601. No unrelated changes were identified in the inspected source hunk. The test file hunks were not separately inspected.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: b4c1bd1
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4945f50d-b5a2-4e67-a684-97cd9acbe383
Commits

Reviewing files that changed from the base of the PR and between b4c1bd1 and 225df14.

Files selected for processing: 2

  • apps/web/src/components/files/FilePreviewPanel.test.ts
  • apps/web/src/components/files/extendedDocumentPreview.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 14, 2026
@juliusmarminge
Merge remote-tracking branch 'origin/main' into t3/fix-notebook-trace…
9bc2dd4
…back-frames
@juliusmarminge

juliusmarminge commented Nov 14, 2026

Copy link
Copy Markdown
Member

Evidence

Open the same synthetic version 4 notebook through the web file picker on both commits. Its saved error outputs cover missing trailing newlines, existing newlines, and newlines followed by ANSI resets. Maximize the preview and read all three outputs. Environment: Chromium, 1280×800, light theme, fresh isolated databases.

The base concatenates traceback entries; the head separates them while preserving existing spacing. The scenario fails on base and passes on head.

Before After
28f1786829 9bc2dd47d0
Before: traceback entries concatenate After: traceback entries retain separate lines

Reproduction scenario and notebook seed

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 14, 2026
@juliusmarminge
juliusmarminge merged commit 4574c60 into pingdotgg:main Nov 14, 2026
52 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 14, 2026
@adampeterhiggins adampeterhiggins mentioned this pull request Nov 14, 2026
chore: merge upstream/main into fork (2026-11-14) adampeterhiggins/t3code#578
Merged
@geezoria geezoria mentioned this pull request Nov 14, 2026
fix(web): notebook error previews no longer show terminal color codes #31929
Merged
geezoria pushed a commit to geezoria/t3code that referenced this pull request Nov 14, 2026
@geezoria1337
Merge origin/main into fix/notebook-preview-traceback
7b6f6b5
Preserve the traceback frame boundaries merged in pingdotgg#36602 and retain ANSI removal. Reuse the existing saved-notebook regression case.

Implemented and verified with gpt-6.1-sol in the Codex harness through T3 Code.
@StiensWout StiensWout mentioned this pull request Nov 14, 2026
[Bug]: Saved notebook errors display raw terminal color codes #36697
Closed
2 tasks done
Pipyakas pushed a commit to Pipyakas/t3code that referenced this pull request Nov 15, 2026
@StiensWout @juliusmarminge @Pipyakas
fix(web): preserve saved notebook traceback frame boundaries (pingdot…
a7c6aaf
…gg#36602)

Co-authored-by: Julius Marminge <[email protected]>
(cherry picked from commit 4574c60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:S 10-29 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Saved notebook previews concatenate error traceback frames

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@StiensWout @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.