Skip to content

Commit 8bb9560

Browse files
committed
fix: lazy load local btw runner
1 parent cf03a6c commit 8bb9560

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tui/embedded-backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
resolveDefaultAgentId,
99
resolveSessionAgentId,
1010
} from "../agents/agent-scope.js";
11-
import { runBtwSideQuestion } from "../agents/btw.js";
1211
import { ensureContextWindowCacheLoaded } from "../agents/context.js";
1312
import { DEFAULT_PROVIDER } from "../agents/defaults.js";
1413
import {
@@ -609,6 +608,7 @@ export class EmbeddedTuiBackend implements TuiBackend {
609608
});
610609
const resolvedModel = resolveSessionModelRef(cfg, entry, sessionAgentId);
611610
const timeoutSeconds = timeoutSecondsFromMs(params.timeoutMs);
611+
const { runBtwSideQuestion } = await import("../agents/btw.js");
612612
const reply = await runBtwSideQuestion({
613613
cfg,
614614
agentDir: resolveAgentDir(cfg, sessionAgentId),

0 commit comments

Comments
 (0)