Tommy D. Rossi
90179dea17
handle connecting ws
2026-01-01 03:12:30 +01:00
Tommy D. Rossi
ef6ab59351
Fix auto-enable to work without delay by skipping duplicate Target.attachedToTarget
...
Move auto-create logic from onOpen to Target.setAutoAttach handler so it runs
synchronously in the CDP command flow. Add skipAttachedEvent option to extension's
attachTab to prevent sending Target.attachedToTarget when the relay will send it
via the Target.setAutoAttach response handler.
2026-01-01 02:53:10 +01:00
Tommy D. Rossi
178387ec97
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
2026-01-01 01:14:16 +01:00
Tommy D. Rossi
02fda90578
add more logs on detach
2025-12-31 16:07:57 +01:00
Tommy D. Rossi
3d0d280f6a
Fix context menu duplicate ID crash and add global error logging
2025-12-31 15:45:32 +01:00
Tommy D. Rossi
b19b7ae72d
change colors of badges
2025-12-30 14:19:33 +01:00
Tommy D. Rossi
449cd45e71
use addScriptToEvaluateOnNewDocument
2025-12-30 14:00:40 +01:00
Tommy D. Rossi
e729cc4fa5
Copy Playwriter Element Reference'
2025-12-30 13:32:53 +01:00
Tommy D. Rossi
802abde340
fix: only skip disconnect for connecting tabs, not all non-connected
2025-12-30 13:25:44 +01:00
Tommy D. Rossi
561a5d3730
do not detach not connected tabs
2025-12-30 13:21:58 +01:00
Tommy D. Rossi
cdc5d127a5
Update types.ts
2025-12-30 13:09:26 +01:00
Tommy D. Rossi
a4803cab99
Enable/disable extension when tabs are manually added/removed from playwriter group
2025-12-29 21:51:08 +01:00
Tommy D. Rossi
ba84eb5ac1
add right context menu for pinning
2025-12-28 23:36:20 +01:00
Tommy D. Rossi
92b301c1c0
sync icons on extension first load
2025-12-28 22:15:08 +01:00
Tommy D. Rossi
59161f6147
nn
2025-12-28 22:13:58 +01:00
Tommy D. Rossi
a4e7ce10bd
move cdp-relay and protocol out of extension subfolder
2025-12-28 21:05:04 +01:00
Tommy D. Rossi
63856afb0b
fix Runtime.enable race condition with event-based synchronization
...
Replace arbitrary sleep(200ms) with proper wait for Runtime.executionContextCreated
event in the relay server. This ensures pages are fully ready before Runtime.enable
returns to Playwright, fixing intermittent 'page not found' errors.
2025-12-28 20:29:21 +01:00
Tommy D. Rossi
9b115ea2eb
set tabs to connecting on extension replace
2025-12-28 12:20:50 +01:00
Tommy D. Rossi
f1f6b2f015
Update background.ts
2025-12-27 19:51:13 +01:00
Tommy D. Rossi
e63dc52c68
Update background.ts
2025-12-27 18:33:19 +01:00
Tommy D. Rossi
c2d13c0363
add editor. use different port in tests
2025-12-26 00:01:05 +01:00
Tommy D. Rossi
150ad47307
fix about:blank gray icon and add auto-recovery after extension replacement
2025-12-22 19:29:25 +01:00
Tommy D. Rossi
c84edb0afe
support about blank
2025-12-22 18:17:32 +01:00
Tommy D. Rossi
2decaf6b83
refactor: add sleep utility, reduce extension wait to 1s, add comments for CDP race condition
2025-12-21 17:43:11 +01:00
Tommy D. Rossi
12dbad1ab4
do not send CDP commands too soon.
2025-12-21 17:20:07 +01:00
Tommy D. Rossi
6809ebea72
restart ws process if already running with different version
2025-12-21 16:48:07 +01:00
Tommy D. Rossi
13031bd03e
use green icons. do not tell about reset on timeouts
2025-12-20 21:31:48 +01:00
Tommy D. Rossi
f97052f4f6
refactor tab group sync to be reactive and handle edge cases
2025-12-19 19:22:36 +01:00
Tommy D. Rossi
b0f786a166
less root crashes in mcp. more error logs.
2025-12-19 19:08:24 +01:00
Tommy D. Rossi
04b757a7c8
add support for tab groups. green
2025-12-19 18:34:39 +01:00
Tommy D. Rossi
a2decc80e0
add distinct icons for disconnected and restricted tab states
2025-12-18 15:43:50 +01:00
Tommy D. Rossi
df691c2fc5
Update background.ts
2025-11-28 21:39:05 +01:00
Tommy D. Rossi
1947a5eb6b
show connected tab count badge on extension icon
2025-11-28 15:18:11 +01:00
Tommy D. Rossi
632835b5df
do not try to reconnect on connecting
2025-11-25 10:39:17 +01:00
Tommy D. Rossi
5d4abb3cde
add a missing disconnected state
2025-11-25 10:36:40 +01:00
Tommy D. Rossi
0df52a08c0
removed relayConnection.ts. added diff for ai snapshot. use search param
2025-11-25 10:35:39 +01:00
Tommy D. Rossi
664f0c6355
removed heavy log
2025-11-24 21:27:06 +01:00
Tommy D. Rossi
f22cdbb4ad
do not fail on closing target
2025-11-24 19:41:06 +01:00
Tommy D. Rossi
48089d1f40
better handling of events. added tab search via targetId
2025-11-24 19:23:57 +01:00
Tommy D. Rossi
7eb5060d71
fix tsc
2025-11-24 16:40:07 +01:00
Tommy D. Rossi
a13906de73
make icon green on new pages. add test for it.
2025-11-24 15:54:11 +01:00
Tommy D. Rossi
93c827ac8c
fix icon on reload
2025-11-23 18:14:12 +01:00
Tommy D. Rossi
6b6ac216f2
add disconnectEverything function. add new test where playwright sees
...
existing page tab
2025-11-22 23:49:40 +01:00
Tommy D. Rossi
5c64ecde08
better logs for maps and sets
2025-11-22 14:52:51 +01:00
Tommy D. Rossi
1a18cf90ca
add in depth comment on how runtime disable is needed
2025-11-22 14:40:44 +01:00
Tommy D. Rossi
804f465b59
send runtime.disable then enable
2025-11-22 14:40:31 +01:00
Tommy D. Rossi
fb1d06edaa
add support for logging from extension
2025-11-22 13:41:21 +01:00
Tommy D. Rossi
bc67feeeeb
use new extension ws socket
2025-11-22 13:08:05 +01:00
Tommy D. Rossi
c658c153b2
add concurrent pages test
2025-11-22 12:28:21 +01:00
Tommy D. Rossi
f2efb12dab
add more globals in background.ts toggleExtensionForActiveTab
2025-11-22 11:43:38 +01:00