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 self-review: name a failed marker read as its own cause, and stop the panel claiming an agent is already queued

[._.]/ Adam Eivy57c501b33258
diff --git a/client/src/components/apps/tabs/AutoUpdatePanel.jsx b/client/src/components/apps/tabs/AutoUpdatePanel.jsx
index f8bbdd081c..75cd5d7d2d 100644
--- a/client/src/components/apps/tabs/AutoUpdatePanel.jsx
+++ b/client/src/components/apps/tabs/AutoUpdatePanel.jsx
@@ -183,7 +183,7 @@ export default function AutoUpdatePanel() {
<AlertTriangle size={13} className="mt-0.5 shrink-0" />
<span>
Checkout not ready — {repo.summary || `on ${repo.branch || 'an unknown branch'}, expected a clean ${repo.defaultBranch || 'default branch'}`}.
- {repo.needsAgent && draft.resolveBlockersWithAgent ? ' A CoS agent is queued to resolve it.' : ''}
+ {repo.needsAgent && draft.resolveBlockersWithAgent ? ' A CoS agent will be queued to resolve it.' : ''}
</span>
</div>
) : null}
diff --git a/client/src/components/apps/tabs/AutoUpdatePanel.test.jsx b/client/src/components/apps/tabs/AutoUpdatePanel.test.jsx
index a33cbce769..649b101ec0 100644
--- a/client/src/components/apps/tabs/AutoUpdatePanel.test.jsx
+++ b/client/src/components/apps/tabs/AutoUpdatePanel.test.jsx
@@ -60,7 +60,7 @@ describe('AutoUpdatePanel', () => {
});
render(<AutoUpdatePanel />);
expect(screen.getByText(/the working tree has uncommitted changes/)).toBeInTheDocument();
- expect(screen.getByText(/A CoS agent is queued to resolve it/)).toBeInTheDocument();
+ expect(screen.getByText(/A CoS agent will be queued to resolve it/)).toBeInTheDocument();
});
it('hides the configuration while the feature is off', () => {
diff --git a/server/services/updateRepoReadiness.js b/server/services/updateRepoReadiness.js
index 9e62c1c4f6..ab666bfa82 100644
--- a/server/services/updateRepoReadiness.js
+++ b/server/services/updateRepoReadiness.js
@@ -42,6 +42,7 @@ const REASON_LABELS = {
'git-unreadable': 'the checkout could not be inspected',
'no-default-branch': 'the origin default branch could not be resolved',
'merge-in-progress': 'a merge or rebase is in progress',
+ 'operation-check-unreadable': 'whether a merge or rebase is in progress could not be established',
'conflicted-files': 'the working tree has unresolved conflicts',
'uncommitted-changes': 'the working tree has uncommitted changes',
'unpushed-commits': 'the default branch has local commits that are not on origin',
@@ -147,7 +148,10 @@ export async function checkUpdateRepoReadiness({ repoPath, fetch = false } = {})
if (activeAgentId === 'unknown') reasons.push('agent-check-unreadable');
else if (activeAgentId) reasons.push('agent-at-work');
if (!defaultBranch) reasons.push('no-default-branch');
- if (interrupted) reasons.push('merge-in-progress');
+ // Same split as the agent check: a failed marker read must not be reported as
+ // an interrupted rebase the user would go looking for and not find.
+ if (interrupted === 'unknown') reasons.push('operation-check-unreadable');
+ else if (interrupted) reasons.push('merge-in-progress');
if (conflicted) reasons.push('conflicted-files');
if (dirt.hasRealChanges) reasons.push('uncommitted-changes');
else if (!dirt.clean) repairable.push('restore-lockfiles');