Repository navigation
fix(chat): take a phone keyboard's autocorrect in the message box - #1111
Conversation
The chat message box and a queued message's text set spellCheck=false, autoCapitalize=off and autoCorrect=off, so a phone keyboard gave no corrections, suggestions or sentence capitals there. Most of what is typed to an agent is prose. Both now take them; the terminal input line, secret input and path/branch fields keep them off. Replaces #935 without a new setting (#753).
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
Change
Closes #753. Replaces #935 without adding a setting.
The chat message box (
Composer.tsx) and a queued message's textarea (PaneTerminal.tsx) setspellCheck={false},autoCapitalize="off"andautoCorrect="off". On a phone (iOS especially) the box therefore had no autocorrect, no QuickType suggestions and no sentence capitals, although most of what is typed to an agent is prose.Both now use
spellCheck,autoCapitalize="sentences"andautoCorrect="on". Fields for code-like input keep them off: the terminal input line (TerminalInput.tsx, still asserted byscripts/terminal-input-regression.ts), secret input, and the path, branch and relay fields.This matches other mobile agent clients: t3code's native iOS composer defaults to
autoCorrect/spellChecktrue (apps/mobile/src/native/T3ComposerEditor.ios.tsx), and Paseo's composer passes no keyboard props, so it takes React Native's defaults. Both turn them off only on code-like fields.Trade-off: a phone keyboard may now replace an unknown word (a flag, a branch or function name) in the chat box before Send, and desktop browsers underline unknown words.
Validation
bun run typecheck: passes.HERDR_TEST_MODE=unit bun test ./scripts/changelog-fold.test.ts ./src/conventions.test.ts ./scripts/conventions.test.ts: 27 pass, 0 fail.