Tags and Properties for Check-in cb2ad5fbe9
- branch=tui propagates to descendants
- ci-pass=e0948c4cb9d9ad3c99608c4bab760b96 added by [43cee15954] on 2026-11-19 13:14:10
- sym-trunk cancelled
- sym-tui propagates to descendants
|
2026-11-19
| ||
| 13:14 | • Edit [cb2ad5fbe9]: Add "ci-pass" with value "e0948c4cb9d9ad3c99608c4bab760b96". artifact: 43cee15954 user: quarry | |
| 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 | |