fix about:blank gray icon and add auto-recovery after extension replacement

This commit is contained in:
Tommy D. Rossi
2025-12-22 19:29:25 +01:00
parent b8b2b468d2
commit 150ad47307
6 changed files with 41 additions and 3 deletions
+7
View File
@@ -1,5 +1,12 @@
# Changelog
## 0.0.27
### Patch Changes
- **Fixed gray icon on about:blank pages**: `about:blank` pages now show the black (clickable) icon instead of gray (restricted). Chrome returns `undefined` for `tab.url` on blank pages, which was incorrectly treated as restricted.
- **Auto-recovery after extension replacement**: When another extension instance takes over the connection, the replaced extension now polls `/extension/status` every 3 seconds. When the slot becomes free, it clears the error state so the user can click to reconnect.
## 0.0.26
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "playwriter",
"description": "",
"version": "0.0.26",
"version": "0.0.27",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
+4
View File
@@ -281,6 +281,10 @@ export async function startPlayWriterCDPRelayServer({ port = 19988, host = '127.
return c.json({ version: VERSION })
})
app.get('/extension/status', (c) => {
return c.json({ connected: extensionWs !== null })
})
app.post('/mcp-log', async (c) => {
try {
const { level, args } = await c.req.json()