Commit 21e9deb
fix: resolve branch name display issues in session header
- Show folder name (last path segment) instead of full worktree path,
preventing the branch name from appearing twice when the path embeds it
- Fetch the live git branch from the worktree/repo path every 3s so the
displayed branch stays current when the user checks out a different branch
- Always show the current branch (including main) since it is now fetched
dynamically rather than relying on the static session.branchName field
Fixes #31
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent dfa7aa6 commit 21e9deb
1 file changed
Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
58 | 77 | | |
59 | 78 | | |
60 | 79 | | |
| |||
75 | 94 | | |
76 | 95 | | |
77 | 96 | | |
78 | | - | |
79 | | - | |
| 97 | + | |
| 98 | + | |
80 | 99 | | |
81 | 100 | | |
82 | 101 | | |
| |||
0 commit comments