Repository navigation
Pi: one multi-question card with Previous/Next for extension questions #40298
epistex-dev
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
The Pi adapter always builds a one-question
user_input_request(questions: [askUser?.question ?? piQuestion(...)]). It reads back onlyanswers[pending.questionId]. When an agent asks several related questions, the user answers them one card at a time. There is no way to go back and change an earlier answer before submitting.The question card already supports this for other providers. With
questions[], it shows Previous, Next question and Submit answers buttons and keeps a draft per question (the Muse driver uses it). Pi never reaches that path.@juicesharp/rpiv-ask-user-questiondoes not help here. In RPC mode its walker callsctx.ui.selectonce per question; its docs say "one dialog per question" and there is no tab bar.piAskUserSingleSelectQuestionrestyles each of those dialogs, but each one is still its own card.Proposal
Some tool calls carry a
questions[]array in their args (turn.toolArgsfromtool_execution_start, for example the rpivask_user_questionschema). When the first dialog of such a call arrives, render the whole set as one multi-question card. After the user submits, answer the extension's later dialogs, which are matched by title the way the compat path already does, from the stored answers without opening new cards. This gives Previous/Next without changing Pi's RPC protocol.Alternative: a documented way for an extension to send one multi-question request and receive
answersback.Environment: t3code nightly 0.1.12 (20261121.5038), pi 1.6.0, Linux.
Related: #32092, #23494, #30608.
All reactions