mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-09-24 23:10:56 +08:00
fix: reset restored workspace state on missing session
This commit is contained in:
@@ -902,6 +902,8 @@ export function useAgentSession(options: UseAgentSessionOptions) {
|
||||
saveTransient(scopedKeys.currentSessionKey, null);
|
||||
savePersisted(scopedKeys.persistedSessionKey, null);
|
||||
hydratedSessionRef.current = null;
|
||||
restoredWorkspaceRef.current = null;
|
||||
skipAutoRestoreRef.current = false;
|
||||
})
|
||||
.finally(() => {
|
||||
if (missingSessionVerificationRef.current === sessionId) {
|
||||
|
||||
Reference in New Issue
Block a user