fix: harden production chat runtime
This commit is contained in:
@@ -5,7 +5,7 @@ import { createServer } from "node:http";
|
||||
import { access, readFile, readdir, rm } from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
import { join, resolve } from "node:path";
|
||||
import { discoverCodexProjectCandidates } from "./codex-session-discovery.mjs";
|
||||
import { discoverCodexProjectCandidatesInWorker } from "./codex-session-discovery.mjs";
|
||||
import { buildCodexTaskExecution } from "./codex-task-runner.mjs";
|
||||
|
||||
async function loadConfig(configPath) {
|
||||
@@ -24,7 +24,7 @@ async function resolveHeartbeatProjects(config, runtime) {
|
||||
}
|
||||
|
||||
try {
|
||||
const discovered = await discoverCodexProjectCandidates({
|
||||
const discovered = await discoverCodexProjectCandidatesInWorker({
|
||||
stateDbPath: config.codexStateDbPath,
|
||||
logsDbPath: config.codexLogsDbPath,
|
||||
sessionIndexPath: config.codexSessionIndexPath,
|
||||
|
||||
Reference in New Issue
Block a user