Skip to content

[FEATURE]: Show worktree branch in vertical tab subtitles #50228

Open

Description

@PatrickRogg

Feature hasn't been suggested before

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

When Experimental → Show project name is enabled, vertical session tabs show the project name but do not distinguish sessions opened in different worktrees of that project.

Match the existing terminal UI behavior from sessionTabDetail by showing the current branch for linked worktrees:

  • Main checkout: Engineering
  • Linked worktree: Engineering ⎇ happy-river

The branch suffix should appear only when the session is in a linked worktree and its current branch differs from the default branch. If branch information is unavailable, keep showing only the project name.

This should reuse the existing experimental project-name setting. It should not affect horizontal tabs or users who have not enabled that setting.

Activity

  1. opencodejr commented on Oct 28, 2026

    @opencodejr

    Thanks for the suggestion, @PatrickRogg!

    To restate it: when vertical tabs show a project name, sessions in a linked worktree would also show their branch (e.g. Engineering ⎇ happy-river), the same way the terminal UI's sessionTabDetail does. This would only appear for opted-in users and wouldn't change horizontal tabs.

    One thing to know: the experimental "Show project names" setting this builds on was removed from the app shortly after you opened this issue, in #49373. Right now the project name only appears in the tab preview popover. So this would probably mean bringing back a project/branch subtitle for vertical tabs instead of extending the old setting. Maintainers will consider it.

    Related issues:

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