1321
}
1322
case ActionType.SessionConfigChanged: {
1323
>
// Persist merged values so a future `restoreSession` can re-hydrate
agentSideEffects.ts
1324
>
// the user's previous selections (e.g. autoApprove).
1325
>
const sessionState = this._stateManager.getSessionState(channel);
1326
>
const values = sessionState?.config?.values;
1327
>
if (values) {
1328
>
this._persistSessionFlag(channel, 'configValues', JSON.stringify(values));
1329
>
}
1330
>
if (this._worktree && sessionState?.lifecycle === SessionLifecycle.Creating) {
1331
const sessionId = AgentSession.id(channel);
1332
const isolation = values?.[SessionConfigKey.Isolation];