openclaw/apps/web/instrumentation.ts
kumarabhirup 2c52012d1e
feat(chat): fix infinite loading and enable concurrent sessions
Chat panel froze because `thinking: "xhigh"` silently killed gateway runs, sessions used mutable global agent state, and OpenClaw's one-run-per-agent limit blocked concurrent chats.
2026-03-09 08:58:50 -07:00

10 lines
335 B
TypeScript

export async function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
const { startTerminalServer } = await import("./lib/terminal-server");
startTerminalServer(Number(process.env.TERMINAL_WS_PORT) || 3101);
const { startChatAgentGc } = await import("./lib/chat-agent-registry");
startChatAgentGc();
}
}