Skip to content
pi-c Check-in [193e5d1a30]
Login

Check-in [193e5d1a30]

Overview
Comment:Write conversations as Pi v3 session files for ctx and Pi's tools

pic export --pi [DIR] writes each conversation as an append-only Pi v3 JSONL file named as Pi names them, by default under ~/.pic/sessions/ --<cwd>--/ and never in Pi's own folder: entry ids are journal entry numbers, a fork names its source file, instruction updates are custom_message entries, names are session_info, compactions are Pi compaction entries. Exporting again appends only finished entries after the last one written, after cutting a torn last line. ask and the line mode export their conversation after each request (PIC_PI_EXPORT=0 turns that off).

Also fixes compaction file lists: they were stored as JSON text rather than arrays, so a later compaction did not carry the earlier read and modified files forward. Lists already stored that way are read either way.

Timelines: family | ancestors | descendants | both | pi-export
Files: files | file ages | folders
SHA3-256: 193e5d1a30ecc19fe8211dc0d396fdfdf752767e5b071ca829c874327174a5f0
User & Date: dmestas on 2026-11-19 12:01:55.849
Other Links: branch diff | manifest | tags
Context
2026-11-19
12:16
CI green on 193e5d1a30ec; Fil-C pass check-in: 3c23c4f6fa user: dmestas tags: trunk
12:01
Write conversations as Pi v3 session files for ctx and Pi's tools

pic export --pi [DIR] writes each conversation as an append-only Pi v3 JSONL file named as Pi names them, by default under ~/.pic/sessions/ --<cwd>--/ and never in Pi's own folder: entry ids are journal entry numbers, a fork names its source file, instruction updates are custom_message entries, names are session_info, compactions are Pi compaction entries. Exporting again appends only finished entries after the last one written, after cutting a torn last line. ask and the line mode export their conversation after each request (PIC_PI_EXPORT=0 turns that off).

Also fixes compaction file lists: they were stored as JSON text rather than arrays, so a later compaction did not carry the earlier read and modified files forward. Lists already stored that way are read either way. closed check-in: 193e5d1a30 user: dmestas tags: pi-export

11:46
CI green on dc583648f4b7; Fil-C pass check-in: 3f3d884187 user: dmestas tags: trunk
Changes