zot/internal/core
patriceckhart 1a49277130 core: read sessions with line reader instead of bufio.Scanner
Loading or exporting a session containing very large JSONL rows
(image blocks, big tool outputs, compacted history) failed with
'bufio.Scanner: token too long' — Scanner caps each token to its
buffer size, even when bumped to 20 MiB. A single oversized row
blocked OpenSession entirely so an existing long session could
not be resumed.

Switch session readers (OpenSession, SessionUsage, describeSession,
sessionHasNoMessages, ExportSession, ImportSession, BranchSession,
firstUserPrompt) to a shared bufio.Reader.ReadBytes-based JSONL
helper that handles arbitrarily long lines. Add a regression test
that opens and exports a session containing a >20 MiB row.
2026-05-04 12:14:12 +02:00
..
agent.go interactive: cache idle chat render 2026-05-04 12:14:12 +02:00
compact.go feat(compact): silent compaction with status line and orphan repair 2026-04-23 14:20:15 +02:00
confirm.go fix(no-yolo): don't auto-refuse tool calls in non-interactive modes 2026-04-19 19:17:05 +02:00
confirm_test.go feat(tool-gate): --no-yolo flag, confirm dialog, /yolo runtime toggle 2026-04-19 19:12:45 +02:00
core_test.go fix ci on windows: close reopened session in TestSessionRoundTrip 2026-04-18 11:01:42 +02:00
cost.go initial commit 2026-04-17 20:36:38 +02:00
events.go feat(tui): live-stream file body during write/edit tool calls 2026-04-20 08:37:14 +02:00
intercept_test.go feat(ext): phase 4 - full-event interception, arg rewrites, /reload-ext 2026-04-19 17:02:04 +02:00
session.go core: read sessions with line reader instead of bufio.Scanner 2026-05-04 12:14:12 +02:00
session_portable.go core: read sessions with line reader instead of bufio.Scanner 2026-05-04 12:14:12 +02:00
session_portable_test.go core: read sessions with line reader instead of bufio.Scanner 2026-05-04 12:14:12 +02:00
session_repair_test.go fix(core): repair orphan tool_use rows on session load 2026-04-21 19:36:47 +02:00
tool.go perf(anthropic): fix cost double-count, tighten caching, correct catalog 2026-04-19 18:57:18 +02:00