Repository navigation
fix: spreadsheets show what the sheet shows: number formats, errors, unsolved formulas and merged blocks - #231
Merged
Merged
Conversation
…ls and formulas without a saved result say what they hold, and merged blocks read as one cell to the reader and the assistant
This was referenced Oct 26, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
read-excel-filedrops three things a sheet carries, so the grid and the assistant both read them wrong. A second pass over the package (formats/xlsx-package.ts, JSZip + DOMParser, loaded with the parser) puts them back.numfmt(new dependency, MIT, loaded only with spreadsheets):0.153→15.3%,12345.6→¥12,345.60. General numbers keep every digit, dates stay with the parser, and a formatnumfmtcannot read leaves the number as it was.#DIV/0!and the like read as themselves; a formula with no saved value reads as=SUM(A2:C2). Nothing is recalculated.sheet_info,sheet_readand the workbook text name the blocks so the assistant knows a value covers all of them.Checked end to end with an openpyxl workbook (percent, currency, thousands, fractions, a 12-digit number, a date, an unsolved formula, horizontal and vertical merges) and the tutorial's
Observation log.xlsx; the assistant answered the merged ranges correctly.Closes #161, closes #157, closes #170