2277
const isWorkspaceless = provisional
2278
? provisional.workspaceless === true
2279
>
: (await this._readSessionMetadata(session).catch(() => undefined))?.workspaceless === true;
copilotAgent.ts
2280
// Remove the session from the SDK's on-disk store first so it doesn't reappear in `listSessions()` after a
2281
// restart, and so that any final persist triggered by in-memory teardown can't recreate it. Provisional
2282
// sessions were never persisted, so there is nothing to delete on the SDK side.
2283
if (!this._provisionalSessions.has(sessionId)) {
2285
>
await client.deleteSession(sessionId);
2286
}
2287
await this._destroyAndDisposeSession(sessionId);