GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — fix(web): preserve saved notebook traceback frame boundaries by StiensWout · Pull Request #36602 · pingdotgg/t3code Conversation
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 Proof
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
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 reactionsCo-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: GPT 6.1 Sol <[email protected]> Co-authored-by: GPT 6.1 Sol <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| 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
225dfSaved 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.
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.
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.
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.
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.
4945f50d-b5a2-4e67-a684-97cd9acbe383apps/web/src/components/files/FilePreviewPanel.test.tsapps/web/src/components/files/extendedDocumentPreview.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
EvidenceOpen 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.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
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.
…gg#36602) Co-authored-by: Julius Marminge <[email protected]> (cherry picked from commit 4574c60)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: Saved notebook previews concatenate error traceback frames
There was an error while loading. Please reload this page.