fix(coding-agent): reuse initial resource loader on startup closes #2766

This commit is contained in:
Mario Zechner
2026-04-02 11:05:41 +02:00
parent 8ccd3c55c1
commit 617f1870f8
3 changed files with 10 additions and 3 deletions

View File

@@ -873,6 +873,7 @@ export async function main(args: string[]) {
const runtime = await createAgentSessionRuntime(runtimeBootstrap, {
cwd: sessionManager?.getCwd() ?? cwd,
sessionManager,
resourceLoader,
});
if (process.cwd() !== runtime.cwd) {
process.chdir(runtime.cwd);