fix: improve claude plan mode reliability and cleanup (#346)
This commit is contained in:
+5
-4
@@ -23,10 +23,11 @@ export async function runDev({ repoRoot, backendPort, webPort }: DevOptions): Pr
|
||||
const ports = await pickPorts(backendPort, webPort);
|
||||
const dbPath = path.join(repoRoot, "apps", "backend", "kandev.db");
|
||||
|
||||
const backendEnv = buildBackendEnv({
|
||||
ports,
|
||||
extra: { KANDEV_MOCK_AGENT: "true", KANDEV_DATABASE_PATH: dbPath },
|
||||
});
|
||||
const extra: Record<string, string> = { KANDEV_DATABASE_PATH: dbPath };
|
||||
if (process.env.KANDEV_MOCK_AGENT) {
|
||||
extra.KANDEV_MOCK_AGENT = process.env.KANDEV_MOCK_AGENT;
|
||||
}
|
||||
const backendEnv = buildBackendEnv({ ports, extra });
|
||||
const webEnv = buildWebEnv({ ports, includeMcp: true, debug: true });
|
||||
const logLevel =
|
||||
process.env.KANDEV_LOGGING_LEVEL?.trim() || process.env.KANDEV_LOG_LEVEL?.trim() || "info";
|
||||
|
||||
Reference in New Issue
Block a user