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: clarify empty branch reconciliation inventories

[._.]/ Adam Eivy78966ce2a2a2
diff --git a/client/src/components/cos/tabs/schedule/AppTaskCard.test.jsx b/client/src/components/cos/tabs/schedule/AppTaskCard.test.jsx
index 8eb73f9fa2..58fb69f8ea 100644
--- a/client/src/components/cos/tabs/schedule/AppTaskCard.test.jsx
+++ b/client/src/components/cos/tabs/schedule/AppTaskCard.test.jsx
@@ -72,11 +72,30 @@ describe('AppTaskCard', () => {
renderCard({ reconcileOutcomes: {
example: { status: 'incomplete', remaining: null, observedAt: null },
empty: { status: 'drained', remaining: [], observedAt: '2026-10-01T00:00:00Z' },
+ unobserved: { status: 'incomplete', remaining: [], observedAt: null },
+ running: { status: 'running', remaining: [], observedAt: '2026-10-01T00:00:00Z' },
} }, {}, 'branch-reconcile');
expect(screen.getByText(/example · Incomplete/)).toBeTruthy();
expect(screen.getByText('Remaining work is unknown.')).toBeTruthy();
- expect(screen.getByText('No readable inventory yet.')).toBeTruthy();
+ expect(screen.getAllByText('No readable inventory yet.')).toHaveLength(2);
expect(screen.getByText(/empty · No remaining work in last scan · 0 remaining/)).toBeTruthy();
+ expect(screen.getByText(/unobserved · Incomplete · 0 remaining/)).toBeTruthy();
+ expect(screen.getByText(/running · Sweep running · 0 remaining/)).toBeTruthy();
+ expect(screen.queryByText(/No remaining recorded work/)).toBeNull();
+ });
+
+ it('shows empty recorded cleanup independently of stale or interrupted sweep status, retaining diagnostics', () => {
+ renderCard({ reconcileOutcomes: {
+ idle: { status: 'incomplete', reason: 'no-in-flight-branches', remaining: [], observedAt: '2026-10-01T00:00:00Z' },
+ interrupted: { status: 'incomplete', reason: 'agent-failed', remaining: [], observedAt: '2026-10-01T00:00:00Z', nextAction: 'Run branch reconciliation again.' },
+ } }, {}, 'branch-reconcile');
+ expect(screen.getByText('idle · No remaining recorded work · 0 remaining')).toBeVisible();
+ const interrupted = screen.getByText('interrupted · No remaining recorded work · 0 remaining');
+ fireEvent.click(interrupted);
+ const details = within(interrupted.closest('details'));
+ expect(details.getByText('Last sweep: Incomplete')).toBeVisible();
+ expect(details.getByText('Reason: agent-failed')).toBeVisible();
+ expect(details.getByText('Run branch reconciliation again.')).toBeVisible();
});
it('shows app coverage prominently', () => {
diff --git a/client/src/components/cos/tabs/schedule/BranchReconcileOutcome.jsx b/client/src/components/cos/tabs/schedule/BranchReconcileOutcome.jsx
index e0a7ad8521..9a2b071e53 100644
--- a/client/src/components/cos/tabs/schedule/BranchReconcileOutcome.jsx
+++ b/client/src/components/cos/tabs/schedule/BranchReconcileOutcome.jsx
@@ -98,16 +98,20 @@ export default function BranchReconcileOutcome({ outcomes, apps }) {
<div className="mx-4 mb-3 space-y-2 text-xs">
{Object.entries(outcomes).map(([appId, outcome]) => {
const remaining = Array.isArray(outcome.remaining) ? outcome.remaining.filter(entry => !retiredKeys.has(checkoutKey(appId, entry))) : null;
+ // Sweep interruptions and retirement can leave an incomplete outcome
+ // with no recorded work. This does not establish a newly drained scan.
+ const incompleteEmptyInventory = outcome.status === 'incomplete' && outcome.observedAt && remaining?.length === 0;
return (
<details key={appId} className="rounded border border-port-border p-2">
<summary className="cursor-pointer text-gray-300">
{apps?.find(app => app.id === appId)?.name || (appId === 'null' ? 'Repository' : appId)}
- {' · '}{STATUS_LABELS[outcome.status] || 'Outcome unavailable'}
+ {' · '}{incompleteEmptyInventory ? 'No remaining recorded work' : STATUS_LABELS[outcome.status] || 'Outcome unavailable'}
{remaining && ` · ${formatCount(remaining.length)} remaining`}
{remaining?.some(entry => entry.checkoutMissing) && ' · missing checkout evidence'}
</summary>
<div className="mt-2 space-y-2 text-gray-400">
<p>{outcome.observedAt ? `Last inventory: ${formatDateTime(outcome.observedAt)}` : 'No readable inventory yet.'}</p>
+ {incompleteEmptyInventory && <p>Last sweep: Incomplete</p>}
{outcome.reason && <p className="break-words">Reason: {outcome.reason}</p>}
{outcome.nextAction && <p>{outcome.nextAction}</p>}
{!remaining && <p>Remaining work is unknown.</p>}