fix(gateway): harden first-turn startup readiness (#52387)

* fix(gateway): harden first-turn startup readiness

* fix(gateway): scope startup model retry
This commit is contained in:
Vincent Koc
2026-03-22 12:12:08 -07:00
committed by GitHub
parent aef2c60aa5
commit f85cfc8b6c
6 changed files with 256 additions and 13 deletions

View File

@@ -89,7 +89,7 @@ function buildHookProviderCacheKey(params: {
return `${roots.workspace ?? ""}::${roots.global}::${roots.stock ?? ""}::${JSON.stringify(params.onlyPluginIds ?? [])}`;
}
export function resetProviderRuntimeHookCacheForTest(): void {
export function clearProviderRuntimeHookCache(): void {
cachedHookProvidersWithoutConfig = new WeakMap<
NodeJS.ProcessEnv,
Map<string, ProviderPlugin[]>
@@ -100,6 +100,10 @@ export function resetProviderRuntimeHookCacheForTest(): void {
>();
}
export function resetProviderRuntimeHookCacheForTest(): void {
clearProviderRuntimeHookCache();
}
function resolveProviderPluginsForHooks(params: {
config?: OpenClawConfig;
workspaceDir?: string;