Skip to content

chore: bump version to 1.0.2 (#10)#11

Merged
beerui merged 1 commit intofix/free-tabfrom
main
Jan 21, 2026
Merged

chore: bump version to 1.0.2 (#10)#11
beerui merged 1 commit intofix/free-tabfrom
main

Conversation

@beerui
Copy link
Owner

@beerui beerui commented Jan 21, 2026

  • fix: reinitialize connection when page becomes visible after idle timeout

When all tabs become invisible and the SharedWorker disconnects due to idle timeout, the tabs are removed from the Worker's tab list. When user switches back to the page, the TAB_VISIBILITY message fails because the tab no longer exists.

This fix adds a reinitialize() method that:

  • Sends TAB_INIT to re-add the tab to the Worker
  • Re-registers all callbacks
  • Called when page becomes visible and connection is not established
  • fix: handle tab not found by notifying tab to reinitialize

When SharedWorker's TAB_VISIBILITY message is received but the tab no longer exists in Worker's tab list (due to cleanup timer or idle timeout removal), Worker now sends WORKER_TAB_NOT_FOUND message back to the tab, triggering reinitialization.

Changes:

  • Add WORKER_TAB_NOT_FOUND message type to WorkerToTabMessageType
  • Modify updateTabVisibility to return boolean indicating success
  • Send TAB_NOT_FOUND notification when tab doesn't exist
  • Handle WORKER_TAB_NOT_FOUND in SharedWorkerManager by calling reinitialize()
  • chore: bump version to 1.0.1

  • chore: update settings.local.json to add new Bash commands

  • Added "Bash(gh pr view:)" and "Bash(gh pr edit:)" to the list of available commands for enhanced functionality.
  • chore: bump version to 1.0.2

* fix: reinitialize connection when page becomes visible after idle timeout

When all tabs become invisible and the SharedWorker disconnects due to idle timeout,
the tabs are removed from the Worker's tab list. When user switches back to the page,
the TAB_VISIBILITY message fails because the tab no longer exists.

This fix adds a reinitialize() method that:
- Sends TAB_INIT to re-add the tab to the Worker
- Re-registers all callbacks
- Called when page becomes visible and connection is not established

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: handle tab not found by notifying tab to reinitialize

When SharedWorker's TAB_VISIBILITY message is received but the tab
no longer exists in Worker's tab list (due to cleanup timer or idle
timeout removal), Worker now sends WORKER_TAB_NOT_FOUND message back
to the tab, triggering reinitialization.

Changes:
- Add WORKER_TAB_NOT_FOUND message type to WorkerToTabMessageType
- Modify updateTabVisibility to return boolean indicating success
- Send TAB_NOT_FOUND notification when tab doesn't exist
- Handle WORKER_TAB_NOT_FOUND in SharedWorkerManager by calling reinitialize()

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore: bump version to 1.0.1

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore: update settings.local.json to add new Bash commands

- Added "Bash(gh pr view:*)" and "Bash(gh pr edit:*)" to the list of available commands for enhanced functionality.

* chore: bump version to 1.0.2

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

---------

Co-authored-by: 刘勇杰 <motou2017@163.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
@beerui beerui merged commit b6de036 into fix/free-tab Jan 21, 2026
1 check failed
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