Skip to content

Show working directory in chat header#97

Open
mcintyre94 wants to merge 1 commit intomainfrom
add-working-directory-text-32015c2d
Open

Show working directory in chat header#97
mcintyre94 wants to merge 1 commit intomainfrom
add-working-directory-text-32015c2d

Conversation

@mcintyre94
Copy link
Owner

Summary

  • Adds a small working directory label in the chat header, between the tab picker and the status bar
  • Worktree paths (/home/sprite/.wisp/worktrees/{repo}/{branch}) are formatted as repo:branch for brevity
  • Regular paths (e.g. /home/sprite/project) display as-is
  • Single line with truncation — long branch names cut off naturally
  • Transparent background, consistent with the adjacent ChatStatusBar

Test plan

  • Open a regular chat — label shows /home/sprite/project (or whatever the working directory is)
  • Open a worktree chat — label shows repo:branch format (e.g. explorer:check-git-repo-status-d2def7d6)
  • Verify long branch names truncate cleanly without affecting layout
  • Check on iPhone and iPad that the label sits correctly between tab picker and status bar

🤖 Generated with Claude Code

Shows the current working directory below the tab picker. Worktree paths
(/home/sprite/.wisp/worktrees/{repo}/{branch}) are formatted as repo:branch
for brevity. Truncates with lineLimit(1) on long branch names.

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

claude bot commented Mar 15, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

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