Skip to content

Show the notes an Excel author left on cells — they are in the workbook, but the preview and every agent path drop them today, so caveats like 'provisional, double-check' reach neither reader nor answers #210

Closed as not planned

Description

@bencode

Problem

Excel authors leave notes on cells precisely where the caveats live: "provisional number, double-check before publishing", "as of October", "this row is an estimate". Gamma Reader drops every one of them — the reader never sees the note, and neither does the assistant, so an answer about the cell is confidently built without its warning.

Reproduction (with the package's own parser): build a minimal .xlsx whose xl/comments1.xml holds a note on B2 — "Double-check this figure before publishing - provisional number from October." — linked through the sheet's relationships. read-excel-file returns [{"sheet":"Sheet1","data":[["Item","Value"],["Widget","12"]]}]: the note text is in the package and gone after parsing.

From there the repo carries only what survived:

  • readSpreadsheet maps the parser's {sheet, data} straight onto Worksheet as name and rows (ui-packages/web/src/formats/xlsx.ts:3,127-131); there is no field a note could arrive in.
  • Every agent view is built from the same rows: sheetText and workbookText join cellText values (formats/xlsx.ts:74-95), and selectCells returns the same (:110-122) — the note reaches neither read, search nor sheet_read.
  • The grid renders cellText alone (features/reader/xlsx-reader/sheet-grid.tsx:88-90), with no mark that a cell carries a note.

Word got its apparatus marked — equations, charts, and since #209's agenda, headers and footers. The spreadsheet's apparatus is the one that vanishes for both sides of the product at once: unlike #68 or #207, the reader cannot even ask the assistant, because the assistant reads the same cell without its note.

Proposal

Goal

After this, every note an Excel author left on a cell is marked and readable in the grid and present in what the assistant reads of the sheet, in every tool; a workbook without notes renders and reads exactly as today.

Verification

grep -rwiE 'comment|note|threaded' ui-packages/web/src/formats/xlsx.ts ui-packages/web/src/features/reader/xlsx-reader --include='*.ts' --include='*.tsx' --exclude='*test*'
pnpm --filter @gamma-reader/web test --silent
pnpm --filter @gamma-reader/web exec vitest run --project unit src/formats/xlsx.test.ts
pnpm check

(the fixture and tests to add with the change: a workbook with a note on a cell parses to a Worksheet carrying the note, sheetText includes it at its coordinates, and the grid marks the cell — today Worksheet has no field for notes and no such test can pass, as the reproduction shows)

Refs

Activity

  1. added
    enhancement
    source:scheduled
    on Oct 23, 2026
  2. bencode commented on Oct 23, 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@90b046f (no commits since filing).

    Evidence audit: every citation confirmed, and the reproduction re-run and confirmed verbatim.

    Sensor + Verification block repaired (logged here per policy): lint ✓, but verify falsely passed on unmodified main — the block's commands are the generic suite, and the asserted behavior lives in a test that doesn't exist yet (the block's own parenthetical admits "no such test can pass"). Same disease as #175's block before its repair; unrepaired, a later beat would close this as implemented while nothing had changed. Edited only the Verification block, prepending a gate that fails on main today (confirmed red — no comment/note/threaded word anywhere in these two surfaces) and that the proposal's Worksheet field, parser and grid marker must turn green:

    +grep -rwiE 'comment|note|threaded' ui-packages/web/src/formats/xlsx.ts ui-packages/web/src/features/reader/xlsx-reader --include='*.ts' --include='*.tsx' --exclude='*test*'
     pnpm --filter @gamma-reader/web test --silent

    Re-linted ✓; verify now ✗ on main ✓ (not implemented).

    Verdict: valid, keep open. Three sharpenings for implementation:

    1. selectCells is where the caveat dies closest. The proposal appends notes to the whole-sheet sheetText view, but sheet_read zooming into a range goes through selectCells, which returns cell values only — an agent inspecting B2's neighborhood still misses the "provisional" note exactly when it looks hardest. Carry per-cell notes into selectCells' result for cells inside the range (or annotate its rows), and pin it in the test.
    2. Sequence agent-side value free of 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. The grid reveal ("where a cell opens") depends on 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's cell-opening surface, which is itself not yet implemented; parse + carry + agent-text (bullets 1 and 3) stand alone and deliver the assistant-side fix even if 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 slips. Ship them independently.
    3. The grid is shared with CSV. CSV rows arrive through the same Worksheet/sheet-grid path (Open CSV in the spreadsheet grid the product already has, not as raw text #41) with no notes ever present; the corner-triangle marker must be purely data-driven so CSV sheets render identically to today — one test line, worth writing.
  3. bencode commented on Oct 26, 2026

    @bencode
    OwnerAuthor

    Closing as not planned. Spreadsheets are read as cell values; cell notes stay out of scope.

    If a note carries a caveat that matters, open the workbook in Excel, or copy the note into a note in the project so you and the assistant can both see it.

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