diff --git a/src/state/session/agent.ts b/src/state/session/agent.ts index 1443d87d3..17ae5790b 100644 --- a/src/state/session/agent.ts +++ b/src/state/session/agent.ts @@ -465,6 +465,9 @@ class BskyAppAgent extends BskyAgent { * other PDS-specific operations like preferences. */ export function pdsAgent(agent: T): T { + if ('cloneWithoutProxy' in agent && typeof agent.cloneWithoutProxy === 'function') { + return agent.cloneWithoutProxy() as T + } const clone = agent.clone() as T clone.configureProxy(null) return clone