Skip to content

fix(extension): stateless SW, pull tab state instead of ports#596

Merged
gaomeng1900 merged 5 commits into
mainfrom
refactor/stateless-sw
Jul 7, 2026
Merged

fix(extension): stateless SW, pull tab state instead of ports#596
gaomeng1900 merged 5 commits into
mainfrom
refactor/stateless-sw

Conversation

@gaomeng1900

@gaomeng1900 gaomeng1900 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

What

Refactor TabsController to pull tab state on demand instead of maintaining long-lived ports in the MV3 service worker. Removes setupTabEventsPort and all port-based tab event pushing so the background worker stays fully stateless and survives idle kills / stalled updates without leaving the side panel unresponsive.

Closes

Supersedes

Type

  • Breaking change
  • Bug fix
  • Feature / Improvement
  • Refactor / Chores
  • Documentation / Website / Demo / Testing

Testing

  • Tested in modern browsers
  • No console errors
  • Types/doc added

Requirements / 要求

  • I have read and follow the Code of Conduct and Contributing Guide . / 我已阅读并遵守行为准则。
  • This PR is NOT generated by a bot or AI agent acting autonomously. I have authored or meaningfully reviewed every change. / 此 PR 不是由 bot 或 AI 自主生成的,我已亲自编写或充分审查了每一处变更。

@gaomeng1900 gaomeng1900 changed the title fix(extension): stateless SW — pull tab state instead of ports fix(extension): stateless SW, pull tab state instead of ports Jul 7, 2026
@gaomeng1900 gaomeng1900 merged commit 35ff6d4 into main Jul 7, 2026
3 of 4 checks passed
@gaomeng1900 gaomeng1900 deleted the refactor/stateless-sw branch July 7, 2026 13:08
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