Skip to content

Evict tokenless Google connections; fresh consent URLs - #12

Merged
DIodide merged 1 commit into
mainfrom
fix/gcal-fresh-consent
Aug 22, 2026
Merged

Evict tokenless Google connections; fresh consent URLs#12
DIodide merged 1 commit into
mainfrom
fix/gcal-fresh-consent

Conversation

@DIodide

@DIodide DIodide commented Aug 22, 2026

Copy link
Copy Markdown
Member

Legacy anonymous chat connections (pre-token-gating) exposed calendar tools that always 401'd — the reconcile now evicts them when the desk has no tokens. Consent URLs are minted fresh each time instead of redeeming a persisted auth_url whose OAuth state expires after 10 minutes.

https://claude.ai/code/session_01MKLJUWk6biNAKXupHTTWn5

Chats created before token gating still carried anonymous Google
connections — tools appeared, every call 401'd. The reconcile now
removes a chat's Google connection whenever the desk holds no tokens.

The consent URL is minted fresh on demand: a connection restored in the
authenticating state can't run the probe's auth leg, and redeeming the
persisted auth_url is a trap once its OAuth state record expires (10
minutes). The desk now resets to a clean anonymous connection and
probes again whenever no live URL exists.

Claude-Session: https://claude.ai/code/session_01MKLJUWk6biNAKXupHTTWn5
@DIodide
DIodide merged commit 083d1a3 into main Aug 22, 2026
2 checks passed
@DIodide
DIodide deleted the fix/gcal-fresh-consent branch August 22, 2026 20:20
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