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:
@@ -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'},
|
||||
|
||||
Reference in New Issue
Block a user