Artifact f67e87ce7cff7e34e50be6b52792ec3692f9f2e42ec75a6822d4504009fd81e4:
- File docs/manual/questions.md — part of check-in [7fd8838393] at 2026-11-26 03:19:03 on branch asks — Asks: string ids, ask_settled, limits and weights, as the page has (user: dmestas, size: 2679) [annotate] [blame] [check-ins using] [more...]
Questions
Sometimes a conversation cannot go on until a person answers: the model asked to start a loop or a
goal, and it waits for your OK. pic keeps each such question in the journal until one answer
comes, so it survives a crash or a closed terminal, and you can answer it from wherever you are:
the terminal, a phone, another shell, or a program on pic --mode rpc. The first answer is the one
that counts; any later one is refused and told what was answered, and by whom.
A question is one of three kinds:
- a yes or no (a confirm), such as "Start loop L2, every 10m?";
- a choice from a short list of up to 10 (a select), where a choice that destroys something is marked and one may be the default;
- a line of text (an input).
In the terminal
The interface puts a question of its conversation to you in one line as soon as it is asked. For a
yes or no, y and n answer; for a choice, type to narrow the list and Enter picks; for text,
type it and press Enter. Esc leaves it waiting, to answer later from anywhere. A loop or goal the
model asked for is asked as before (loops).
From a shell
pic answer lists the questions every conversation of the workspace is waiting on: id,
conversation, kind, title and the choices. pic answer ID true answers one; a choice is given by
its label (pic answer ID dev), and text as it is, up to 4,000 characters. pic loop approve L2 and pic loop
decline L2 answer a loop's OK too.
pic attach shows a question of the conversation it follows as it is asked, as Pi's
extension_ui_request in JSON and as a line in text. With -i, Pi's extension_ui_response line
({"type":"extension_ui_response","id":"ID","confirmed":true}) answers it.
On a phone
With remote control on, the phone shows each question as a card with its answers, and sends a notification when one is asked. The notification says only "conversation needs your answer", never the question itself, so nothing it asks shows on a lock screen. Every phone shows how a question was settled, and by whom.
In RPC mode
get_asks lists the conversation's questions and answer_ask answers one; Pi's
extension_ui_response answers one by its id (RPC commands).
When nobody answers
A question waits for 7 days, then closes unanswered; an answer sent after that is told it came too late. A loop stopped while it waits for your OK takes its question with it. If pic stops while it waits, the question stays open: answer it, and the next pic to take up the conversation goes on with that answer, without asking again.