Skip to content

Configured Ghostty move_tab shortcuts do not reorder tabs #733

Description

@davdroman

What happened?

Ghostty keybindings for move_tab:-1 and move_tab:1 have no effect in Supacode. The same Ghostty configuration works in Ghostty, and other configured Ghostty shortcuts work in Supacode.

The expected behavior is for the invoking tab to move left or right, wrapping at the ends according to the Ghostty move_tab contract.

Investigation found that GhosttySurfaceBridge dispatches GHOSTTY_ACTION_MOVE_TAB through onMoveTab, but Supacode never assigns that callback when wiring a terminal surface. The action therefore returns false without changing tab order.

Candidate fix branch: https://github.com/davdroman/supacode/tree/fix/ghostty-tab-move-shortcut

Steps to reproduce

  1. Configure Ghostty with keybind = ctrl+cmd+left_bracket=move_tab:-1 and keybind = ctrl+cmd+right_bracket=move_tab:1.
  2. Open at least two terminal tabs in Supacode.
  3. Focus a terminal and press Command-Control-[ or Command-Control-].
  4. Observe that the tabs remain in the same order.

Supacode version and build

0.10.6 (1783877721)

macOS version

macOS 26.5.1 (25F80)

System locale

en_US@rg=gbzzzz

Mac hardware

Apple M1 Pro

Relevant logs or screenshots

No logs are emitted when the action is dropped.

Are you planning to fix this yourself?

  • I intend to open a pull request once this is confirmed and marked ready.

Before submitting

  • I searched existing issues and this is not a duplicate.
  • I am on the latest available version of Supacode.
  • I understand pull requests are closed until the issue is marked ready.
  • I agree to follow this project's Code of Conduct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions