You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 965f97a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(analyst): keep full_text_columns output bounded and always recoverable
Letting named cells bypass the formatter cap did not deliver complete text:
the session applies a per-result token cap before persisting any tool output,
so an oversized cell was middle-truncated anyway, and because the clean path
wrote no spill and reported `truncated: false`, the missing text could not be
recovered. The mode is now "priority within the same bounded output, always
recoverable":
- Full-text mode always writes one complete lossless JSONL spill of the
returned rows (including empty results and unknown names) and sets
`result_path`; the banner says `read` with `char_offset`/`max_chars` recovers
clipped text.
- Named cells take the shared byte/line budget first, in row order; a cell that
does not fit is clipped with a continued-in-spill marker and the metadata
reports the clip. Once the budget is exhausted, remaining cells are omitted
behind one note instead of a marker per cell.
- Structured and binary cells are serialised with the same tagged serialiser
as the spill, inline and on disk, instead of `String(value)`.
- The schema line keeps its ordinary alias and column caps, with named columns
eligible beyond the ordinary prefix; the missing-column, limit, lint and
suggestion notes are counted inside the output budget.
- The formatter enforces the effective row limit (20 in full-text mode), notes
when a connector returned more, and spills all returned rows.
Tests: 50 KiB named cell clipped within 16 KiB with its complete spill; twenty
1 MiB cells bounded with one spill; structured and binary cells lossless inline
and in the spill; empty result with a missing name held to a 64-byte budget with
the clip reported; 300 long aliases bounded beside one named column; 40 connector
rows limited to 20 with all rows saved; notes counted in the budget.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
"Keep all selected columns and return the named columns as complete text without preview or spill cuts. [] or null, or omitting this field, turns the mode off. A non-empty list caps rows at 20; omit limit to use the default, or larger limits are clamped with a result note. Missing names produce a note listing available columns; rows are still returned.",
57
+
"Keep all selected columns and prioritize named cell text within the ordinary output budget. Always save all returned rows to result_path; use read with char_offset/max_chars to recover clipped text. [] or null, or omitting this field, turns the mode off. A non-empty list caps preview rows at 20; omit limit to use the default, or larger limits are clamped with a result note. Missing names produce a bounded note listing available columns; rows are still returned.",
"Execute SQL against a connected data warehouse. Returns all selected columns as a formatted table. full_text_columns keeps named cells complete without preview or spill cuts; [] or null, or omitting the field, turns the mode off. A non-empty list caps rows at 20: omit limit to use the default; larger limits clamp to 20 with a result note. Missing column names produce a note listing available columns while still returning rows.",
83
+
"Execute SQL against a connected data warehouse. Returns all selected columns as a formatted table. full_text_columns prioritizes named cells within the ordinary output budget and always saves returned rows to result_path; read with char_offset/max_chars recovers clipped text. [] or null, or omitting the field, turns the mode off. A non-empty list caps preview rows at 20: omit limit to use the default; larger limits clamp to 20 with a result note. Missing column names produce a bounded note listing available columns while still returning rows.",
0 commit comments