fix(cli): preserve overlays without session registration

This commit is contained in:
Turtle
2026-07-29 15:28:38 +08:00
parent 8f2f6ef0ac
commit c1324ee896
5 changed files with 179 additions and 31 deletions
+2 -1
View File
@@ -75,7 +75,8 @@ async function consumeUntilTurnEnd(frames: AsyncIterable<RpcRequest<MuxFrame>>,
export async function runHeadless(task: string): Promise<void> {
// A missing DEEPSEEK_API_KEY throws here (plugin load is fail-loud, uncaught by design).
const entry = new AppCLIEntry({
configPath: fileURLToPath(new URL('../cordis.yml', import.meta.url)),
configPath: fileURLToPath(new URL('../base.cordis.yml', import.meta.url)),
overlayPath: fileURLToPath(new URL('../web.cordis.yml', import.meta.url)),
dev: false,
port: 0,
})