Skip to content

Conversation

@11me
Copy link
Owner

@11me 11me commented Jan 13, 2026

No description provided.

11me added 2 commits January 13, 2026 22:25
Chrome MV3 service workers can be inactive when popup opens, causing
sendMessage to return undefined. Added exponential backoff retry logic
(50ms, 100ms, 200ms) to handle service worker wake-up delay.

- Add MESSAGE_RETRY_DELAYS_MS constant for backoff intervals
- Validate response is not undefined before returning
- Check chrome.runtime.lastError in Chrome context
- Add 5 new tests for retry scenarios
- Add localStorage guard in storage.ts for service worker context
- Fix isChrome detection using browser.runtime.getBrowserInfo
- Add ErrorResponse type to RuntimeResponse union
- Remove syncToLocalStorage calls from background context
- Add config gating in page-script to ensure correct settings on first fetch
- Dispatch CustomEvent from page-inject for faster config delivery
- Move ensureConfigReady after URL filtering to avoid delaying non-API requests
- Bump version to 1.6.2
@11me 11me force-pushed the feat/chrome-support branch from dc1730a to 2f5ab21 Compare January 13, 2026 19:27
Copy link
Owner Author

@11me 11me left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed after rebase onto master; conflicts resolved. Config gating now waits only for ChatGPT API requests and resolves after timeout to avoid repeated delays. Error responses are typed/handled. No blockers found. Tests not run in this review.

@11me 11me merged commit 66444d0 into master Jan 13, 2026
1 check passed
@11me 11me deleted the feat/chrome-support branch January 14, 2026 20:55
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.

2 participants