Artifact 033db232f0ad297da33d3bc71cfcc479d53e14c8509c0c9992a5815fee362937:
- File
docs/implementation-plan.md
-
2026-11-19 13:09:42
— part of check-in
[cb2ad5fbe9]
on branch tui
— 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. (user: dmestas, size: 21606) [annotate] [blame] [check-ins using]
- 2026-11-19 13:34:51 — part of check-in [ad4310396c] on branch trunk — CI green on fc4294d0eafd; Fil-C pass (user: dmestas, size: 21606) [annotate] [blame] [check-ins using]
-
2026-11-19 13:09:42
— part of check-in
[cb2ad5fbe9]
on branch tui
— Add a terminal interface: plain pic in a terminal