




















@@ -6,6 +6,8 @@ import {
66resolveChatModelOverrideValue,
77resolveChatModelSelectState,
88} from "../chat-model-select-state.ts";
9+import { refreshVisibleToolsEffectiveForCurrentSession } from "../controllers/agents.ts";
10+import { loadSessions } from "../controllers/sessions.ts";
911import { pushUniqueTrimmedSelectOption } from "../select-options.ts";
1012import { parseAgentSessionKey } from "../session-key.ts";
1113import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "../string-coerce.ts";
@@ -70,7 +72,6 @@ export function renderChatSessionSelect(
7072}
71737274async function refreshSessionOptions(state: AppViewState) {
73-const { loadSessions } = await import("../controllers/sessions.ts");
7475await loadSessions(state as unknown as Parameters<typeof loadSessions>[0], {
7576activeMinutes: 0,
7677limit: 0,
@@ -80,8 +81,6 @@ async function refreshSessionOptions(state: AppViewState) {
8081}
81828283async function refreshVisibleToolsEffectiveForCurrentSessionLazy(state: AppViewState) {
83-const { refreshVisibleToolsEffectiveForCurrentSession } =
84-await import("../controllers/agents.ts");
8584return refreshVisibleToolsEffectiveForCurrentSession(state);
8685}
8786此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。