test(server): fixtures for agents and workspaces carry metadata

Agent snapshots and workspace records now always carry metadata, so the
hand-built fixtures and expectations in three existing suites name it.
This commit is contained in:
Mohamed Boudra
2026-11-04 11:30:32 +01:00
parent 8279197b36
commit b901047992
3 changed files with 3 additions and 0 deletions
@@ -564,6 +564,7 @@ function createManagedAgent(overrides: Partial<ManagedAgent> = {}): ManagedAgent
pendingPermissions: new Map(),
persistence: null,
labels: {},
metadata: {},
attention: { requiresAttention: false },
...overrides,
} as ManagedAgent;
@@ -1109,6 +1109,7 @@ test("disabled recovery closes stale active records without resuming sessions",
lastStatus: status as StoredAgentRecord["lastStatus"],
title: `Keep ${status}`,
labels: { "paseo.parent-agent-id": "parent", custom: "keep" },
metadata: {},
persistence: { provider: "codex", sessionId: `session-${index}` },
config: { modeId: "full-access" },
requiresAttention: true,
@@ -1100,6 +1100,7 @@ describe("WorkspaceReconciliationService", () => {
baseBranch: null,
isPaseoOwnedWorktree: false,
mainRepoRoot: null,
metadata: {},
createdAt: timestamp,
updatedAt: expect.any(String),
archivedAt: expect.any(String),