[PR #1779] [CLOSED] Fix(TUI): Reliably Update Branch Tooltip on Git Checkout #10059

Closed
opened 2026-02-16 18:14:38 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1779
Author: @spoons-and-mirrors
Created: 8/10/2025
Status: Closed

Base: devHead: fix/git-branch-status


📝 Commits (1)

  • d99aabf fix(tui): reliably update branch tooltip on git checkout

📊 Changes

1 file changed (+23 additions, -15 deletions)

View changed files

📝 packages/tui/internal/components/status/status.go (+23 -15)

📄 Description

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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1779 **Author:** [@spoons-and-mirrors](https://github.com/spoons-and-mirrors) **Created:** 8/10/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/git-branch-status` --- ### 📝 Commits (1) - [`d99aabf`](https://github.com/anomalyco/opencode/commit/d99aabf4a957734a8705e59940742e0adcfe5fe9) fix(tui): reliably update branch tooltip on git checkout ### 📊 Changes **1 file changed** (+23 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/internal/components/status/status.go` (+23 -15) </details> ### 📄 Description ## Issue The git branch status is not updating reliably (if at all) once the app has started) <img width="434" height="32" alt="image" src="https://github.com/user-attachments/assets/7ae6e335-fed7-48b5-a2b0-f6a97cda06ff" /> ## 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:38 -05:00
yindo closed this issue 2026-02-16 18:14:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10059