opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Fix(TUI): Reliably Update Branch Tooltip on Git Checkout

Open spoons-and-mirrors opened this issue 5 months ago • 0 comments

Issue

The git branch status is not updating reliably (if at all) once the app has started)

image

Summary

  • Fixes TUI branch tooltip to update immediately after git branch changes
  • Watches the entire .git directory for Write/Create/Rename events, ensuring atomic HEAD/ref updates are detected across platforms.
  • Removes previous debounce logic that caused stale branch display.
  • Adds a short delay and drains event bursts before reading the branch, eliminating the "one behind" lag.

spoons-and-mirrors avatar Aug 10 '25 12:08 spoons-and-mirrors