Skip to content

Type question answers inline, as in Claude Code - #443

Merged
ilovepixelart merged 4 commits into
ilovepixelart:mainfrom
sproott:question-inline-text
Nov 15, 2026
Merged

ilovepixelart merged 4 commits into
ilovepixelart:mainfrom
sproott:question-inline-text

Conversation

@sproott

@sproott sproott commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

"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 separate Already 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 two is sent as line oneline two).

  • npm run check passes (Biome, strict tsc, Vitest)
  • Tests cover the change

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
sproott force-pushed the question-inline-text branch from 283102e to facd5f8 Compare November 15, 2026 01:02
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]>
ilovepixelart and others added 3 commits November 15, 2026 11:59
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.
@ilovepixelart
ilovepixelart merged commit 0ba1cfb into ilovepixelart:main Nov 15, 2026
12 checks passed
@sproott
sproott deleted the question-inline-text branch November 16, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants