Skip to content
pi-c Check-in [736c8c70b6]
Login

Check-in [736c8c70b6]

Overview
Comment:CI green on acbf15df96dc
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 736c8c70b6faa2e93b3aa554b09c9d962140b6bd06609acf271ad053ef142430
User & Date: dmestas on 2026-11-19 12:49:53.306
Other Links: manifest | tags
Context
2026-11-19
13:34
CI green on fc4294d0eafd; Fil-C pass check-in: ad4310396c user: dmestas tags: trunk
13:09
Add a terminal interface: plain pic in a terminal

A module in the pic binary (src/tui) that runs each request as a child pic --json process and knows it only through its events, so a fault in the interface cannot touch a run. Finished output is committed once to the terminal's scrollback; a small live area (the reply being streamed, a running tool call, status, queued messages, the editor and a footer with the directory, conversation, tokens, context and model) is redrawn from its first changed line, inside synchronized output. A reply that fails mid-stream only ever lived in the live area and simply goes away.

Editor: multi-line, history, bracketed paste with large pastes shown as atomic markers. Keys: Enter sends (queues while a reply runs), Ctrl+J or Alt+Enter adds a line, Esc interrupts, Ctrl+C clears and twice quits, Ctrl+D quits, Ctrl+O expands later tool output. Commands: new, resume with a picker, name, fork, compact, model, help, quit; commands typed during a reply wait for it. pic tui -c continues the latest conversation and shows its history; pic chat remains the plain prompt.

For clients, agent_start now carries the conversation, model and context window and message_end the usage; the conversation list and a conversation's entries are available as JSON. Tested with unit tests for the width, key, render and editor modules and end to end on a pseudo-terminal. check-in: cb2ad5fbe9 user: dmestas tags: tui

12:49
CI green on acbf15df96dc check-in: 736c8c70b6 user: dmestas tags: trunk
12:45
Fix the usability problems found by test runs on real tasks

pic log now shows how a request ended when it was not answered (cancelled, failed with its error, or still running). pic chat -c continues the latest conversation, or a given one by id, and the prompt says which. A wrong conversation id points at the listing command; a refused fork point names the latest valid ones; an unknown option or command says so before the usage text; an unknown slash command is reported as unknown. closed check-in: acbf15df96 user: dmestas tags: dogfood-fixes

12:41
CI green on a17b05aaa7ca check-in: 9d99f3d144 user: dmestas tags: trunk
Changes