Skip to content
pi-c Check-in [f76faff78e]
Login

Check-in [f76faff78e]

Overview
Comment:Merge the TUI race fixes into prompt templates
Timelines: family | ancestors | descendants | both | templates
Files: files | file ages | folders
SHA3-256: f76faff78ed3074e8eeceda230efe2b35a27a2a99c7dc7bd19ae146e60999f8a
User & Date: dmestas on 2026-11-19 20:39:12.156
Other Links: branch diff | manifest | tags
Context
2026-11-19
20:54
CI green on f76faff78ed3; Fil-C pass (171) check-in: 606918c3a7 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: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

Changes