Repository navigation
feat: questions from bots to the owner - #133
Merged
Merged
Conversation
Adds the Question type and QuestionId (qst_), the question chat item and activity kind, migration 0015 with the questions table and messages.question_id, and deleting a bot's questions with it. Spec section 23 describes the feature.
A bot asks with ask_owner and carries on; the question waits in its chat and in questions.list. questions.answer sends the answer to the bot as the owner's message, quoting the question; questions.dismiss closes it without telling the bot. The bot rules say when to ask.
A bot's question shows as a card in its chat, with its ready answers as buttons and a field for any other answer; answered or dismissed, it shrinks to one line, and the ask_owner tool line is hidden. Questions on the left opens the box of open questions from every bot, with a count; open questions also mark the taskbar. Texts in the three languages, and two questions in the dev preview.
httpsphl
enabled auto-merge
October 3, 2026 16:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Questions to the owner (spec section 23, roadmap item 18.2).
A bot that needs the owner's decision calls the new
ask_ownerMCP tool and does not wait: the question goes to a card in its chat and to a question box on the left, and the owner's answer reaches the bot later as the owner's message, quoting the question. Unlike an approval it has no deadline, so a routine can ask at night and get the answer in the morning.Daemon (P1)
Question/QuestionId(qst_), chat itemquestion, activity kindquestion.questionstable andmessages.question_id; deleting a bot takes its questions.ask_owner {question, options?}: up to 2,000 characters, 2-5 ready answers, at most 5 open questions per bot; mistakes come back to the bot as tool errors.questions.list,questions.answer(answer saved, question closed and message queued in one transaction),questions.dismiss(closes without telling the bot),question.changed.Answer to your question qst_...: "<question>"followed by the answer, without the[botloft]envelope.App (P2)
ask_ownertool line is hidden behind the card.pnpm devpreview.Checks
cargo fmt,clippy -D warnings,cargo test --workspaceandpnpm check(301 tests) pass.questions/tests.rs, deletion), daemon (tests/questions.rswithFakeRuntime), app (features/questions/questions.test.tsx).Real Claude Code (done)
A Haiku bot on a scratch dev daemon was told to ask "sea or mountains" with
ask_ownerand end its turn. It loaded the tool throughToolSearch, asked with two options, and ended the turn without guessing. Afterquestions.answerit wrote the mountain poem. The daemon log had none of the message text.Still to check by hand
pnpm tauri dev): have a bot ask, answer from the Questions box, and see the bot carry on; check the taskbar mark comes and goes.