mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 02:04:05 +00:00
feat: show git branch in footer
- Footer now displays active git branch after directory path (e.g., ~/project (main)) - Branch detected by reading .git/HEAD directly (fast, synchronous) - Cache refreshed after each assistant message to detect branch changes - Handles normal branches, detached HEAD, and non-git repos Closes #55
This commit is contained in:
parent
f95f41b1c4
commit
318254bff4
3 changed files with 44 additions and 1 deletions
|
|
@ -589,6 +589,9 @@ export class TuiRenderer {
|
|||
|
||||
// Keep the streaming component - it's now the final assistant message
|
||||
this.streamingComponent = null;
|
||||
|
||||
// Invalidate footer cache to refresh git branch (in case agent executed git commands)
|
||||
this.footer.invalidate();
|
||||
}
|
||||
this.ui.requestRender();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue