feat(FN-2617): merge fusion/fn-2617 (auto-resolved)

- test(FN-2617): stabilize workflow remediation timeout under full suite
- test(FN-2617): complete Step 5 — add openclaw runtime resolution coverage
- feat(FN-2617): complete Step 4 — route step sessions through runtime resolution
- fix(FN-2617): thread runtimeHint through merger rebase push flow
- feat(FN-2617): complete Step 3 — wire runtimeHint across engine subsystems
- feat(FN-2617): complete Step 2 — thread runtimeHint in executor paths
- feat(FN-2617): complete Step 1 — add runtimeHint extraction helper
This commit is contained in:
Fusion
2026-04-26 16:14:35 -07:00
committed by gsxdsm
parent 47514942e1
commit a24f50ba02
15 changed files with 246 additions and 23 deletions

View File

@@ -269,5 +269,36 @@ describe("Runtime Selection Regression Tests", () => {
expect(result.runtimeId).toBe("code-interpreter");
expect(result.wasConfigured).toBe(true);
});
it("should route runtimeHint=openclaw to the openclaw runtime", async () => {
mockResolveRuntime.mockResolvedValue({
runtime: {
id: "openclaw",
name: "OpenClaw Runtime",
createSession: async () => ({
session: {
model: { provider: "openclaw", id: "openclaw-agent" },
},
}),
promptWithFallback: vi.fn(),
describeModel: () => "openclaw/openclaw-agent",
},
wasConfigured: true,
runtimeId: "openclaw",
});
const { createResolvedAgentSession } = await import("../agent-session-helpers.js");
const result = await createResolvedAgentSession({
sessionPurpose: "executor",
pluginRunner: {} as any,
runtimeHint: "openclaw",
cwd: "/test/path",
systemPrompt: "Test prompt",
});
expect(result.runtimeId).toBe("openclaw");
expect(result.wasConfigured).toBe(true);
});
});
});