8000 Deck's terminal view cannot send arrow keys, and text sent to a dead pane runs in bash · Issue #25 · simon-inkie/inkie-deck · GitHub
[go: up one dir, main page]

Skip to content

Deck's terminal view cannot send arrow keys, and text sent to a dead pane runs in bash #25

Closed

Description

@simon-inkie

Problem

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.

From the 2026-09-27 Windows/WSL install test.

7C92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0