mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:00:42 +00:00
fix(ui): remove ineffective dynamic imports
(cherry picked from commit b4ff947206)
This commit is contained in:
@@ -6,6 +6,8 @@ import {
|
||||
resolveChatModelOverrideValue,
|
||||
resolveChatModelSelectState,
|
||||
} from "../chat-model-select-state.ts";
|
||||
import { refreshVisibleToolsEffectiveForCurrentSession } from "../controllers/agents.ts";
|
||||
import { loadSessions } from "../controllers/sessions.ts";
|
||||
import { pushUniqueTrimmedSelectOption } from "../select-options.ts";
|
||||
import { parseAgentSessionKey } from "../session-key.ts";
|
||||
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "../string-coerce.ts";
|
||||
@@ -70,7 +72,6 @@ export function renderChatSessionSelect(
|
||||
}
|
||||
|
||||
async function refreshSessionOptions(state: AppViewState) {
|
||||
const { loadSessions } = await import("../controllers/sessions.ts");
|
||||
await loadSessions(state as unknown as Parameters<typeof loadSessions>[0], {
|
||||
activeMinutes: 0,
|
||||
limit: 0,
|
||||
@@ -80,8 +81,6 @@ async function refreshSessionOptions(state: AppViewState) {
|
||||
}
|
||||
|
||||
async function refreshVisibleToolsEffectiveForCurrentSessionLazy(state: AppViewState) {
|
||||
const { refreshVisibleToolsEffectiveForCurrentSession } =
|
||||
await import("../controllers/agents.ts");
|
||||
return refreshVisibleToolsEffectiveForCurrentSession(state);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user