fix(FN-XXX): harden windows path handling

This commit is contained in:
gsxdsm
2026-04-29 07:35:23 -07:00
parent dba6059080
commit bd14cf84e3
17 changed files with 189 additions and 32 deletions

View File

@@ -274,13 +274,19 @@ export class HybridExecutor extends EventEmitter<HybridExecutorEvents> {
`Isolation mode changed for ${projectId}: ${currentMode}${config.isolationMode}`
);
const project = await this.centralCore.getProject(projectId);
const workingDirectory = config.workingDirectory ?? project?.path;
if (!workingDirectory) {
throw new Error(`Project not found in CentralCore: ${projectId}`);
}
// Stop old runtime
await this.projectManager.removeProject(projectId);
// Get the full current config
const fullConfig: ProjectRuntimeConfig = {
projectId,
workingDirectory: config.workingDirectory ?? "/tmp",
workingDirectory,
isolationMode: config.isolationMode,
maxConcurrent: config.maxConcurrent ?? 2,
maxWorktrees: config.maxWorktrees ?? 4,