Refactor shared TUI input routing (#42199)

## What changed

- Centralize app-level keymap actions in a shared dispatcher, including raw-output and external-editor chords.
- Move read-only transcript input handling into its own module while preserving prompt backtracking and older-history loading.
- Add regression coverage for transcript draft isolation, backtrack selection, global chords, and cached history when a thread is unavailable.

GitOrigin-RevId: a1465942d1ea6c57c2f54e5e313025aceb9f8510
This commit is contained in:
Benjamin Carlsson authored and copyberry committed 2026-09-02 04:06:44 +00:00
1 parent 798833fe97
commit 0b509e930e
8 files changed
+327 -145

No files matched your search

@@ -0,0 +1,15 @@
---
source: tui/src/app/tests/transcript_composer.rs
expression: text
---
/ T R A N S C R I P T / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
› first
› second
───────────────────────────────────────────────────────────────────────────────────────────── 100% ─
↑/↓ to scroll pgup/pgdn to page home/end to jump
q to quit esc to edit prev