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

address review: update banner description/count on unblock, check per-target delete status before updating UI

Adam Eivyd1d792e4a270
diff --git a/client/src/components/apps/tabs/GitTab.jsx b/client/src/components/apps/tabs/GitTab.jsx
index 1d34c2c94b..df2cc3524e 100644
--- a/client/src/components/apps/tabs/GitTab.jsx
+++ b/client/src/components/apps/tabs/GitTab.jsx
@@ -261,20 +261,23 @@ export default function GitTab({ appId, appName, repoPath }) {
});
setDeleting(null);
if (result) {
- const parts = Object.entries(result.results || {}).map(([k, v]) => `${k}: ${v}`);
+ const results = result.results || {};
+ const parts = Object.entries(results).map(([k, v]) => `${k}: ${v}`);
toast.success(`Branch ${branchName} — ${parts.join(', ')}`);
- if (local) {
+ const localDeleted = local && results.local === 'deleted';
+ const remoteDeleted = remote && results.remote === 'deleted';
+ if (localDeleted) {
setBranches(prev => prev.filter(b => b.name !== branchName));
}
- if (remote) {
+ if (remoteDeleted) {
setRemoteBranches(prev => prev.filter(b => b.name !== branchName));
}
- if (local && !remote) {
+ if (localDeleted && !remoteDeleted) {
setRemoteBranches(prev => prev.map(b =>
b.name === branchName ? { ...b, hasLocal: false } : b
));
}
- if (remote && !local) {
+ if (remoteDeleted && !localDeleted) {
setBranches(prev => prev.map(b =>
b.name === branchName
? { ...b, tracking: null, ahead: 0, behind: 0, hasRemote: false }
diff --git a/client/src/components/cos/ActionableInsightsBanner.jsx b/client/src/components/cos/ActionableInsightsBanner.jsx
index 99e84bd803..71cc0869b4 100644
--- a/client/src/components/cos/ActionableInsightsBanner.jsx
+++ b/client/src/components/cos/ActionableInsightsBanner.jsx
@@ -109,7 +109,14 @@ export default function ActionableInsightsBanner({ onTaskUnblocked }) {
if (insight.type !== 'blocked' || !insight.tasks) return insight;
const remaining = insight.tasks.filter(t => t.id !== taskId);
if (remaining.length === 0) return null;
- return { ...insight, tasks: remaining, title: `${remaining.length} blocked task${remaining.length !== 1 ? 's' : ''} need attention` };
+ const firstTask = remaining[0];
+ return {
+ ...insight,
+ tasks: remaining,
+ count: remaining.length,
+ title: `${remaining.length} blocked task${remaining.length !== 1 ? 's' : ''} need attention`,
+ description: firstTask?.description || insight.description
+ };
}).filter(Boolean)
};
});