The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): a failed native refresh only confirms reauth on a dead refresh token
kshitijk4poore91ad53fda8e
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.tsindex 16497919b89..b6adaf3a2e1 100644--- a/apps/desktop/electron/main.ts+++ b/apps/desktop/electron/main.ts@@ -8325,7 +8325,11 @@ async function mintGatewayWsTicket(baseUrl, headers = {}) {throw error}- const rotatedAt = await ensureNativeAccessToken(baseUrl, { forceRefresh: true }).catch(() => null)+ // A dead refresh token returns null (tokens dropped) and the original+ // 401 stands. A refresh that could not be evaluated at all (5xx,+ // timeout, ECONNRESET) is a transport blip, not a verdict on the+ // session — let it propagate so the boot stays retryable.+ const rotatedAt = await ensureNativeAccessToken(baseUrl, { forceRefresh: true })if (!rotatedAt || rotatedAt === nativeAt) {throw error