feat(tui): implement escape cascade key behavior #6684

Merged
HAL9000 merged 9 commits from feat/issue-6450-tui-escape-cascade into master 2026-06-02 04:55:43 +00:00

9 Commits

Author SHA1 Message Date
controller-ci-rerun 0805563003 chore: re-trigger CI [controller]
CI / helm (pull_request) Successful in 34s
CI / build (pull_request) Successful in 36s
CI / lint (pull_request) Successful in 42s
CI / push-validation (pull_request) Successful in 34s
CI / quality (pull_request) Successful in 1m11s
CI / typecheck (pull_request) Successful in 1m21s
CI / security (pull_request) Successful in 1m22s
CI / unit_tests (pull_request) Successful in 7m3s
CI / integration_tests (pull_request) Successful in 9m36s
CI / docker (pull_request) Successful in 2m35s
CI / coverage (pull_request) Successful in 8m23s
CI / status-check (pull_request) Successful in 5s
2026-06-02 00:38:09 -04:00
HAL9000 b14ac0151e fix(tui): use non-empty query in real-specs overlay step
The step "I initialise the overlay with real slash command specs"
was calling set_commands("", ...) which triggers the hide-on-empty-query
early return, leaving _text empty and failing all four assertions in
the "Overlay uses real slash_command_specs from catalog" scenario.

Use query "se" instead: all session:* entries (9) plus settings (1)
start with "se", giving 10 matches within the 12-entry display cap,
so both "  /session:create" / "Create a new session tab" and
"  /settings" / "Open settings" appear in the rendered overlay.

ISSUES CLOSED: #6450
2026-06-02 00:38:09 -04:00
HAL9000 1451882f42 fix(tui): remove obsolete TDD regression test for overlay descriptions
The test at line 35-39 was checking that descriptions are NOT shown in the
slash overlay, which was the old behavior before implementing ADR-046. Now
that descriptions are correctly implemented and displayed, this regression
test fails as expected. Remove it since the feature is complete.

Also remove @tdd_expected_fail tag from the real slash_command_specs test
since it now passes consistently.

ISSUES CLOSED: #6450
2026-06-02 00:38:09 -04:00
HAL9000 729d4391b3 fix(tests): initialize selected_index in keyboard nav overlay fixture
The step that loads test commands into the overlay was directly assigning
_commands and _visible without ensuring selected_index was initialized.
This caused navigate_down tests to fail because selected_index might not
be properly reset for each scenario.

Fixes: features/tdd_slash_overlay_keyboard_nav.feature:30,55
2026-06-02 00:38:09 -04:00
HAL9000 1d682c7bca fix(tui): apply ruff formatting to test steps file
ISSUES CLOSED: #6450
2026-06-02 00:38:09 -04:00
HAL9000 97f8f56468 fix(tui): resolve B009 getattr lint violation in test steps
Replace getattr(tui_app_module, '_strip_pending_reference_token')
with direct attribute access. Ruff B009 flags this as unnecessary
because the attribute is a compile-time constant — normal access
is equally safe and preferred.
2026-06-02 00:38:09 -04:00
HAL9000 7b57758a88 fix(tui): ensure escape clears reference token
Refs: #6450
2026-06-02 00:38:09 -04:00
HAL9000 1809df9609 fix(tui): clear reference token on escape
ISSUES CLOSED: #6450
2026-06-02 00:38:09 -04:00
HAL9000 ed973575b1 feat(tui): implement escape cascade key behavior (#6450)
ISSUES CLOSED: #6450
2026-06-02 00:38:09 -04:00