[PR #1339] [MERGED] Show current git branch in the bottom left #9901

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1339
Author: @andreagrandi
Created: 7/26/2025
Status: Merged
Merged: 7/29/2025
Merged by: @adamdotdevin

Base: devHead: show-git-branch


📝 Commits (8)

📊 Changes

6 files changed (+349 additions, -38 deletions)

View changed files

📝 packages/tui/cmd/opencode/main.go (+4 -1)
📝 packages/tui/go.mod (+1 -2)
📝 packages/tui/go.sum (+0 -2)
📝 packages/tui/internal/components/status/status.go (+235 -27)
packages/tui/internal/components/status/status_test.go (+100 -0)
📝 packages/tui/internal/tui/tui.go (+9 -6)

📄 Description

The display format is now:

opencode v0.3.77 ~/Projects/opencode 🌿 show-git-branch

where show-git-branch is the branch name.

Fixes https://github.com/sst/opencode/issues/1337

Screenshot 2025-07-29 at 08 22 57

🔄 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/1339 **Author:** [@andreagrandi](https://github.com/andreagrandi) **Created:** 7/26/2025 **Status:** ✅ Merged **Merged:** 7/29/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `show-git-branch` --- ### 📝 Commits (8) - [`f1aa9a2`](https://github.com/anomalyco/opencode/commit/f1aa9a26c0e82cf3dd93a02381c0bbbb75d3f0f3) Show current git branch in the bottom left - [`d271d34`](https://github.com/anomalyco/opencode/commit/d271d343ff0a16cd1541579e41ed7858ae1b1ba4) Use file system notifier to watch git/HEAD and update value - [`c0efbf9`](https://github.com/anomalyco/opencode/commit/c0efbf992f4be15e092f0e788cbfdb2ea69bebfd) Use fsnotify - [`0c03832`](https://github.com/anomalyco/opencode/commit/0c03832b75fbc92c8dc31a743f41d8ec7dd14d14) Add missing file - [`ce94601`](https://github.com/anomalyco/opencode/commit/ce946017e0423e8681710c0c913ca3a2ceec6e95) Some fixes - [`75ecbce`](https://github.com/anomalyco/opencode/commit/75ecbce82c0a498ece2e3a2f8fd7dfb90d7892c2) Use single watcher - [`2949252`](https://github.com/anomalyco/opencode/commit/29492524a6539abae9cb5c46ced92bc4397dd964) chore: cleanup - [`c2f6307`](https://github.com/anomalyco/opencode/commit/c2f6307fa3e382c637ffc60d42c3e72904e4a8e2) fix: make status bar responsive ### 📊 Changes **6 files changed** (+349 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/cmd/opencode/main.go` (+4 -1) 📝 `packages/tui/go.mod` (+1 -2) 📝 `packages/tui/go.sum` (+0 -2) 📝 `packages/tui/internal/components/status/status.go` (+235 -27) ➕ `packages/tui/internal/components/status/status_test.go` (+100 -0) 📝 `packages/tui/internal/tui/tui.go` (+9 -6) </details> ### 📄 Description The display format is now: `opencode v0.3.77 ~/Projects/opencode 🌿 show-git-branch` where `show-git-branch` is the branch name. Fixes https://github.com/sst/opencode/issues/1337 <img width="1917" height="932" alt="Screenshot 2025-07-29 at 08 22 57" src="https://github.com/user-attachments/assets/eab57fdf-6beb-4040-b2eb-ded78c45a6bc" /> --- <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:21 -05:00
yindo closed this issue 2026-02-16 18:14:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9901