Skip to content

[FEATURE]: Real-time spellcheck as you type #18159

@AaLuckett

Description

@AaLuckett

Problem

Currently, opencode doesn't have integrated spellcheck. Users who want to catch spelling mistakes while typing have no built-in option and must rely on external tools or copy/paste to external spellcheckers.

Proposed Solution

Add an integrated spellcheck feature that checks text in real-time as users type in the input box, similar to how many IDEs and chat applications handle spellcheck.

Use Case

  • Writers and developers who frequently type in opencode would benefit from immediate feedback on spelling errors
  • Reduces friction of having to copy text elsewhere to check spelling
  • Improves user experience for non-native English speakers

Suggested Implementation Options

  1. OS-native spellcheck integration - Use macOS/Windows spellcheck APIs
  2. Inline markers - Highlight misspelled words as they're typed
  3. Suggestions popup - Show spelling suggestions on right-click or hover
  4. Toggle option - Allow users to enable/disable via config

References

  • VS Code has spellcheck extensions
  • Many terminal emulators (iTerm2, Ghostty) can leverage OS spellcheck
  • LanguageTool offers grammar checking as well

  • I have searched for existing issues that address this problem

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions