Skip to content

Fix: don't warn about expired token immediately on VS Code startup#332

Open
Mosh-K wants to merge 1 commit into
Power-Maverick:mainfrom
Mosh-K:fix/token-expiration-startup-nag
Open

Fix: don't warn about expired token immediately on VS Code startup#332
Mosh-K wants to merge 1 commit into
Power-Maverick:mainfrom
Mosh-K:fix/token-expiration-startup-nag

Conversation

@Mosh-K

@Mosh-K Mosh-K commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Only show the token-expiration notification when the token was valid at some point during the current session and then went stale, instead of firing immediately whenever a stale connection from a prior session is detected on activation (the common case, since tokens outlive most gaps between VS Code restarts).

Follow-up to #287 — the background token-expiration check fires the moment a stale-from-before-restart connection is detected, so it ends up warning on nearly every VS Code startup rather than just in-session expirations.

Only show the token-expiration notification when the token was valid
at some point during the current session and then went stale, instead
of firing immediately whenever a stale connection from a prior session
is detected on activation (the common case, since tokens outlive most
gaps between VS Code restarts).
@Mosh-K Mosh-K requested a review from Power-Maverick as a code owner July 9, 2026 07:41
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