mirror of
https://github.com/patriceckhart/zot.git
synced 2026-06-28 06:13:42 +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 | ||
| assets | ||
| auth | ||
| core | ||
| extproto | ||
| provider | ||
| skills | ||
| tui | ||