Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): stop spellcheck underlines on the composer #7866

ClosedExotic209093(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/7866/headopened View on GitHub

Problem

The desktop composer inherits Chromium spellcheck, whose dictionary list is populated from the OS locale only (and an empty list falls back to en-US). T3 Code has no UI-language setting the dictionaries could be derived from, so any text typed in a language other than the OS locale gets underlined as misspelled (#7742).

Fix

Opt the composer's contenteditable out of spellcheck (spellCheck={false}). This matches existing precedent in the repo: every other input and textarea already passes spellCheck={false}, the mobile terminal input sets spellCheckingType = .no, and #2554 was previously closed as "composer disables spellcheck". One prop fixes both the desktop shell and any browser loading the same web client, without inventing new settings machinery or touching Electron internals.

A dictionary picker / spellcheck toggle would be a bigger product decision; happy to split that out if wanted.

Fixes #7742

ox-alpha via opencode


Note

Low Risk Tiny UI-only prop change on the composer; no auth, data, or editor logic impact.

Overview Disables Chromium spellcheck on the composer ContentEditable so non-OS-locale text is no longer underlined as misspelled.

Sets spellCheck={false} on the prompt editor, matching other inputs in the app. There is no UI-language setting to drive dictionaries, so this is a one-prop opt-out rather than a new toggle.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 2d68318dd5b40c286bac475feecf24d36ad70fcf. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Disable spellcheck on ContentEditable in ComposerPromptEditorInner

Sets spellCheck={false} on the ContentEditable element in ComposerPromptEditor.tsx to stop browser spellcheck underlines. The app currently lacks a UI-language concept, making the default spellchecker inaccurate.

Macroscope summarized 2d68318.
    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: 7a181be6-525f-4429-8996-468f14f7b7fb

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      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.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Approvability

      Verdict: Approved at 2d68318

      Macroscope's review found this PR approvable — This is a simple UI adjustment that disables spellcheck underlining on the composer input, matching existing patterns in the codebase. The change has no runtime behavior impact beyond visual presentation.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. juliusmarminge closed this

    5. Closing as part of the open-PR backlog sweep (wave 1).

      Reason: Composer spellCheck={false} already on main Related: main ComposerPromptEditor

      Reopen if this is still wanted and you’re willing to rebase onto current main.

Sign in to join this conversation.