Skip to content

fix(web): exact 1,024-column CSV and TSV files no longer show the truncated-columns banner - #42973

Merged
juliusmarminge merged 2 commits into
pingdotgg:mainfrom
only21mil:fix/web-csv-1024-columns-false-truncation-banner
Nov 25, 2026
Merged

juliusmarminge merged 2 commits into
pingdotgg:mainfrom
only21mil:fix/web-csv-1024-columns-false-truncation-banner

Conversation

@only21mil

Copy link
Copy Markdown
Contributor

Problem

In the CSV/TSV table preview (Files panel and chat attachment previews share LargeTextViewer), a file with exactly 1,024 columns showed "Showing the first 1,024 columns. Source and Save retain every column." although no column was dropped. The worker capped its column count at 1,024 and the viewer showed the banner whenever meta.columns === 1024.

Change

apps/web/src/components/files/largeText.worker.ts keeps the uncapped widest-row column count and sends the capped columns (LARGE_TEXT_MAX_COLUMNS) plus a columnsTruncated boolean on its meta message (TextPreviewResult updated in largeTextProtocol.ts). LargeTextViewer.tsx renders the banner from meta.columnsTruncated; its main-thread firstScreen (painted before the worker answers) parses up to LARGE_TEXT_MAX_COLUMNS + 1 (1,025) fields so firstScreenState sets the same flag and keeps the banner on first paint for wider files. No i18n changes.

AttachmentFilePreview.browser.test.tsx adds an it.each test ("shows the column truncation banner only when a CSV exceeds 1,024 columns (%i columns)") that renders 1,024- and 1,025-column CSVs and checks the banner both on first paint and after indexing.

Scope

Small fix of an obvious bug, so no issue. Web and desktop share this viewer. Mobile uses its own parseDelimitedPreview(...).truncated, which only sets the flag above the limit, so it was not affected. No other === 1024 truncation check exists.

Verification

Setup: T3 web app from source (dev runner), Browser panel 2560x1600, light theme, isolated unseeded dev data (server labelled "Test machine"), synthetic project with exact-1024.csv and over-1025.csv (header plus 3 rows each). Before capture on base, after capture on head after reloading the same page.

Steps: python3 -c 'from pathlib import Path; [Path(f).write_text("\n".join([",".join(f"c{i}" for i in range(1, n+1)), *[",".join(str(r*10000+i) for i in range(1, n+1)) for r in (1, 2, 3)]]) + "\n") for n, f in [(1024, "exact-1024.csv"), (1025, "over-1025.csv")]]' -> add folder as project -> open each file from the Files panel (maximized).

9e38508 (before) b209309 (after)
9e385083d6: exact-1024.csv (1,024 columns, none dropped) shows the "Showing the first 1,024 columns" banner
9e38508: exact-1024.csv (1,024 columns, none dropped) shows the "Showing the first 1,024 columns" banner
b2093098: exact-1024.csv shows 1,024 columns and no banner
b209309: exact-1024.csv shows 1,024 columns and no banner
9e385083d6: over-1025.csv shows the first 1,024 columns and the banner
9e38508: over-1025.csv shows the first 1,024 columns and the banner
b2093098: over-1025.csv still shows the first 1,024 columns and the banner
b209309: over-1025.csv still shows the first 1,024 columns and the banner

An AI agent (Claude Opus 5.5, T3 Code) ran vp test run apps/web/src/components/files/AttachmentFilePreview.browser.test.tsx -t "shows the column truncation banner only when a CSV exceeds 1,024 columns" (fails on 9e385083d6, 1,024 case: banner shown, "expected true to be false"; passes both cases in 3 runs on b2093098, Node 26.13.1), vp run check:changed (exit 0 on b2093098), and took the before/after captures.

Not shown: chat attachment previews (same viewer and worker), desktop (same web UI), TSV (same worker path, delimiter only), mobile (not affected).

Generated with Gemini 4 Neon in T3 Code Nightly

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 25, 2026
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change โ†’

Important

Review skipped

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

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b209309 and b14fca4.

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

CSV preview metadata now reports when the actual column count exceeds the display limit. The viewer uses this metadata to show the truncation notice. Browser tests cover files with 1,024 and 1,025 columns.

Changes: CSV column truncation

