Repository navigation
Type question answers inline, as in Claude Code - #443
Merged
Merged
Conversation
2 tasks done
The "Type something." entry becomes an inline field in its row: moving the highlight onto it starts typing, Up/Down leave it with the draft kept, and Enter on an empty field does nothing. Escape cancels the call from the field too, and the key hint stays the same while typing, as in Claude Code. multiSelect questions get the same row; its checkbox is checked exactly while it has text, and the text is sent as a separate "User wrote:" line. Enter with nothing checked and no text no longer answers a lone question. Co-Authored-By: Claude Opus 5.5 <[email protected]>
sproott
force-pushed
the
question-inline-text
branch
from
November 15, 2026 01:02
283102e to
facd5f8
Compare
sproott
added a commit
to sproott/pi-code
that referenced
this pull request
Nov 15, 2026
The command's output reaches its log file through an asynchronous write stream, and the completion notice went out as soon as the command ended. A model reading the file right after the notice could get it without its tail; on CI this failed the cap test (ilovepixelart#441, ilovepixelart#443) and the one-copy test. Settling now waits for the stream to close. Co-Authored-By: Claude Opus 5.5 <[email protected]>
In Claude Code 2.1.325 text typed into a single-select question's field
is an answer only after Enter: a draft left with Up/Down keeps the
question unanswered, and editing a confirmed text answer without Enter
keeps the confirmed text. Here the draft was submitted once the
highlight left the row, and a confirmed text answer followed every
keystroke.
Following every keystroke also let a remote answer that completed the
batch submit a half-edited confirmed answer ("yes but only if the mig"),
and close the form while multiSelect text was being typed. The form now
stays open while the highlight is on a field holding text that Enter has
not confirmed.
Two tests passed without checking their subject: the blank-Enter test
read a finished overlay, and the echo test matched "hi" inside the
placeholder "Type something.". Both now assert the behaviour they name.
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.
"Type something." becomes an inline field in its row, as in Claude Code. Moving the highlight onto it starts typing, Left/Right move the cursor, Up/Down leave the row and keep the draft, and Enter on a blank single-select field cancels the call, as Esc does. While the highlight is on the field, Left/Right and Tab stay in it and don't switch questions.
Esc in the field cancels the call, as it does everywhere else in the form, where the old editor's Esc went back to the options. The key hint stays the same while typing. Both match Claude Code.
Single-select text is an answer only once Enter confirms it, as in Claude Code 2.1.325: a draft left with Up/Down keeps the question unanswered, and editing a confirmed text answer without Enter keeps the confirmed text.
multiSelect questions get the same row, with Claude Code's placeholder there ("Type something", no period). Its checkbox is checked exactly while it has text, Space types there and never toggles it, and the text is sent after the checked labels as a separate
User wrote:line. A confirmed multiSelect follows later toggles and edits of its text. The call render lists "Type something." for multiSelect questions too. Enter with nothing checked and no text no longer answers a lone question with "(none)". On timeout, a multiSelect sends its typed text along with the checked options, as a separateAlready typed:sentence; a single-select draft is not sent.A remote answer that completes the rest of a batch does not submit the form while the highlight is on a field holding text that Enter has not confirmed; the form stays open. A remote answer to a multiSelect question replaces its local text, so the row always shows what will be submitted.
Pasted line breaks are dropped from the field's text, as Claude Code's answer drops them (
line one\nline twois sent asline oneline two).npm run checkpasses (Biome, strict tsc, Vitest)