mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 18:03:50 +00:00
feat(coding-agent): watch .git/HEAD for branch changes (#79)
Auto-updates footer when git branch changes externally (e.g., git checkout in another terminal)
This commit is contained in:
parent
532bb69ed6
commit
832273d4d6
2 changed files with 52 additions and 1 deletions
|
|
@ -464,6 +464,11 @@ export class TuiRenderer {
|
|||
this.updateEditorBorderColor();
|
||||
this.ui.requestRender();
|
||||
});
|
||||
|
||||
// Set up git branch watcher
|
||||
this.footer.watchBranch(() => {
|
||||
this.ui.requestRender();
|
||||
});
|
||||
}
|
||||
|
||||
private subscribeToAgent(): void {
|
||||
|
|
@ -1523,6 +1528,7 @@ export class TuiRenderer {
|
|||
this.loadingAnimation.stop();
|
||||
this.loadingAnimation = null;
|
||||
}
|
||||
this.footer.dispose();
|
||||
if (this.isInitialized) {
|
||||
this.ui.stop();
|
||||
this.isInitialized = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue