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.
10 lines
335 B
TypeScript
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();
|
|
}
|
|
}
|