1155
1156
if (!created.provisional) {
1157
>
// Persist the AH-owned workspace-less marker now that the session DB
agentService.ts
1158
>
// exists, from the value `_buildInitialSummary` inferred. Provisional
1159
>
// sessions defer this to `_onDidMaterializeSession`.
1160
>
this._persistWorkspaceless(session, readSessionWorkspaceless(this._stateManager.getSessionSummary(session.toString())?._meta));
1161
>
1162
>
// `SessionReady` transitions the session lifecycle from
1163
>
// `Creating` to `Ready`. For provisional sessions we defer
1164
>
// this to {@link _onDidMaterializeSession} so subscribers
1165
>
// don't see `Ready` until the agent actually has an SDK
1166
>
// session, working directory, etc.
1167
>
this._stateManager.dispatchServerAction(session.toString(), { type: ActionType.SessionReady });
1168
>
}
1169
1170
// Refresh the git state for the session.