Skip to content

Right-click on empty tab bar area offers WebKit Reload, which kills all running shells #1242

Description

@leonvictorstaege

Right-clicking the empty area of the tab bar opens the native WebKit context menu, which has "Reload" in it. Clicking it reloads the webview, and src/main.tsx calls pty_close_all on load, so every running shell is killed.

Just lost 5 sessions to one misclick. No warning, no undo, no setting to turn it off.

Log:

[2026-08-31][11:40:33][terax_lib::modules::pty][INFO] pty_close_all: reaped 5 orphaned session(s)

TabBar.tsx attaches a ContextMenu to the tabs themselves, so the empty strip next to them falls through to WebKit.

Suggested fix: preventDefault on contextmenu for the tab bar container, or app-wide outside inputs and terminals.

Terax 0.8.6, macOS (Darwin 25.5.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions