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:
-
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 standardcontenteditablenodes 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.
- The chat input utilizes a Monaco/virtualized DOM architecture. Chromium’s native Hunspell spellchecker binds strictly to rendered
-
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.
-
IPC Interception of Context Menu:
- In Electron, native dictionary suggestions require binding to
webContents.on('context-menu')and appendingparams.dictionarySuggestions. - Antigravity routes right-click events through a custom IPC channel (
window:show-context-menu), which drops Chromium’s dictionary suggestions completely.
- In Electron, native dictionary suggestions require binding to
Proposed Solutions for the Engineering Team
- Monaco Spellcheck Marker Provider:
- Integrate a lightweight natural language spellcheck provider (or Hunspell WASM /
typo-jsbridge) hooked into Monaco’smonaco.editor.setModelMarkers()for the chat prompt box, utilizing theen-US.bdicalready bundled in%APPDATA%\Antigravity\Dictionaries.
- Integrate a lightweight natural language spellcheck provider (or Hunspell WASM /
- Context Menu IPC Binding:
- Pass
params.dictionarySuggestionsthrough thewindow:show-context-menuIPC handler so the native Antigravity popup menu displays spelling replacements when right-clicking flagged words.
- Pass
- 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.
- Provide a simple toggle in Settings > General (e.g.,
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