Evict tokenless Google connections; fresh consent URLs - #12
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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