Skip to content

fix(chat): take a phone keyboard's autocorrect in the message box - #1111

Merged
devswha merged 1 commit into
mainfrom
fix/chat-composer-autocorrect
Oct 14, 2026
Merged

devswha merged 1 commit into
mainfrom
fix/chat-composer-autocorrect

Conversation

@devswha

@devswha devswha commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Change

Closes #753. Replaces #935 without adding a setting.

The chat message box (Composer.tsx) and a queued message's textarea (PaneTerminal.tsx) set spellCheck={false}, autoCapitalize="off" and autoCorrect="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" and autoCorrect="on". Fields for code-like input keep them off: the terminal input line (TerminalInput.tsx, still asserted by scripts/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/spellCheck true (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.
  • Not checked on a real phone keyboard.

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).
@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b0065715-8802-4e27-b734-dfc6df27ef2a
📥 Commits

Reviewing files that changed from the base of the PR and between c47a60a and a00fc34.

📒 Files selected for processing: 3
  • changelog.d/chat-composer-autocorrect.md
  • src/components/Composer.tsx
  • src/components/PaneTerminal.tsx

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

📝 Summary

Summary by CodeRabbit

  • New Features
    • Chat messages and queued messages now support spell checking, autocorrect suggestions, and automatic sentence capitalization.
    • Terminal input continues to keep these features disabled.

The composer and queued-message textareas now enable browser spell checking, sentence capitalization, and autocorrection. The changelog records the change and states that terminal input keeps these features disabled.

Changes: Chat composer input

Layer / File(s) Summary
Enable keyboard text assistance
src/components/Composer.tsx, src/components/PaneTerminal.tsx, changelog.d/chat-composer-autocorrect.md
The composer and queued-message textareas enable spell checking, sentence capitalization, and autocorrection. The changelog records the change and states that terminal input keeps these features disabled.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Feature · Severity of issue fixed: Low

Suggested reviewers: yoonwoo-ha

Merge Risk: ⚪ Minimal · up to a00fc

Chat and queued-message text now get spelling, capitalization and autocorrect suggestions. Terminal and secret inputs are unchanged. No blocking risk remains.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Linked Issues check Warning Issue #753 requires an optional setting that is off by default. The setting must control autocorrect, suggestions, and sentence capitalization in the composer and queued-message textareas. The PR enab… Add the requested setting with a default-off value. Apply spellCheck={true}, autoCapitalize="sentences", and autoCorrect="on" to both textareas only when the setting is enabled. Keep the existing disabled behavior when it is disabled.…
Docstring Coverage Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. (1 skipped: 1… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main change: enabling phone keyboard autocorrect in the chat message box.
Description check Passed The description includes the required Change and Validation sections. It explains the affected fields, preserved terminal behavior, trade-offs, and reported test results. It also states that real phon…
Out of Scope Changes check Passed The reported changes are limited to the composer textarea, queued-message textarea, and a related changelog entry. These changes directly address the keyboard behavior described in issue #753. No unre…
Full details: Linked Issues check

Explanation

Issue #753 requires an optional setting that is off by default. The setting must control autocorrect, suggestions, and sentence capitalization in the composer and queued-message textareas. The PR enables these attributes unconditionally and adds no setting. The implementation therefore changes the requested default behavior and does not meet the linked issue requirement.

Resolution

Add the requested setting with a default-off value. Apply spellCheck={true}, autoCapitalize="sentences", and autoCorrect="on" to both textareas only when the setting is enabled. Keep the existing disabled behavior when it is disabled. Add automated coverage for both setting states.

Full details: Docstring Coverage

Explanation

Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devswha
devswha merged commit 7ca102a into main Oct 14, 2026
9 checks passed
@devswha
devswha deleted the fix/chat-composer-autocorrect branch October 14, 2026 17:58
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.

Setting to enable keyboard autocorrect and suggestions in the agent composer (iOS)

1 participant