Skip to content

🐛 fix(prompt): always refresh git info on every prompt - #62

Merged
ladislas merged 1 commit into
mainfrom
ladislas/bugfix/prompt-git-info-always-refresh
May 4, 2026
Merged

🐛 fix(prompt): always refresh git info on every prompt#62
ladislas merged 1 commit into
mainfrom
ladislas/bugfix/prompt-git-info-always-refresh

Conversation

@ladislas

@ladislas ladislas commented May 4, 2026

Copy link
Copy Markdown
Owner

Remove the lazy-refresh optimization that cached git state until a
command ran or the directory changed. The caching caused stale prompt
info in edge cases (e.g. external commits, empty-line Enter presses).

git-info already returns early outside git repos, so the cost is only
paid inside a repo where it matters.

Remove the lazy-refresh optimization that cached git state until a
command ran or the directory changed. The caching caused stale prompt
info in edge cases (e.g. external commits, empty-line Enter presses).

git-info already returns early outside git repos, so the cost is only
paid inside a repo where it matters.
@ladislas ladislas self-assigned this May 4, 2026
@ladislas
ladislas merged commit a1175de into main May 4, 2026
3 checks passed
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