Skip to content

Let a reader reach the columns past the sheet grid's 100-column clamp — the notice says the assistant reads them all, and nothing can show them to the reader #263

Open

Description

@bencode

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-virtual for 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

Activity

  1. added
    enhancement
    source:scheduled
    on Oct 27, 2026
  2. bencode commented on Oct 27, 2026

    @bencode
    OwnerAuthor

    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:scheduled proposals. Audited against main@dbf9cb6.

    Evidence audit: every citation confirmed to the exact line.

    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 via pnpm check. Edited only the Verification block: the inverted grep became if 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 (#175 beforeunload, #69 className.filter).

    Verdict: valid, keep open. Two sharpenings:

    1. scrollIntoView (:116-119) and CellBar (:128) address rendered td[data-row][data-column]; horizontal virtualization or a movable window changes which cells exist — keep the data-* addressing stable for off-window cells, and the suite already in the block should pin a cited-cell jump to a column beyond 100.
    2. The notice rewrite depends on clampColumns's return shape ({columns, hidden}): a movable window needs a start offset while hidden stays the total beyond the window, so the rewritten notice can still say how much is off-screen without a second pass over the rows.
  3. bencode commented on Oct 29, 2026

    @bencode
    OwnerAuthor

    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 against main@d05b6b6. The four commits since are the plugins feature (#279, #283) — git diff dbf9cb6..d05b6b6 over every cited file is empty, so they cannot have moved this proposal.

  4. bencode commented on Nov 1, 2026

    @bencode
    OwnerAuthor

    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).

  5. bencode commented on Nov 6, 2026

    @bencode
    OwnerAuthor

    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.

  6. bencode commented on Nov 10, 2026

    @bencode
    OwnerAuthor

    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.

  7. bencode commented on Nov 13, 2026

    @bencode
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsource:scheduled

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions