feat(FN-1887): merge fusion/fn-1887

This commit is contained in:
Fusion
2026-04-16 10:53:06 -07:00
committed by gsxdsm
parent 3aeb63ae68
commit 74b4d20c45
11 changed files with 203 additions and 14 deletions

View File

@@ -508,7 +508,7 @@ describe("InProcessRuntime", () => {
executorOptions.onStart?.({ id: "FN-1661" } as Task, join(testDir, "worktree-FN-1661"));
await vi.waitFor(async () => {
const agents = await store.listAgents();
const agents = await store.listAgents({ includeEphemeral: true });
expect(agents).toHaveLength(1);
expect(agents[0]).toMatchObject({
name: "executor-FN-1661",
@@ -551,7 +551,7 @@ describe("InProcessRuntime", () => {
const store = getAgentStore(runtime);
await vi.waitFor(async () => {
const agents = await store.listAgents();
const agents = await store.listAgents({ includeEphemeral: true });
expect(agents.some((agent: Agent) => agent.name === "executor-FN-2001")).toBe(true);
});
@@ -578,7 +578,7 @@ describe("InProcessRuntime", () => {
executorOptions.onStart?.({ id: "FN-AUTO1" } as Task, join(testDir, "worktree-FN-AUTO1"));
await vi.waitFor(async () => {
const agents = await store.listAgents();
const agents = await store.listAgents({ includeEphemeral: true });
expect(agents.some((a: Agent) => a.name === "executor-FN-AUTO1")).toBe(true);
});
@@ -620,7 +620,7 @@ describe("InProcessRuntime", () => {
onStartOptions.onStart?.({ id: "FN-AUTO2" } as Task, join(testDir, "worktree-FN-AUTO2"));
await vi.waitFor(async () => {
const agents = await store.listAgents();
const agents = await store.listAgents({ includeEphemeral: true });
expect(agents.some((a: Agent) => a.name === "executor-FN-AUTO2")).toBe(true);
});