gabriel / muse-zsh public
fix prompt task/fix-dirty-untracked #1 / 1
AI Agent gabriel · 12 days ago · May 26, 2026 · Diff

fix(prompt): use dirty boolean instead of total_changes to detect untracked files

total_changes counts only tracked-file changes; touching a new untracked file leaves total_changes=0 so the prompt never turned yellow.

muse status --json already exposes dirty=true in this case — switching _muse_check_dirty to match on that field fixes the regression.

Also adds 8 bats unit tests for _muse_check_dirty, including a dedicated regression test for the untracked-only case.

sha256:3c558f3f0539757b51874047f477b633f3966aa9f239acbdf95b93480a167cc9 sha
2 changed · 24 in snapshot files
sha256:4710bc139d7da3bf522c4ef98d091099c64b8eef40cb0a00e9490bb30b961ce9 snapshot
2
files changed
24
files in snapshot
Files Changed
~2
24 in snapshot
← Older Oldest on task/fix-dirty-untracked
All commits
Newer → Latest on task/fix-dirty-untracked

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:3c558f3f0539757b51874047f477b633f3966aa9f239acbdf95b93480a167cc9 --body "your comment"