From 62e0253221858f88e2f62635dd0a6604f7a0c255 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 31 Jul 2024 00:38:59 -0700 Subject: [PATCH] rm comment --- src/state/session/index.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/state/session/index.tsx b/src/state/session/index.tsx index 6a80dd563f..0d7e6089eb 100644 --- a/src/state/session/index.tsx +++ b/src/state/session/index.tsx @@ -235,10 +235,6 @@ export function Provider({children}: React.PropsWithChildren<{}>) { const prevAgent = currentAgentRef.current currentAgentRef.current = agent addSessionDebugLog({type: 'agent:switch', prevAgent, nextAgent: agent}) - // We never reuse agents so let's fully neutralize the previous one. - // This ensures it won't try to consume any refresh tokens. - // prevAgent.session = undefined - // prevAgent.setPersistSessionHandler(undefined) } }, [agent])