You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Feature release**: Queued token refresh, enhanced logging, and auto-update notifications.
24
+
25
+
### Added
26
+
-**Queued Token Refresh**: New `RefreshQueue` class prevents race conditions when multiple concurrent requests try to refresh the same account's token simultaneously:
27
+
- Deduplicates concurrent refresh calls per account
28
+
- Subsequent callers await the existing in-flight refresh promise
29
+
- Automatic cleanup of stale entries after 30 seconds
30
+
- New module: `lib/refresh-queue.ts`
31
+
-**Enhanced Logging System**: Upgraded logger with proper log levels and timing utilities:
32
+
- Log levels: `debug`, `info`, `warn`, `error`
33
+
- Configurable via `CODEX_PLUGIN_LOG_LEVEL` environment variable
34
+
- Scoped loggers with timing functions (`time()`, `timeEnd()`)
35
+
- Duration formatting utilities
36
+
-**Auto-Update Notifications**: Plugin now checks npm for newer versions on load:
37
+
- Checks npm registry once per 24 hours (cached)
38
+
- Shows toast notification when update is available
39
+
- New module: `lib/auto-update-checker.ts`
40
+
-**13 new unit tests** for RefreshQueue (now 345 total tests)
41
+
42
+
### Changed
43
+
- Token refresh calls now use `queuedRefresh()` instead of direct `refreshAccessToken()` for race condition safety
0 commit comments