2 Commits

Author SHA1 Message Date
nova 642773765d Improve AI correction: loading indicator, field safety, memory, dismiss
- Show "…" placeholder immediately after debounce so users know the AI
  is working (KIND_AI_LOADING_FLAG = 0x20000)
- Skip AI correction in password, URL, and e-mail fields
  (mIsGeneralTextInput + mIsPasswordField guards in InputLogic)
- Protect suggestion strip from being cleared while AI suggestion is
  visible (mAiSuggestionVisible flag + clearAiSuggestionAndSetNeutral)
- Release Gemma 4 engine on TRIM_MEMORY_RUNNING_CRITICAL
- Long-press on AI suggestion dismisses it (dismissAiSuggestion)
- Warm-up model at IME startup for instant first correction

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 19:19:22 +02:00
nova aa8fff2c0d Initial commit: HeliBoard + Gemma 4 on-device AI correction
Integrates LiteRT-LM (Google) with Gemma 4 E2B-it for on-device
spell/grammar correction in HeliBoard. After sentence-ending punctuation,
the model checks the sentence and shows a correction in the suggestion strip.
Tapping it replaces the original text — fully offline, no cloud API.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 14:57:10 +02:00