singularity-forge/packages
Tom Boucher f29d54b7e0 fix(tui): prevent freeze when using @ file finder (#1832)
The @ file autocomplete triggered a synchronous native fuzzyFind call
that walks the entire directory tree. On large repos this blocked the
Node.js event loop and froze the TUI.

Three changes fix this:

1. Skip the fuzzy search when the query is empty (bare "@" with nothing
   typed yet) — there is no point walking the full tree with no query.

2. Debounce the initial "@" keystroke instead of firing the search
   synchronously, so rapid typing cancels pending walks and the search
   only runs once the user pauses.

3. Deduplicate consecutive lookups using lastAutocompleteLookupPrefix
   (previously declared but unused) to avoid redundant synchronous
   searches when the prefix hasn't changed.

Fixes #1824

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 12:55:12 -06:00
..
native feat(web): browser-based web interface (#1717) 2026-03-21 12:16:54 -06:00
pi-agent-core fix: preserve user messages during abort with origin-aware queue clearing (#1439) (#1521) 2026-03-19 18:05:04 -06:00
pi-ai feat(web): browser-based web interface (#1717) 2026-03-21 12:16:54 -06:00
pi-coding-agent feat(web): browser-based web interface (#1717) 2026-03-21 12:16:54 -06:00
pi-tui fix(tui): prevent freeze when using @ file finder (#1832) 2026-03-21 12:55:12 -06:00