Skip to content

fix(coding-agent): refresh branch in footer on WSL /mnt repos#5264

Merged
badlogic merged 1 commit into
earendil-works:mainfrom
psoukie:fix/wsl-mntc-footer-branch-refresh
Jun 1, 2026
Merged

fix(coding-agent): refresh branch in footer on WSL /mnt repos#5264
badlogic merged 1 commit into
earendil-works:mainfrom
psoukie:fix/wsl-mntc-footer-branch-refresh

Conversation

@psoukie

@psoukie psoukie commented Jun 1, 2026

Copy link
Copy Markdown

References issue: #5052

When Pi runs in WSL from a Windows-backed repo path such as /mnt/c/... (e.g. for projects requiring execution on Windows paths), the footer branch label does not change after !git switch ... or git switch ... outside of Pi.

This change adds a narrowly scoped polling fallback for .git/HEAD when Pi is running in WSL and the repo root is under /mnt/<drive>/...

I tested the fix in WSL against a repo under /mnt/c/... and the footer branch label updates correctly after switching branches.

Validation: npm run check passes, and I ran ./test.sh. (It fails on an unrelated existing clipboard-image.test.ts.)

@badlogic badlogic added the inprogress Issue is being worked on label Jun 1, 2026
@badlogic badlogic merged commit 335e09b into earendil-works:main Jun 1, 2026
2 checks passed
@badlogic

badlogic commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

cheers!

@psoukie

psoukie commented Jun 1, 2026

Copy link
Copy Markdown
Author

Thank you for creating such a fantastic tool. I use Pi every day for both personal projects and at work. Best of luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inprogress Issue is being worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants