50 ancestors of d2e7414b1175a4ba
|
2026-11-20
| ||
| 11:58 | TUI: syntax-highlight fenced code blocks in replies with Pi's syntax colours; unknown languages stay plain check-in: d2e7414b11 user: dmestas tags: tui-highlight | |
| 11:17 | Merge trunk into tui-round-3: images, caching, costs, Gemini, hooks seam; pic_bash kept at journal v10 check-in: fa1d0f1004 user: dmestas tags: tui-round-3 | |
| 02:11 | CI green on fc3329ac14e5 check-in: c4f5d9c2cd user: dmestas tags: trunk | |
| 01:33 |
TUI round 3: steering keys, live output, retry countdown, durable !cmd
Enter steers a running reply and Alt+Enter queues a follow-up (Shift+Enter or Ctrl+J for a newline); the queue shows Pi's labels, delivered steering appears where it lands, returned messages go back to the editor, and Esc aborts over the command pipe with signals as the fallback. The running bash block shows its output as it arrives; retries count down and Esc cancels the wait. pic bash CMD (optionally --no-context, -c or a conversation id) runs a command and journals it as Pi's bash execution message, so !cmd survives a restart and reaches the model as Pi does. The footer shows cost when usage carries one. check-in: 6b33552ab9 user: dmestas tags: tui-round-3 | |
| 01:32 |
Land gcc-build: gcc builds, a leak fix, the Linux benchmark baseline
Merges the gcc-build branch (gcc warning-clean build flags, _GNU_SOURCE for strptime, the json_valid leak in models.c, a checked freopen in the benchmark, the Linux-x86_64 baseline) into current trunk. Code added since the branch is made gcc-clean too (a shadowed name in the TUI, a string comparison gcc could not prove safe), and the benchmark builds again (designated initializers for the tool hooks). The README's build notes move into its Build section. closed check-in: fc3329ac14 user: dmestas tags: gcc-land | |
| 00:59 | CI green on 76939caa663b; Fil-C pass (215); reviewed twice check-in: 6432af2cbc user: dmestas tags: trunk | |
| 00:42 |
Merge trunk (costs) into images; the catalog keeps both input and cost
tools/model-catalog.sh writes each model's input types and prices; src/model_catalog.inc regenerated from pi.dev (653 models). closed check-in: 76939caa66 user: dmestas tags: images | |
| 00:37 | CI green on facfe0d2409e; Fil-C pass (213) check-in: d23959e47c user: dmestas tags: trunk | |
| 00:29 |
Merge trunk (TUI round 2, live events) into images
Keeps both features where they met: tool-end events carry images and bash streams partial output; the tool hooks carry both. Fil-C builds image.c and prune.c and runs images.sh, which skips where there is no sqlite3 command (as migrate.sh does). check-in: d5076648a8 user: dmestas tags: images | |
| 00:22 |
Images: re-attaching a pruned image stores its bytes again
INSERT OR IGNORE kept a pruned row (data NULL) and pointed the new attachment at it, so the image was lost on arrival. An upsert restores the bytes when the stored row was pruned. check-in: 972511ccd2 user: dmestas tags: images | |
| 00:15 | Merge trunk (steering, round 2, live events) into costs closed check-in: facfe0d240 user: dmestas tags: cost | |
| 00:09 | CI green on 49befd80de6f; Fil-C pass (212) check-in: 8952c4ae13 user: dmestas tags: trunk | |
| 00:08 |
Images: validate at entry, cap per request, prune by retention
Every image is checked from its header (PNG IHDR with CRC, JPEG frame header, GIF screen, WebP) as Fossil sniffs types: an invalid header, a type that isn't the declared one, more than 8000 px a side or over 4.5 MB is refused; the stored type is the sniffed one, with width and height. RPC image errors are reported, never dropped. A request carries the newest 20 images up to 20 MB; older ones become Pi's placeholder. Image bytes are dropped once compacted away or after imageRetentionDays (default 30; 0 keeps them), leaving hash, type and size and an "[image removed]" placeholder; pic prune [--dry-run] runs it, and it also runs at open at most hourly. pic check re-hashes images. Imports keep images. Journal version 10. check-in: 0cc6f109a2 user: dmestas tags: images | |
|
2026-11-19
| ||
| 23:39 |
Images, as Pi's
User messages, steering and follow-ups, and tool results can carry images. Journal version 9 keeps their bytes in SQLite (pic_image, deduplicated by SHA3-256, deflated only when smaller) linked by pic_attachment, written in the same transaction as the entry; pic check covers them. Each adapter sends its native shape (Anthropic base64 blocks, Chat image_url data URLs, Responses input_image); a model whose catalog input lacks images gets Pi's placeholders. pic ask --image PATH, the RPC images field and the read tool on image files add them; the Pi and HTML exports include them. check-in: c55dfbb163 user: dmestas tags: images | |
| 23:34 | Merge trunk (TUI round 2) into live events closed check-in: 49befd80de user: dmestas tags: live-events | |
| 23:30 | CI green on 649919032a4e; Fil-C pass (210) check-in: 6b90e74bfe user: dmestas tags: trunk | |
| 23:24 | Fil-C runs the cost test too check-in: 3e251306f6 user: dmestas tags: cost | |
| 23:24 |
Model prices and real costs, as Pi's
The catalog snapshot (regenerated from pi.dev) keeps each model's per-Mtok prices and tiers, as do the pi.dev overlay and models.json. Each reply is priced as Pi's calculateCost does: tiers, 1-hour cache writes, per-API usage normalisation, OpenRouter's billed total. The cost and Pi's normalised token counts are stored with the generation and appear in usage events, the Pi export, pic models --json and, per conversation, pic sessions --json. check-in: fe63b75bbd user: dmestas tags: cost | |
| 23:10 | Merge trunk (steering) into TUI round 2 closed check-in: 649919032a user: dmestas tags: tui-parity-2 | |
| 23:05 | CI green on 2a3594e86096 (pair); Fil-C pass (201); reviewed twice check-in: 4807bb7d80 user: dmestas tags: trunk | |
| 23:03 | Integrate TUI round 2, steering and live events for round 3 check-in: 101703404d user: dmestas tags: tui-round-3 | |
| 22:47 | Merge trunk (README platforms) into TUI round 2 check-in: 9d420ea9a1 user: dmestas tags: tui-parity-2 | |
| 22:44 |
TUI: closer to Pi, round 2
!cmd runs a command and adds its output to the next message; !!cmd runs it without. Editor: a kill ring (Ctrl+K, Ctrl+U, Ctrl+W, Alt+D into it; Ctrl+Y, Alt+Y out), undo (Ctrl+-), Ctrl+] to jump to a character, Ctrl+G to edit in $VISUAL or $EDITOR, Ctrl+Z to suspend. Markdown: tables, ordered and nested lists, quotes, italics, strikethrough, links (OSC 8 where the terminal draws them), code-fence labels; user messages on a background. Alt+Up restores queued messages. Startup shows Pi's key hints and the loaded context files, skills and prompt templates, and sets the terminal title. Double Esc opens /tree, Shift+Ctrl+P cycles models backwards, Ctrl+X copies the last reply. check-in: e6887db767 user: dmestas tags: tui-parity-2 | |
| 22:38 |
Events: the real retry delay, and bash output while it runs
auto_retry_start carries the delay pic is about to wait before retrying a 429 or 5xx (Retry-After or backoff), so a client can count it down. While a bash command runs, tool_execution_update events carry its output so far, throttled to 100 ms as in Pi, emitted outside any journal transaction. check-in: 784650d9f0 user: dmestas tags: live-events | |
| 22:33 | Merge trunk (TUI round 1) into steering closed check-in: 2a3594e860 user: dmestas tags: steering | |
| 22:27 | CI green on 1c97d5bf491f (docs only) check-in: 32ae0b410e user: dmestas tags: trunk | |
| 22:21 |
README: where pic can run
A section on the platforms pic's design reaches: today or a build flag away, through the platform and executor interfaces, and with more porting. Tickets 6892fcb11b (static musl binary) and the WebAssembly core track the first two steps. closed check-in: 1c97d5bf49 user: dmestas tags: readme-platforms | |
| 22:10 | CI green on 781bbf202685; Fil-C pass (185) check-in: d5d3cca608 user: dmestas tags: trunk | |
| 22:09 | Merge trunk (skills) into steering; skills expand in steer and follow-up text too check-in: 3ec6a62601 user: dmestas tags: steering | |
| 22:04 |
Durable steering and follow-ups, as Pi's
With --json --commands, a running pic reads Pi's RPC command lines on stdin (steer, follow_up, clear_queue, abort, set_steering_mode, set_follow_up_mode) wherever it already waits, and answers as Pi does. Each accepted message is journaled (pic_queued, journal version 8) before it is acknowledged. Steering becomes a user entry after the turn's tool results, before the next model call (and after a compaction); follow-ups become the next request when the answer is recorded, in the same transaction. Messages belong to the request that accepted them; on a failure or an abort they are marked returned and listed in a queue_returned event, never run later. pic check verifies each delivered entry against its queued row. Bash commands get /dev/null on stdin, as in Pi. check-in: af92ae84b2 user: dmestas tags: steering | |
| 21:52 | Merge trunk (skills) into TUI round 1; the history test waits for the recall closed check-in: 781bbf2026 user: dmestas tags: tui-parity-1 | |
| 21:41 |
TUI: closer to Pi, round 1
Each tool call is a block with its state, the arguments that matter, the duration and collapsed output; an edit shows as a coloured diff; Ctrl+O expands every block still on screen. Thinking stays in the transcript (dim italic) and Ctrl+T hides or shows it, saved as hideThinking. Up/Down history is seeded from the conversation being continued. The footer shows the git branch, the conversation name, cache tokens, and context use in colour near the limit. Retries and replies cut at the length limit are reported as Pi does. Ctrl+L and Ctrl+P work while a reply runs. check-in: e476149026 user: dmestas tags: tui-parity-1 | |
| 21:35 | CI green on ea7e1fa24c0b; Fil-C pass (178) check-in: a426d5cbec user: dmestas tags: trunk | |
| 21:20 |
Skills, as Pi's
Each folder with a SKILL.md under ~/.pic/skills/ (and, once the workspace is trusted, WORKSPACE/.pic/skills/) is a skill: Pi's frontmatter, validation and discovery rules, symlinks followed (suit places them as links), nothing ever written there. The system prompt lists them in Pi's wording, frozen with the conversation; /skill:name expands to Pi's skill block where templates expand, so ask, chat and the terminal agree, and the slash menu lists them. pic skills [--json] lists them. The frontmatter parser is now shared with prompt templates. closed check-in: ea7e1fa24c user: dmestas tags: skills | |
| 20:54 | CI green on 4587be10a75e (docs, license, option handling) check-in: c4025eecec user: dmestas tags: trunk | |
| 20:54 | CI green on f76faff78ed3; Fil-C pass (171) check-in: 606918c3a7 user: dmestas tags: trunk | |
| 20:39 | CI green on 716e1362b5c3; Fil-C pass (164) check-in: 7e1725f395 user: dmestas tags: trunk | |
| 20:39 | Merge the TUI race fixes into prompt templates closed check-in: f76faff78e user: dmestas tags: templates | |
| 20:35 |
Prompt templates, as Pi's
Markdown files in ~/.pic/prompts/ and, once the workspace is trusted, WORKSPACE/.pic/prompts/ become /name commands: Pi's frontmatter (description, argument-hint), shell-like arguments and substitutions ($1, $@, $ARGUMENTS, ${1:-default}, ${@:N}, ${@:N:L}). They expand where text becomes a request, so ask, chat and the terminal agree; the slash menu lists them, built-in commands win a name clash, and /reload re-reads them. pic prompts [--json] lists them. Files are read through the platform's input reader, which gains a directory listing. Fixes a pollfd array one entry too small when a catalog refresh runs during a reply. check-in: bb88ac58ac user: dmestas tags: templates | |
| 20:34 |
pic: reject a leftover option before opening anything
pic --bogus used to create WORKSPACE/.pic/journal.sqlite and register the workspace in pic.sqlite before reporting the unknown option. An unknown option, or one missing its value, is now an error first. closed check-in: 4587be10a7 user: dmestas tags: readme-license | |
| 20:30 |
README, BSD 2-Clause license, and repository tending
The README describes pic as it is: what it does, how to build, install, use and test it, and where the documents are. pic is BSD 2-Clause licensed (LICENSE); NOTICE lists the vendored code and the Pi material pic adapts, with their licenses. pic --help and -h print the usage and exit 0. A failed setting names pic.sqlite, not the old settings.json. The plan's stage list is current. .zitignore covers .pic/. check-in: 7c648de250 user: dmestas tags: readme-license | |
| 20:22 |
TUI: fix the races that failed CI on trunk
Esc then a key that arrive in one read (a busy machine, a slow link) are now Escape and that key; they used to be dropped as an unknown Alt+key, so Esc then /share typed into the open dialog instead. A stopping request gets 10 s after SIGINT before SIGTERM (was 3 s), so a slow disk records the cancellation instead of a kill. Quitting waits at most 2 s for the catalog refresh, which no longer starts when the catalog is offline. The exit line is printed and flushed first. The pty driver waits up to 30 s for text and exit. closed check-in: 716e1362b5 user: dmestas tags: tui-races | |
| 19:34 | CI green on 44df2d733792; Fil-C pass (164) check-in: 06ac29aa05 user: dmestas tags: trunk | |
| 19:19 | CI green on 0d9513f2d757 (docs only) check-in: 9812ebbcf6 user: dmestas tags: trunk | |
| 19:18 |
Pi lines go to pic.sqlite only; old entries get their times; tests keep off the real HOME (ticket 467ff3edef)
ctx now reads picu_pi_session_line, so ask, chat and the terminal stop writing ~/.pic/sessions files by default; piSessionFiles=1 brings them back. Journal version 7 fills in the times versions before 5 never wrote: an entry takes its request's start from the ask key, and a conversation its first entry's time when earlier, so exported lines no longer carry a null timestamp. Every test script now sets its own HOME, so running one outside make cannot touch the real ~/.pic. closed check-in: 44df2d7337 user: dmestas tags: pi-rows-only | |
| 19:06 |
Plan: running without an operating system, as an option
pic keeps running on a machine with a workspace on disk and bash. The build with no operating system becomes optional stage 7, not to be built yet. There a separate tool runs commands on a runner machine, trading only Fossil check-ins (ticket d909e0fe55); the open decision on where scratch check-ins live is recorded. closed check-in: 0d9513f2d7 user: dmestas tags: no-os-plan | |
| 18:40 | CI green on b44c2b66e8ed; Fil-C pass (164) check-in: 29c6862cfd user: dmestas tags: trunk | |
| 18:21 | Merge the test_files umask fix closed check-in: b44c2b66e8 user: dmestas tags: slash | |
| 18:21 |
test_files: expect the mode after the umask
Files are created as POSIX does, so the process umask applies; the Fil-C run's umask 077 turned 0644 into 0600. closed check-in: ee7ac290e2 user: dmestas tags: seams | |
| 18:20 |
Merge the platform seams into the slash commands
Resolves the Makefile source list and app.c's includes, and routes the import's clock through the platform. check-in: 1aadead70b user: dmestas tags: slash | |
| 18:13 |
The rest of Pi's slash commands (ticket 03abef634d)
The terminal gains /settings, /scoped-models (Ctrl+P then cycles only those), /thinking and Shift+Tab (the levels the model supports), /tree (continue from any branch point), /reload, /trust, /import of a Pi v3 JSONL conversation (text only), /export to a self-contained web page, /changelog, /share (a secret gist through gh, after a yes) and /bug (a local report in picu_bug; nothing is sent). /login and /logout say they are not available yet. State lives in pic.sqlite. New subcommands back them: pic tree, export --html, import, trust, scoped-models and bug. check-in: adeb66a371 user: dmestas tags: slash | |