Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(git): reactive branch delete instead of full page reload

Adam Eivyc032fb0be074
diff --git a/client/src/components/apps/tabs/GitTab.jsx b/client/src/components/apps/tabs/GitTab.jsx
index cbe1d0f68e..9dbfc49692 100644
--- a/client/src/components/apps/tabs/GitTab.jsx
+++ b/client/src/components/apps/tabs/GitTab.jsx
@@ -263,7 +263,17 @@ export default function GitTab({ appId, appName, repoPath }) {
if (result) {
const parts = Object.entries(result.results || {}).map(([k, v]) => `${k}: ${v}`);
toast.success(`Branch ${branchName} — ${parts.join(', ')}`);
- await Promise.all([loadGitInfo(), loadRemoteBranches()]);
+ if (local) {
+ setBranches(prev => prev.filter(b => b.name !== branchName));
+ }
+ if (remote) {
+ setRemoteBranches(prev => prev.filter(b => b.name !== branchName));
+ }
+ if (local && !remote) {
+ setRemoteBranches(prev => prev.map(b =>
+ b.name === branchName ? { ...b, hasLocal: false } : b
+ ));
+ }
}
};