fix(tui): add on_input_changed handler for live overlay updates #10918

Merged
HAL9000 merged 2 commits from bugfix/m8-tui-on-input-changed into master 2026-06-10 14:35:42 +00:00

2 Commits

Author SHA1 Message Date
HAL9000 eedd0b7a4d fix(tui): correct on_input_changed BDD step assertions and empty-text step
CI / push-validation (pull_request) Successful in 33s
CI / lint (pull_request) Successful in 41s
CI / build (pull_request) Successful in 42s
CI / helm (pull_request) Successful in 43s
CI / typecheck (pull_request) Successful in 59s
CI / quality (pull_request) Successful in 1m1s
CI / security (pull_request) Successful in 1m14s
CI / unit_tests (pull_request) Successful in 4m42s
CI / docker (pull_request) Successful in 1m50s
CI / integration_tests (pull_request) Successful in 9m32s
CI / coverage (pull_request) Successful in 11m47s
CI / status-check (pull_request) Successful in 3s
- step_ref_picker_reset: fix assertion to check _text == "" (set_suggestions
  with empty query calls hide(), not show "(no matches)")
- step_slash_overlay_all_commands: fix assertion to check overlay is hidden
  (_visible=False, _text="") after reset — set_commands with empty query
  calls hide(), it does not display all commands
- Add @when("I trigger on_input_changed with empty text") step so that the
  empty-string scenario is matched — parse's {text} placeholder requires
  one or more chars and would not match "" causing an "errored" scenario
- Feature: update scenario 4 (empty at-sign) to use step_ref_picker_reset
  since "send @" yields empty query which hides the picker
- Feature: update scenario 5 to use the new empty-text step

ISSUES CLOSED: #4738
2026-06-10 10:16:30 -04:00
HAL9000 e0e68fae60 fix(tui): add on_input_changed handler for live overlay updates
Add the missing on_input_changed event handler to the TUI app so that
both the slash command overlay and the reference picker overlay update
in real time as the user types, rather than only on submit.

- When the user types / the slash overlay filters commands by the query
  after the slash character
- When the user types @ the reference picker updates with matching
  suggestions based on the token after the last @ sign
- Otherwise both overlays are reset to their default (unfiltered) state

Also adds BDD scenarios and step definitions covering all branches of
the new handler.

ISSUES CLOSED: #4738
2026-06-10 10:16:30 -04:00