Layer / File(s) Summary
Column truncation metadata flow
apps/web/src/components/files/largeTextProtocol.ts, apps/web/src/components/files/largeText.worker.ts, apps/web/src/components/files/LargeTextViewer.tsx, apps/web/src/components/files/AttachmentFilePreview.browser.test.tsx
The protocol adds a columnsTruncated field. The worker tracks actual row width and reports capped column counts with the truncation flag. The viewer parses one extra column to detect truncation and shows the notice based on the flag. Browser tests check the 1,024- and 1,025-column cases.

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

Change: Bug fix

Suggested reviewers: juliusmarminge, maria-rcks

Merge Risk: Minimal ยท previous review b2093

The CSV preview now shows the truncation notice only when a file has more than 1,024 columns. The change is small and confined to the preview components. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix (exact 1,024-column CSV/TSV files no longer show the truncated-columns banner), which matches the main change: the worker now sends a capped column count plus a columnsTruncateโ€ฆ
Description check Passed The description follows the template's sections: Problem, Change, Scope, and Verification. It explains the bug (exactly 1,024 columns showed the banner), the fix (uncapped count in the worker, columnsโ€ฆ
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the fix (exact 1,024-column CSV/TSV files no longer show the truncated-columns banner), which matches the main change: the worker now sends a capped column count plus a columnsTruncated flag, and LargeTextViewer renders the banner from that flag. It is specific and follows the conventional-commit style of the template example.

Full details: Description check

Explanation

The description follows the template's sections: Problem, Change, Scope, and Verification. It explains the bug (exactly 1,024 columns showed the banner), the fix (uncapped count in the worker, columnsTruncated flag, first-paint parsing up to 1,025 fields), and the scope (small bug fix, no issue, with reasons). Verification gives the targeted test command, before/after results, the check command, and before/after screenshots. It also states what was not checked (chat attachments, desktop, TSV, mobile). The PR objectives describe screenshots that look identical for the 1,024 and 1,025 cases in the after state, which is consistent with the stated behavior. The description is mostly complete and clear.

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

Commits

Reviewing files that changed from the base of the PR and between b136053 and b209309.

Files selected for processing: 4

  • apps/web/src/components/files/AttachmentFilePreview.browser.test.tsx
  • apps/web/src/components/files/LargeTextViewer.tsx
  • apps/web/src/components/files/largeText.worker.ts
  • apps/web/src/components/files/largeTextProtocol.ts

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

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 25, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

Generated CSV and TSV files with exactly 1,024 or 1,025 columns, each containing a header and three data rows. In the real web app, opened the widecsv thread โ†’ right panel โ†’ Files โ†’ each file, then scrolled fully right to c1024. Both runs used fresh state, Chromium at 1280ร—800, and a light theme.

The scenario failed on base and passed on head. Base incorrectly shows the banner for both exact-width files; head removes it while retaining the banner for both wider files. Column c1024 and values 11024/21024/31024 remain visible.

File Before โ€” 2313dfadad After โ€” b14fca433e
1,024-column CSV Before: CSV incorrectly shows truncation banner After: CSV shows c1024 without banner
1,024-column TSV Before: TSV incorrectly shows truncation banner After: TSV shows c1024 without banner
1,025-column CSV Before: wider CSV shows banner After: wider CSV retains banner
1,025-column TSV Before: wider TSV shows banner After: wider TSV retains banner

Scenario and synthetic-data generator ยท Before recording ยท After recording

@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 25, 2026
@juliusmarminge
juliusmarminge merged commit e242ed0 into pingdotgg:main Nov 25, 2026
57 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 25, 2026
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Nov 25, 2026
**v0.1.13-nightly.20261125.5258** ยท 69 changes from 19 contributors

- **Workflow subjects.** Link workflow runs to an issue or pull request and find them from its view.
- **Project drafts.** Add a project from a draftโ€™s picker without leaving your typed draft behind.
- **Files panel refresh.** Refresh now checks only visible folders, reducing repeated work in large projects.
- **Citation dictation.** Clicking outside a citation comment no longer discards dictation in progress.
- **Cursor restart recovery.** Cursor requests interrupted before their first checkpoint are resent after a server restart.

### Plus 62 more bug fixes.

<details>
<summary>Full changelog</summary>

