Skip to content

new tabs in new panes disappear when switching back to older panes and working #595

Description

@iamjakeirl

issue: when creating a tab in a new pane (and even occasionally older panes, but more often the newest pane), then giving an agent some task and tabbing back into other panes, the newly spawned tab disappears from the pane, leaving the pane blank. Sometimes multiple disappear at once. The agent process is not killed, and you can't /resume tabs that have disappeared from a pane because their agent is still alive, so you have to manually kill the process which is kind of a drag.

I havent been able to reproduce this bug on demand, but its definitely an issue with the tab disappearing from the pane rather than the terminal or its process, and it happens fairly frequently.

No workaround has been discovered yet.

Alright I figured this one out.

When opening a newly added repository, Pane displays a default terminal and Git panel. If the user
closes that terminal, collapses the Git panel, and launches Codex or Claude, switching away and
returning makes the agent’s top tab disappear. The agent remains accessible in the bottom terminal
dock, which is collapsed.

The cause is that Pane identifies the pinned terminal as the first remaining panel of type terminal.
After the original shell is deleted, the agent terminal inherits that role. Layout restoration
excludes it from the top tabs and places it in the bottom dock.

The intended fix is to create the default shell directly in the bottom dock, initially expanded, with
the top tab area empty. Codex and Claude should always open and remain as top tabs. Dock selection
must distinguish the default shell from agent terminals so deleting the shell never causes an agent to
inherit its dock position.

Validation: open a new repository, delete its default shell, launch Codex or Claude, switch away and
return. The same agent must remain visible as a top tab, with its terminal state preserved.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions