740
return { session: sessionUri, workingDirectory: config.workingDirectory };
741
}
743
>
// A workspace-less session (no `workingDirectory` supplied, and not a
744
>
// fork) runs in a stable per-session scratch dir shared with the Copilot
745
>
// agent; without a cwd Claude throws at materialize. The workspace-less
746
>
// marker itself is owned/persisted centrally by the AH service.
747
>
const workingDirectory = config.workingDirectory ?? await ensureWorkspacelessScratchDir(this._environmentService.userHome, sessionId);
748
749
// Only probe for a project when the caller supplied a real folder; a