mirror of
https://github.com/patriceckhart/zot.git
synced 2026-06-28 14:23:41 +02:00
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. |
||
|---|---|---|
| .. | ||
| agent.go | ||
| compact.go | ||
| confirm.go | ||
| confirm_test.go | ||
| core_test.go | ||
| cost.go | ||
| events.go | ||
| intercept_test.go | ||
| session.go | ||
| session_portable.go | ||
| session_portable_test.go | ||
| session_repair_test.go | ||
| tool.go | ||