Skip to content

fix: Show both local and remote repo name when they differ#1547

Open
charlesvien wants to merge 2 commits into04-07-queue_messages_during_conversation_compactionfrom
04-07-show_both_local_and_remote_repo_name_when_they_differ
Open

fix: Show both local and remote repo name when they differ#1547
charlesvien wants to merge 2 commits into04-07-queue_messages_during_conversation_compactionfrom
04-07-show_both_local_and_remote_repo_name_when_they_differ

Conversation

@charlesvien
Copy link
Copy Markdown
Member

@charlesvien charlesvien commented Apr 8, 2026

Problem

Folder display names only used path.basename(), so when a local directory name differed from the GitHub repo name, the dropdown showed one name and the sidebar showed another.

Closes #1283

Changes

  1. Add getDisplayName that appends remote repo name when it differs from the local dir (e.g. ph-tour-demo (hogotchi))
  2. Extract shared normalizeRepoKey helper to strip .git suffixes consistently
  3. Use normalizeRepoKey in sidebar folder matching to fix .git suffix mismatches
  4. Use folder.name instead of group.name in sidebar labels for consistency
  5. Add four unit tests covering suffix stripping, mismatch, match and case-insensitive match

How did you test this?

Manually

@charlesvien charlesvien changed the title Show both local and remote repo name when they differ fix: Show both local and remote repo name when they differ Apr 8, 2026
@charlesvien charlesvien marked this pull request as ready for review April 8, 2026 04:18
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