Conversation
Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
…message Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Done! Moved expiration back inline with username and using Format examples:
Commit: 013d009 |
Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
|
@copilot The additional text should be removed when not relevant. I think it should be part of a single string applied once (user + expiration) But currently I see these states, which don't make sense
|
Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Fixed! The expiration info is now built as a single string and only added when we have valid user data. Error states and loading states no longer show the expiration text. States now work correctly:
Commit: 56693b3 |







Displays token expiration inline with the username using
Intl.RelativeTimeFormatfor natural language formatting. UsesGitHub-Authentication-Token-Expirationheader to show days remaining. Expiration info is only shown when token validation succeeds.Changes:
getTokenInfo()combining scopes and expiration fetch (eliminates duplicate API call)@fregante, expires in 40 days)Intl.RelativeTimeFormatwithnumeric: 'auto'for proper date formattingDate.now()inlinegetTokenScopesandgetTokenExpirationhelper functionsFormat examples:
@fregante, no expiration(classic tokens)@fregante, expires in 40 days@fregante, expires today(automatic via RTF)@fregante, expired 5 days ago(automatic for past dates)States handled correctly:
Test URLs
Extension options page
Screenshot
Before (current state in issue):

After (final implementation):

Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.