Skip to content

feat: show worktree path and branch name in top bar#26

Merged
dakl merged 1 commit intomainfrom
top-bar
Mar 28, 2026
Merged

feat: show worktree path and branch name in top bar#26
dakl merged 1 commit intomainfrom
top-bar

Conversation

@dakl
Copy link
Copy Markdown
Owner

@dakl dakl commented Mar 28, 2026

Summary

Display the session's worktree path and branch name in the top bar, replacing the confusing repo folder name + main branch display.

What Changed

  • SessionView.tsx: Removed dynamic branch fetching from main repo; now reads worktreePath and branchName directly from SessionInfo
  • The top bar now shows the full worktree directory path and the session's actual branch name

Why

Previously, the top bar showed:

  • Repo folder name (last segment of repo path) - confusing when multiple worktrees exist
  • Main repo's checked-out branch - misleading since the session runs in a worktree, not the main repo

Now it correctly shows:

  • Full worktree path (e.g. /Users/daniel.klevebring/worktrees/codez--top-bar)
  • Session's branch name (e.g. top-bar)

Testing

Verified in dev app - top bar now displays correct context for sessions.

- Display full worktree path instead of just repo folder name
- Show session's branch name instead of main repo's branch
- Read branchName directly from SessionInfo instead of fetching dynamically

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@dakl dakl merged commit 72d728b into main Mar 28, 2026
3 checks passed
@dakl dakl deleted the top-bar branch March 28, 2026 17:01
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