You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deck's terminal view cannot send arrow keys, and text sent to a dead pane runs in bash #25
Deck sends text literally (send-keys -l) then presses Enter. On an unnumbered menu (the trust dialog) letters do nothing and Enter confirms the default "No, exit", killing the agent; the || claude fallback relaunches and the next send kills that too, leaving a bare shell where the next text would execute as a command.
Evidence
Seen in test: typing "yes" into the trust dialog killed the agent's pane twice in a row before falling through to a live shell.
Fix
Keep the text-send path; add a named-key path with a fixed allowlist (Up, Down, Enter, Escape, Tab, BTab): a helper in packages/deck/app/lib/tmux.server.ts with the same agent-roster and live-window gates as the existing text path; the send-key API route accepts { window, key } validated against the allowlist; a button row (Up, Down, Enter, Esc, Tab) under both terminal views (the tmux team tab and the per-thread tmux view), no auto-Enter. Refuse text sends when the pane matches the shell-prompt regex used elsewhere in the codebase.
Acceptance criteria
The trust dialog can be answered "Yes" from Deck alone.
Any key outside the allowlist returns 400.
A text send to a pane at a shell prompt is refused with a clear message.
Unit tests for arg building, allowlist rejection and the shell-prompt refusal.
Activity
feat(deck): pane navigation keys (#25) (#47)