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

test: update mocks for new finalizeAgent return format

Adam Eivy5f46d074ca1d
diff --git a/server/services/agentTuiSpawning.test.js b/server/services/agentTuiSpawning.test.js
index a6efce9930..ba70fe5721 100644
--- a/server/services/agentTuiSpawning.test.js
+++ b/server/services/agentTuiSpawning.test.js
@@ -1113,7 +1113,10 @@ describe('spawnTuiAgent runtime', () => {
// finalize asked the forge and got an answer for a real branch — the only
// shape that lets cleanup skip its own query (see `prClaimWasVerified`).
vi.mocked(agentLifecycle.finalizeAgent).mockResolvedValueOnce({
- success: true, prVerdict: { ok: true, branch: 'cos/task-1/agent-1' },
+ success: true,
+ prClaimVerified: true,
+ branchProvenEmpty: false,
+ cleanupEvidence: { ok: true, branch: 'cos/task-1/agent-1' },
});
const spawnPromise = runSpawn({
provider: { id: 'claude-code-tui', name: 'Claude TUI', type: 'tui', command: 'claude', envVars: {} },