refactor(agents): narrow session runtime compat exports · openclaw/openclaw@acb2493
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,10 +8,9 @@ import type { SessionEntry } from "../config/sessions.js";
|
8 | 8 | import { isDefaultAgentRuntimeId } from "./agent-runtime-id.js"; |
9 | 9 | import { normalizeOptionalAgentRuntimeId } from "./agent-runtime-id.js"; |
10 | 10 | import { resolveCliRuntimeModelBackendBinding } from "./cli-backends.js"; |
11 | | -import { resolveContextConfigProviderForRuntime } from "./openai-routing.js"; |
12 | 11 | |
13 | 12 | /** Persisted runtime fields used to recover session runtime compatibility. */ |
14 | | -export type SessionRuntimeCompatEntry = Pick< |
| 13 | +type SessionRuntimeCompatEntry = Pick< |
15 | 14 | SessionEntry, |
16 | 15 | "agentHarnessId" | "agentRuntimeOverride" |
17 | 16 | >; |
@@ -47,17 +46,3 @@ export function resolveSessionRuntimeOverrideForProvider(params: {
|
47 | 46 | // provider must not leak into this session's model route. |
48 | 47 | return resolveCliRuntimeModelBackendBinding({ provider, runtime })?.runtime; |
49 | 48 | } |
50 | | - |
51 | | -/** Resolves the context config provider for a persisted session runtime route. */ |
52 | | -export function resolveContextConfigProviderForSessionRuntime(params: { |
53 | | -provider: string; |
54 | | -entry?: SessionRuntimeCompatEntry; |
55 | | -}): string | undefined { |
56 | | -const runtimeId = resolvePersistedSessionRuntimeId(params.entry); |
57 | | -return runtimeId |
58 | | - ? resolveContextConfigProviderForRuntime({ |
59 | | -provider: params.provider, |
60 | | - runtimeId, |
61 | | -}) |
62 | | - : undefined; |
63 | | -} |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。