Repository navigation
Description
Problem
A sheet wider than 100 columns has a region the reader can never see. Both grids — xlsx and CSV, which renders the same SheetGrid (ui-packages/web/src/features/reader/csv-reader.tsx:32) — clamp columns to maximumPreviewColumns = 100 (ui-packages/web/src/formats/xlsx.ts:16) before rendering (xlsx-reader/sheet-grid.tsx:77), while rows are virtualized through the same scroll (sheet-grid.tsx:94-104, overscan: 12). The clamp keeps the data — clampColumns adjusts only the rendered count, "copying the rows ... to hide columns would cost more than rendering them" (formats/xlsx.ts:67-70) — and the grid admits the cutoff: "Showing the first {columns} of {columns + hidden} columns. The assistant reads them all." (sheet-grid.tsx:122-125). That sentence is the whole story for the reader: columns past 100 are not in the DOM, so no scroll reaches them (the rendered header and rows span only the visible columns, sheet-grid.tsx:80-82), no cell there can be selected into the CellBar that shows a cell's whole text (sheet-grid.tsx:128), and the cited-cell scrollIntoView can only find rendered cells (sheet-grid.tsx:116-119). A reader who wants to check what the assistant says about column CV has exactly one option: ask the assistant. The twin asymmetry — fixed-width columns truncating every cell's text "while the assistant reads the whole cell" — was accepted and shipped as the CellBar (#207); the column-count axis is still open.
Proposal
- Make every column reachable: virtualize the horizontal axis the way rows already are (the grid already runs
@tanstack/react-virtualfor rows,sheet-grid.tsx:94-104), or keep the 100-column window and let it move (a jump-to-columns control). Either way, any column of an xlsx or CSV sheet is scrollable or jumpable to, and a cell in any column can be selected so the CellBar shows its whole text. - The clamp notice retires, or changes to say how to reach the rest — it stops being an apology for a region only the assistant can see.
- Row virtualization and its smoothness for ten-thousand-row sheets stay as they are.
Goal
After this, no sheet opens with a region the reader cannot see but the assistant can: any column of an xlsx or CSV grid is reachable by scroll or jump, a far column's full text is selectable into the CellBar, and "The assistant reads them all" as a cutoff sentence is gone from the grid.
Verification
pnpm --filter @gamma-reader/web test src/features/reader/xlsx-reader
if grep -q "The assistant reads them all" ui-packages/web/src/features/reader/xlsx-reader/sheet-grid.tsx; then exit 1; fi
pnpm check(The grep fails today — the sentence is the grid's own cutoff notice at sheet-grid.tsx:124 — and passes once every column is reachable and the notice retires or is rewritten; the suite and pnpm check guard the grid's behavior around the change.)
Refs
- ui-packages/web/src/formats/xlsx.ts:16 —
maximumPreviewColumns = 100 - ui-packages/web/src/formats/xlsx.ts:67-75 —
clampColumns: count-only clamp, data kept intact - ui-packages/web/src/features/reader/xlsx-reader/sheet-grid.tsx:77,94-104,116-119,122-125 — clamp applied; rows-only virtualizer; scrollIntoView limited to rendered cells; the cutoff notice
- ui-packages/web/src/features/reader/csv-reader.tsx:32 — CSV renders the same SheetGrid, so both grids share the cutoff
- Let a reader open a sheet cell to read its whole text — every column is fixed at 160px with ellipsis today, and the xlsx and CSV grids offer no way past the cut while the assistant reads the whole cell #207 (closed, shipped as the CellBar) — the same reader/assistant asymmetry for cell text; this is its column-count twin
- Let readers find a value in a sheet — the grid renders only the rows on screen, so Ctrl+F finds nothing #69 (open) — the grid's other virtualization cutoff, Ctrl+F finding nothing offscreen; sibling repair, different capability
- ui-packages/web/PRODUCT.md — "Keep reading as the largest and quietest part of the workspace": a document region the reader cannot reach breaks that, whatever the assistant can see
Activity
bencode commentedon Oct 27, 2026
Independent review — posted by the scheduled issue-reviewer loop (a session separate from the one that files these issues), under the maintainer's standing instruction to evaluate, sharpen, or retire
source:scheduledproposals. Audited againstmain@dbf9cb6.Evidence audit: every citation confirmed to the exact line.
formats/xlsx.ts:16—maximumPreviewColumns = 100;:67-75—clampColumnscount-only clamp, the quoted cost comment verbatim.sheet-grid.tsx:77— clamp applied;:94-104— rows-only virtualizer (overscan: 12);:116-119—scrollIntoViewover renderedtds;:122-125— the cutoff notice (sentence at :124);:128— CellBar offposition.csv-reader.tsx:32— CSV renders the sameSheetGrid; PRODUCT.md:35 — "Keep reading as the largest and quietest part of the workspace."Sensor repaired (logged here per policy): verify falsely passed on unmodified main. The sensor runs
set -e\n<block>; POSIX exempts!-inverted commands from errexit, so! grep -q "The assistant reads them all"failed silently with the sentence still at :124 and the block exited 0 viapnpm check. Edited only the Verification block: the inverted grep becameif grep -q …; then exit 1; fi(same intent — the sentence must be gone — now errexit-safe). Re-linted ✓; verify now ✗ on main ✓. Third instance of anchor disease in this family (#175beforeunload, #69className.filter).Verdict: valid, keep open. Two sharpenings:
scrollIntoView(:116-119) and CellBar (:128) address renderedtd[data-row][data-column]; horizontal virtualization or a movable window changes which cells exist — keep thedata-*addressing stable for off-window cells, and the suite already in the block should pin a cited-cell jump to a column beyond 100.clampColumns's return shape ({columns, hidden}): a movable window needs a start offset whilehiddenstays the total beyond the window, so the rewritten notice can still say how much is off-screen without a second pass over the rows.bencode commentedon Oct 29, 2026
Re-audit — posted by the scheduled issue-reviewer loop, independent of the authoring session. The previous review ran against
main@dbf9cb6; this beat re-audited againstmain@d05b6b6. The four commits since are the plugins feature (#279, #283) —git diff dbf9cb6..d05b6b6over every cited file is empty, so they cannot have moved this proposal.formats/xlsx.ts:16(maximumPreviewColumns = 100),clampColumnscontent intact at:68-74(cited:67-75, same code);sheet-grid.tsx:77(clamp applied),:94(rows-only virtualizer),:117(scrollIntoView over renderedtds),:124(the cutoff sentence, verbatim),:128(CellBar);csv-reader.tsx:32(CSV renders the same SheetGrid).if grep -q "The assistant reads them all" …; then exit 1; fi) fires with the sentence still present; xlsx-reader suite 7/7 green.td[data-row][data-column]addressing stable for cells outside a future window (and pin a cited-cell jump past column 100 in the suite), and let the notice shape carry a window offset so it can still count what is off-screen without a second pass over the rows.bencode commentedon Nov 1, 2026
Posted by the scheduled issue-reviewer loop, independent of the authoring session.
Re-audit at d05b6b6 — valid, stays open (HEAD unchanged since the last review; this pass adds the gate-health check the 10-31 → 11-01 round gave the other issues).
maximumPreviewColumns = 100atformats/xlsx.ts:16;clampColumnscount-only with the cost comment verbatim (xlsx.ts:67-73, cited:67-75);sheet-grid.tsx:77(clamp applied),:94(rows-only virtualizer),:117(scrollIntoViewover renderedtd[data-row][data-column]),:124(the cutoff sentence, verbatim,hidden > 0),:128(CellBar offposition);csv-reader.tsx:32renders the sameSheetGrid.:124. Correctly red.if grep …; then exit 1; fiform the first review installed after the false-green — no regression there; no-tpattern (no vitest-5 vacuous exit-0, the Recover a custom endpoint's context overflow like every other model's — the compact-and-continue rescue is gated on a context window no reader-added service has, so its long conversations dead-end in re-sends #285/Let a key change in one tab reach the others — a tab that missed it keeps sending a deleted key, and never lists an added model, until reload #292 hazard) and no--silent(no Let a large workbook open without freezing the reader — today the whole sheet parses on the main thread before the first rows can show, and every row stays in memory though the grid draws a window #275-style crash). Sound as written. The standing sharpening is unchanged and is the gap between gate and outcome: the sentence's absence can be delivered by a rewording alone — the cited-cell jump past column 100 in the suite is what would pin reachability itself.bencode commentedon Nov 6, 2026
Posted by the scheduled issue-reviewer loop, independent of the authoring session.
Renewal @ 2026-11-07, HEAD still d05b6b6 — valid, stays open. No commits since the 11-01 re-audit; this pass re-ran the checks rather than assume.
xlsx.ts:16,sheet-grid.tsx:77/:94/:117/:122-125/:128,csv-reader.tsx:32.:124. Correctly red.bencode commentedon Nov 10, 2026
Posted by the scheduled issue-reviewer loop, independent of the authoring session.
Renewal @ 2026-11-11, HEAD still d05b6b6 — valid, stays open. Fourth pass, checks re-run rather than assumed.
xlsx.ts:16(maximumPreviewColumns = 100),clampColumnscount-only at:67-73;sheet-grid.tsx:77/:94/:117/:124(cutoff sentence verbatim)/:128;csv-reader.tsx:32renders the same SheetGrid.:124. Correctly red.bencode commentedon Nov 13, 2026
Posted by the scheduled issue-reviewer loop, independent of the authoring session.
Fifth review @
d05b6b6(still HEAD — no commits since 2026-10-28) — valid, stays open.maximumPreviewColumns = 100(formats/xlsx.ts:16) with the count-onlyclampColumns(:70-74, comment at:68-69); the clamp applied in the grid (sheet-grid.tsx:77) and the header spanning only the visible columns (:80-82); the rows-only virtualizer verbatim (:94-104,overscan: 12at:100); the cited-cellquerySelector/scrollIntoView(:116-117, inside the cited:116-119); the cutoff sentence "Showing the first {columns} of {columns + hidden} columns. The assistant reads them all." at:122-125, sentence on:124; the CellBar at:128; CSV renders the same SheetGrid (csv-reader.tsx:32).sheet-grid.tsx:124, failing on unfixed main as designed.useVirtualizer/horizontalgetVirtualItems), so green means the capability exists, not just that the apology is gone.