pi-mono/packages
Roman Galeev 9d007fe642 fix(tui): re-query autocomplete picker on cursor movement
moveCursor() repositioned the cursor but never called updateAutocomplete()
or cancelAutocomplete(), unlike insertCharacter()/handleBackspace(). So an
open autocomplete picker went stale when the cursor moved: e.g. typing
`/cmd ` (argument menu open) then arrowing Left back into the command name
left the argument list showing against a `/cmd` prefix, and a Tab there
concatenated the stale suggestion onto the partial command name
(e.g. `/swarepo`).

Sync the picker at the end of moveCursor(): when a picker is open, re-query
via updateAutocomplete(), which refreshes the list for the new cursor
position or closes it when nothing matches.

Adds a regression test in test/editor.test.ts (verified to fail without the
fix). Fixes earendil-works/pi#5496.
2026-06-08 10:57:50 +02:00
..
agent fix(agent): neutralize compaction summarization prompt 2026-06-07 11:19:10 +02:00
ai fix(ai): honor OpenAI Responses developer role compat 2026-06-07 11:07:36 +02:00
coding-agent fix(tui,coding-agent): make keyboard protocol fallback response-driven 2026-06-07 17:04:19 +02:00
tui fix(tui): re-query autocomplete picker on cursor movement 2026-06-08 10:57:50 +02:00