Overview
| Artifact ID: | 401122cd43ee19b529b3348a0d85763b8f7b8ae5d856d7abde273dd608f06c23 |
|---|---|
| Ticket: | 2ad667b78b0b4d743c19b36b7104b076100ac169
Storage: user database ~/.pic/pic.sqlite with picu_ tables |
| User & Date: | dmestas on 2026-11-19 15:56:17 |
Changes
- comment changed to:
Move pic's user-level state from loose files into one SQLite database, hosted on libfossil's SQLite like the journal: WAL, normal locking, a busy timeout, foreign_keys off. Tables: picu_setting(key, value, updated_ms), picu_catalog(provider, sz, models (sqlar), checked_ms, last_modified_ms, etag), picu_trust(path, trusted, decided_ms), picu_scoped_model(position, pattern), picu_workspace(path, journal, last_used_ms). - settings.json and models-store.json are imported in one transaction on first open, then deleted. - main.c setting()/set_setting() and catalog.c/catalog_fetch.c switch to the tables; keys keep Pi's names (defaultModel, defaultThinkingLevel, thinkingLevel:<provider/id>). - Every table carries the picu_ prefix (journal: pic_, libfossil: fsl*) so one file can hold everything later. Done when: no pic code writes under ~/.pic except pic.sqlite; tests cover the migration, concurrent processes and the catalog refresh. Plan: https://artifacts.craftdesign.group/v/-DvLRzrfEh1mIldmhMgfG#06c5bdb18c04b6b8d28d045ed9812ef5c91f2f85f57c6feb26b574cb21cec0ef (section 1)
- mimetype: "text/x-markdown"
- priority changed to: "Immediate"
- status changed to: "Open"
- title changed to:
Storage: user database ~/.pic/pic.sqlite with picu_ tables
- type changed to: "Feature_Request"