Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
resolveSessionTitle,
} from '../../utils/sessionTitle';
import { buildCreateSessionRelationship } from '../../utils/sessionMetadata';
import { isAcpFlowSession } from '../../utils/acpSession';
import {
consumeRecentHistorySessionOpenIntent,
hasRenderableSessionContent,
Expand Down Expand Up @@ -701,6 +702,7 @@ export async function switchChatSession(
await hydrateHistoricalSession(context, sessionId, true, {
isRetryStillRelevant: () => switchRequestId === latestSwitchRequestId,
retryActiveStaleReuse: shouldActivateBeforeHydrate,
deferFullHistoryUntilActive: !isAcpFlowSession(session),
});
} catch {
// The hydrate path already marks the session failed and notifies the user.
Expand Down