Skip to content
pi-c Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 451fb43ba6148f14026c63a110d92882deb98a2a0599f71e4766bbc23ef88430
Ticket: 467ff3edef35c5483b03da383a30e830c7b8ad38
Storage: ctx export as picu_pi_session_line rows, sqlar-compressed
User & Date: dmestas on 2026-11-19 15:56:17
Changes

  1. comment changed to:
    Write the Pi v3 session lines into picu_pi_session_line(conversation, seq, workspace, sz, line) in ~/.pic/pic.sqlite instead of ~/.pic/sessions/*.jsonl. Same lines, append-only, line deflated when smaller (sqlar rule: sz = length(line) means raw). Register sqlar_compress/sqlar_uncompress (SQLite ext/misc/sqlar.c, vendored zlib).
    
    - ctx reads the rows instead of files: ticket in ctx's context project (filed with this one).
    - pic export --pi DIR still writes files when asked (explicit output), with - for stdout.
    - Keep writing the files until ctx reads the rows, then stop.
    
    Done when: ask/chat/TUI requests append rows; ctx archives from them; no automatic files remain.
    
    Plan: https://artifacts.craftdesign.group/v/-DvLRzrfEh1mIldmhMgfG#06c5bdb18c04b6b8d28d045ed9812ef5c91f2f85f57c6feb26b574cb21cec0ef (section 2)
    
  2. mimetype: "text/x-markdown"
  3. priority changed to: "High"
  4. status changed to: "Open"
  5. title changed to:
    Storage: ctx export as picu_pi_session_line rows, sqlar-compressed
    
  6. type changed to: "Feature_Request"