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-02 04:09:28 +01:00
parent 4095d3784d
commit 7a651fceb3
3 changed files with 3 additions and 0 deletions
@@ -562,6 +562,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),