Skip to content

fix(desktop): renew sessions while a workspace stays open - #797

Merged
zomux merged 2 commits into
developfrom
codex/desktop-session-renewal
Oct 16, 2026
Merged

zomux merged 2 commits into
developfrom
codex/desktop-session-renewal

Conversation

@zomux

@zomux zomux commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Desktop workspaces left open can keep sending an expired bearer and fail with 401: rejected by guard. The launcher only checked credentials during its own API calls, so an idle embedded workspace could outlive its session.

Check the active session every minute, renew workspace sessions during their last day through the existing renewal endpoint, and publish renewed credentials to the embedded workspace. Coalesce concurrent renewals, retain workspace sessions on temporary renewal failures, require sign-in after expiry or refusal, and discard renewal results that arrive after sign-out. Firebase credentials also refresh while the workspace remains open.

Validation: 42 account and IPC tests passed, including background renewal, wake after expiry, temporary failure retry, concurrent renewal, and sign-out races. Launcher TypeScript checks passed.

This requires a new desktop build; a website deployment alone does not update installed desktop clients. No backend or database changes.

@vercel

vercel Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openagents-workspace Ready Ready Preview Oct 16, 2026 9:32pm UTC

Request Review

@zomux
zomux merged commit e61f54a into develop Oct 16, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 195e7fc5 Deployed Oct 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant