Question answers: no shaking while typing; Enter sends, Shift+Enter breaks

Typing in a question card's answer box asked the transcript to reveal
the caret on every keystroke; the split, bottom-following transcript
jumped and followed back, so the conversation shook. The request now
stops at the card, which is on screen while the operator types.

A free-text answer now behaves like the chat composer: it grows to six
lines, Enter sends it (desktop and web keyboards) and Shift+Enter
breaks the line; an open IME candidate keeps its Enter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 10:30:30 +00:00
parent a59b80fb48
commit 33874005c4
5 changed files with 156 additions and 2 deletions
+3
View File
@@ -37,12 +37,15 @@ void chatQuestionStream(String sessionId, void Function(JsonMap frame) emit) {
'session_id': sessionId,
'kind': 'question',
'title': 'Database',
// Claude questions take a custom answer and can be dismissed.
if (_mode == 'claude') 'actions': ['accept', 'decline'],
'fields': [
{
'key': 'q0',
'title': 'Which database should the release use?',
'type': 'string',
'required': true,
if (_mode == 'claude') 'custom': true,
'options': [
{'value': 'Postgres', 'label': 'Postgres'},
{'value': 'SQLite', 'label': 'SQLite'},