Persistent WS connection and auto-create initial tab

- Connect WS at extension startup via maintainConnection() loop
- Auto-retry every 5 seconds silently (no connecting badge)
- Never disconnect WS based on tab count
- Rename ConnectionState 'disconnected' to 'idle', remove global 'connecting'
- Fix race condition with tabGroupQueue for syncTabGroup/disconnectEverything/onTabUpdated
- Add auto-create initial tab when Playwright connects (PLAYWRITER_AUTO_ENABLE env var)
- Add test for auto-create feature
This commit is contained in:
Tommy D. Rossi
2026-01-01 01:09:08 +01:00
parent c15cf5947a
commit 178387ec97
8 changed files with 276 additions and 153 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
export type ConnectionState = 'disconnected' | 'reconnecting' | 'connected' | 'error'
export type ConnectionState = 'idle' | 'connected' | 'extension-replaced'
export type TabState = 'connecting' | 'connected' | 'error'
export interface TabInfo {