fix(frontend): turn off autocorrect, capitalization and spellcheck in the composer

Prompts often mention file names, commands and identifiers, which browser text assistance rewrites. Disable autocorrect, auto-capitalization and spellcheck in every composer mode, not only bash mode.
This commit is contained in:
Chris Scott committed 2026-11-06 10:19:30 -05:00
1 parent a1c2546219
commit bb196cb118
2 files changed
+6 -5

No files matched your search

@@ -643,8 +643,9 @@ describe('PromptInput command submission', () => {
const input = await screen.findByPlaceholderText('Send a message...')
expect(input).toHaveAttribute('autocomplete', 'off')
expect(input).toHaveAttribute('autocorrect', 'on')
expect(input).toHaveAttribute('spellcheck', 'true')
expect(input).toHaveAttribute('autocorrect', 'off')
expect(input).toHaveAttribute('autocapitalize', 'off')
expect(input).toHaveAttribute('spellcheck', 'false')
fireEvent.focus(input)
fireEvent.change(input, { target: { value: 'text' } })
expect(screen.getByRole('button', { name: 'bash !' })).toBeDisabled()