Skip to content

feat(terminal): ✨ focus terminal when tabs are activated - #8

Open
lviobio wants to merge 1 commit into
lonetis:mainfrom
lviobio:dev/terminal-auto-focus
Open

lviobio wants to merge 1 commit into
lonetis:mainfrom
lviobio:dev/terminal-auto-focus

Conversation

@lviobio

@lviobio lviobio commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Activating a terminal pane or tmux window now focuses xterm so commands can be typed immediately. This covers initial connection, returning to existing tabs, repeated activation, and keyboard activation or creation of a tmux window in another split group.

Visible terminals connect and resize independently of group focus. Pending focus is canceled when a tab loses activation and respects another control focused during connection. Tmux rename and creation inputs keep focus when their split group is selected.

Validation:

  • vue-tsc --noEmit -p .nuxt/tsconfig.json passed.
  • All 10 Playwright tests in tests/ui/terminal-pane.spec.ts passed, including a regression test that activates and creates tmux windows with the keyboard in another split group and verifies command output.
  • Additional browser checks passed for split groups, repeated activation, and preserving rename input focus during polling and terminal reconnection.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant