Artifact 9468f8551c96d49b878ff7b7ec0afe4c3e782281952bc1047d462e383cd0aa3c:
- File
schema/state.sql
-
2026-11-19 18:39:30
— part of check-in
[f6eb510ee2]
on branch pic-rows
— Archive pic conversations from rows in pic.sqlite (picu_pi_session_line)
pic is moving its conversations off ~/.pic/sessions files into a table of ~/.pic/pic.sqlite holding the same Pi v3 lines. ctx now reads those rows: each decoded line goes through the existing Pi path, so turns get the same pi-
/<entry id> keys as the file form and nothing is archived twice across the switch; the old files are still read. (user: dmestas, size: 14311) [annotate] [blame] [check-ins using]- The session id comes from the header row, kept in a per-conversation cursor (ctx_pic_cursor) with the last seq read and the workspace; a conversation whose header can't be decoded is skipped. - pic.sqlite is opened read-only, the conversation list is read first and rows in chunks, so no read is held across ctx's commits; a WAL database with no -wal or -shm is read immutable and re-checked after each read. - An unchanged database (size, mtime and change counter) is skipped on the hourly scan. - ctx exclude --project and --remove work for pic conversations by their workspace. - Deflated rows are inflated with zlib, with size checks; a bad row is skipped with a warning. - CTX_PIC_DB sets the path (default ~/.pic/pic.sqlite); empty skips it.
- 2026-11-19 19:00:39 — part of check-in [1521145a06] on branch trunk — Archive pic conversations from rows in pic.sqlite (user: context-bot, size: 14311) [annotate] [blame] [check-ins using]
-
2026-11-19 18:39:30
— part of check-in
[f6eb510ee2]
on branch pic-rows
— Archive pic conversations from rows in pic.sqlite (picu_pi_session_line)