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

@@ -42,6 +42,24 @@ export interface ResolvedSessionResult {
wasConfigured: boolean;
}
/**
* Extract runtime hint from untyped runtimeConfig payload.
*
* @param runtimeConfig - Agent/task runtime configuration
* @returns normalized runtime hint or undefined when missing/invalid
*/
export function extractRuntimeHint(
runtimeConfig: Record<string, unknown> | undefined,
): string | undefined {
const hint = runtimeConfig?.runtimeHint;
if (typeof hint !== "string") {
return undefined;
}
const normalizedHint = hint.trim();
return normalizedHint.length > 0 ? normalizedHint : undefined;
}
/**
* Create an agent session using runtime resolution.
*