fix(web-read-card): carry the base's required read offset in fixtures and specs

The base's ReadResultView now requires `offset` (persisted so an empty window
still knows its start). The connection fixture's read sample and read-card.spec's
resultRead helper supply it (the window's first line, 41).
This commit is contained in:
Chinesezjc
2026-07-30 22:40:39 +08:00
parent 44a3b7f74e
commit 05d48f2918
2 changed files with 2 additions and 2 deletions
@@ -46,7 +46,7 @@ const sampleLines = [
/** The read tool's own result view for a settled file read. */
const resultRead = (over?: Partial<Extract<ToolResultView, { card: 'read' }>>): ToolResultView => ({
card: 'read', path: 'src/a.ts', lines: sampleLines, totalLines: 180, lang: 'ts', ...over,
card: 'read', path: 'src/a.ts', offset: 41, lines: sampleLines, totalLines: 180, lang: 'ts', ...over,
})
const running = (over?: Partial<RunningToolCall>): RunningToolCall => ({