## What's Changed
* fix(web): GB18030 RTF files now preview instead of showing no preview by @only21mil in pingdotgg/t3code#42827
* fix(server): retain unfinished terminal sequences in attach history by @StiensWout in pingdotgg/t3code#42817
* fix(release): preserve the web asset manifest by @usedhonda in pingdotgg/t3code#42806
* fix(web): Changes pane explains a diff of only hidden test files by @juliusmarminge in pingdotgg/t3code#42851
* fix(web): panel resize handle no longer covers the chat scrollbar on touch devices by @juliusmarminge in pingdotgg/t3code#42852
* fix(server): linked workflow steps recover replies from older pages by @SoroushRF in pingdotgg/t3code#42818
* fix(web,mobile): Usage says "1 session", not "1 sessions" by @only21mil in pingdotgg/t3code#42837
* fix(web): clicking outside a citation comment keeps its dictation by @juliusmarminge in pingdotgg/t3code#42856
* fix(client-runtime): feedback trace shows "1 character", not "1 characters" by @only21mil in pingdotgg/t3code#42855
* fix(desktop): WSL-only backend no longer falls back to Windows when reg.exe is blocked by policy by @juliusmarminge in pingdotgg/t3code#42857
* fix(github): count team review requests in the Reviewing filter by @pedrosousa13 in pingdotgg/t3code#42835
* fix(web): timeline minimap no longer covers the Copy button when the chat lane is shifted left by @juliusmarminge in pingdotgg/t3code#42876
* perf(web): Files panel Refresh reads only the folders on screen by @juliusmarminge in pingdotgg/t3code#42870
* fix(web): Restart agent session toast says the conversation is kept by @juliusmarminge in pingdotgg/t3code#42880
* fix(mobile): / menu ranks an exact skill name above description matches by @juliusmarminge in pingdotgg/t3code#42879
* fix(server): EPUB attachment text no longer includes hidden passages by @only21mil in pingdotgg/t3code#42871
* fix(web): reopening a closed pull request tab keeps saved list filters by @AymanKhan9 in pingdotgg/t3code#42875
* fix(web,mobile): mixed add/delete review selections no longer show backwards line ranges by @only21mil in pingdotgg/t3code#42863
* fix(web): reading position survives a panel resize right after a thread opens by @juliusmarminge in pingdotgg/t3code#42915
* fix(web): web search result links follow Open links in by @juliusmarminge in pingdotgg/t3code#42882
* fix(server): preserve split terminal control sequences across scrollback clears by @StiensWout in pingdotgg/t3code#42810
* fix(web): update terminal labels when the language changes by @StiensWout in pingdotgg/t3code#42872
* fix(web): show Labs device preferences read-only for projects by @jsyt in pingdotgg/t3code#42884
* fix(server): t3 connect link says to restart a running server, not start t3 serve by @juliusmarminge in pingdotgg/t3code#42904
* fix(server): extensionless empty ZIP files are detected as application/zip by @only21mil in pingdotgg/t3code#42899
* fix(server): OpenCode /goal length rejection names the limit by @juliusmarminge in pingdotgg/t3code#42905
* fix(web,mobile): adding a project from a draft's picker no longer leaves the draft behind by @nikalezah in pingdotgg/t3code#42889
* fix(web): localize terminal excerpt line ranges by @StiensWout in pingdotgg/t3code#42886
* fix(server): separate nested EPUB list items in attachment text by @Lucenx9 in pingdotgg/t3code#42891
* fix(web): empty files and folders in archive previews show 0 bytes instead of 1 KB by @only21mil in pingdotgg/t3code#42900
* fix(web): Show more in Thread Details keeps every repository listed by @juliusmarminge in pingdotgg/t3code#42919
* test(web): Files panel Refresh test no longer fails on a late tree render by @t3dotgg in pingdotgg/t3code#42935
* fix(terminal): keep line breaks when joining a running terminal by @StiensWout in pingdotgg/t3code#42927
* fix(server): separate ruby readings in EPUB attachment text by @Lucenx9 in pingdotgg/t3code#42911
* fix(web): unsupported file preview no longer calls extensionless filenames a file type by @only21mil in pingdotgg/t3code#42932
* fix(server): Antigravity live sessions no longer overwrite default thinking levels by @jsyt in pingdotgg/t3code#42931
* fix(web): release terminal reply ownership when the drawer closes by @StiensWout in pingdotgg/t3code#42897
* fix(mobile): keep CSV headings below the iPad navigation bar by @xandev641 in pingdotgg/t3code#42928
* fix(web): comment timestamps follow 'Open links in' by @iamshadmantaqi in pingdotgg/t3code#42873
* fix(web): SQLite 1-byte BLOB previews show "[blob: 1 byte]" by @only21mil in pingdotgg/t3code#42950
* fix(server): preserve image descriptions in EPUB attachment text by @Lucenx9 in pingdotgg/t3code#42925
* fix(server): expired buffered signals no longer wake workflows by @SoroushRF in pingdotgg/t3code#42952
* fix(server): DOCX merged table cells no longer shift later columns in attachment text by @only21mil in pingdotgg/t3code#42955
* fix(terminal): keep other input out of large bracketed pastes by @StiensWout in pingdotgg/t3code#42948
* fix(server): resend a Cursor request a restart cut off before its first checkpoint by @grenmango51 in pingdotgg/t3code#42938
* test(scripts): WSL archive fixture works with Git Bash tar on Windows by @pauldupuyjr in pingdotgg/t3code#42962
* fix(server): EPUB attachments keep their table captions for agents by @KyrosHendrix in pingdotgg/t3code#42964
* fix(web): Antigravity settings show only the fields the chosen sign-in method uses by @SunkenInTime in pingdotgg/t3code#40494
* fix(contracts): pull request and issue errors reach clients behind T3 Connect by @juliusmarminge in pingdotgg/t3code#42956
* fix(web): exact 1,024-column CSV and TSV files no longer show the truncated-columns banner by @only21mil in pingdotgg/t3code#42973
* fix(web,mobile): a running Read's image shows a loading frame, not "Image unavailable" by @shivamhwp in pingdotgg/t3code#42921
* fix(shared): usage page says "record was skipped" for one malformed record by @only21mil in pingdotgg/t3code#42974
* fix(antigravity): keep child skills visible under a root SKILL.md by @Lucenx9 in pingdotgg/t3code#42971
* fix(web): PR timeline "Open activity on host" buttons honor 'Open links in' by @AymanKhan9 in pingdotgg/t3code#42914
* fix(server): images on drives Windows' native realpath cannot resolve preview again by @juliusmarminge in pingdotgg/t3code#42981
* fix(server): login-shell re-reads no longer pile up fnm multishell folders in PATH by @juliusmarminge in pingdotgg/t3code#42996
* fix(mobile): an Issues list with nothing more to load no longer spins forever by @juliusmarminge in pingdotgg/t3code#42992
* fix(server): Antigravity sessions no longer mark an unscanned folder's skills as scanned by @juliusmarminge in pingdotgg/t3code#43002
* fix(web): empty ODS sheets show 0 columns instead of 1 by @only21mil in pingdotgg/t3code#42991
* fix(shared): new thread titles no longer end with a space before "..." by @only21mil in pingdotgg/t3code#43014
* fix(server): stop reading Antigravity usage limits from Google's internal APIs by @juliusmarminge in pingdotgg/t3code#43026
* fix(web): recognize composerEmpty in keybinding settings by @v-khanna in pingdotgg/t3code#42986
* fix(terminal): finish shell startup after disconnect by @StiensWout in pingdotgg/t3code#42940
* fix(web): pressing Escape on the Environments map clears selection without closing Settings by @only21mil in pingdotgg/t3code#43017
* feat(workflows): a run can declare its subject and be found by it by @juliusmarminge in pingdotgg/t3code#42517
* fix(server): agents below Full access ask before a push runs repository hooks by @juliusmarminge in pingdotgg/t3code#42535
* fix(server): asset responses pick their sandbox from the type they serve by @juliusmarminge in pingdotgg/t3code#42999
* fix(server): Claude no longer gets MCP app notes again after a server restart by @juliusmarminge in pingdotgg/t3code#43008

## New Contributors
* @usedhonda made their first contribution in pingdotgg/t3code#42806
* @pedrosousa13 made their first contribution in pingdotgg/t3code#42835
* @jsyt made their first contribution in pingdotgg/t3code#42884
* @xandev641 made their first contribution in pingdotgg/t3code#42928
* @grenmango51 made their first contribution in pingdotgg/t3code#42938
* @v-khanna made their first contribution in pingdotgg/t3code#42986

**Full Changelog**: pingdotgg/t3code@v0.1.13-nightly.20261125.5245...v0.1.13-nightly.20261125.5258

</details>


Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.13-nightly.20261125.5258
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants