Files
openhuman/src
8858b3cc59 fix(autocomplete): guard Ctrl+Tab and drop low-quality suggestions (#753)
Three fixes for the system-wide autocomplete accept-on-Tab behaviour:

1. Any-modifier guard: try_accept_via_tab now bails when Shift/Ctrl/Option/Cmd
   is held, so Ctrl+Tab (app-switch), Shift+Tab (outdent), Cmd+Tab and
   Option+Tab no longer trigger accept. Implemented via CGEventSourceFlagsState
   probed through the existing Input Monitoring cache.
2. Quality gate: is_low_quality_suggestion rejects <2-char, whitespace/punct-only
   and tail-echo suggestions before they reach the overlay.
3. Clean edge-state reset when modifier is held so a clean Tab press afterwards
   still accepts.

Tests: 9 unit tests pass, cargo check clean.

Co-authored-by: Jwalin Shah <jshah1331@gmail.com>
Co-authored-by: WOZCODE <contact@withwoz.com>
2026-04-21 22:40:24 -07:00
..
2026-04-05 22:14:29 -07:00