[Feature Request / Accessibility] Native Redline Spellcheck & Dictionary Suggestions in Desktop Prompt Box

Summary

Please consider enabling native natural language spellcheck (red squiggly underlines) and right-click dictionary suggestions inside the primary Antigravity desktop prompt box.

For developers, healthcare/clinical students, and users with neurodivergent traits or spelling/orthographic challenges, the lack of immediate visual feedback on typos creates substantial cognitive fatigue and causes prompt execution errors that derail agentic workflows.


The Problem

  • When typing natural language prompts into the Antigravity desktop chat input, misspelled words receive zero visual feedback (no red squiggly underlines).
  • Right-clicking a typo does not display spelling correction suggestions or an “Add to Dictionary” option; only standard IDE commands (Cut, Copy, Paste) appear.
  • In web-based environments (Chrome/Firefox), native browser layout engines automatically handle redlining and corrections. In the Antigravity Electron client, however, the prompt box behaves like an unassisted code-editor canvas.

Architectural & Forensic Telemetry

Investigating the underlying Electron packaging and Chromium runtime reveals why standard system toggles and Chromium flags fail to activate spellcheck:

  1. Virtual DOM vs. Native Layout Engine (Monaco Isolation):

    • The chat input utilizes a Monaco/virtualized DOM architecture. Chromium’s native Hunspell spellchecker binds strictly to rendered <textarea>, <input>, or standard contenteditable nodes in the layout tree.
    • Because Monaco captures keystrokes via off-screen hidden input elements and draws text dynamically using virtualized spans/divs, Chromium’s native layout engine is blind to the user’s on-screen text coordinates. Native redlines cannot render without a registered Monaco marker provider.
  2. Windows 11 UI Automation (TIMA) Suppression:

    • On Windows 11, hardware keyboard suggestions and system spellcheck rely on the Text Input Management API (TIMA) hooking into accessible UI Automation (UIA) trees.
    • Electron’s off-screen Skia/DirectWrite surfaces for Monaco do not expose accessible natural-language attributes, causing Windows 11 to treat the prompt input as raw code and suppress text suggestions.
  3. IPC Interception of Context Menu:

    • In Electron, native dictionary suggestions require binding to webContents.on('context-menu') and appending params.dictionarySuggestions.
    • Antigravity routes right-click events through a custom IPC channel (window:show-context-menu), which drops Chromium’s dictionary suggestions completely.

Proposed Solutions for the Engineering Team

  1. Monaco Spellcheck Marker Provider:
    • Integrate a lightweight natural language spellcheck provider (or Hunspell WASM / typo-js bridge) hooked into Monaco’s monaco.editor.setModelMarkers() for the chat prompt box, utilizing the en-US.bdic already bundled in %APPDATA%\Antigravity\Dictionaries.
  2. Context Menu IPC Binding:
    • Pass params.dictionarySuggestions through the window:show-context-menu IPC handler so the native Antigravity popup menu displays spelling replacements when right-clicking flagged words.
  3. User-Facing Toggle:
    • Provide a simple toggle in Settings > General (e.g., "Enable Spellcheck in Prompt Input") allowing users to enable or disable natural language spellchecking independently of syntax linting.

Environment Telemetry

  • Client: Google Antigravity Desktop v2.26.0 (Packaged Electron Build)
  • OS: Windows 11 Pro / Canary (x64)
  • Hardware: AMD Ryzen 7 3700X / NVIDIA RTX 5050
      

1 Like