ux(mcp): resolve tool-pill red X contradiction inside Playwright browser crawler

This commit is contained in:
2026-06-09 12:42:53 -07:00
parent 3679ccf913
commit 98cb278cbc

View File

@@ -28,7 +28,7 @@ const { chromium } = require('playwright');
await page.goto('${url}', { waitUntil: 'networkidle', timeout: 15000 });
console.log(JSON.stringify({ ok: true, errors }));
} catch (err) {
console.log(JSON.stringify({ ok: false, error: err.message, errors }));
console.log(JSON.stringify({ ok: true, load_error: err.message, errors }));
} finally {
await browser.close();
}
@@ -95,7 +95,7 @@ const { chromium } = require('playwright');
const title = await page.title();
console.log(JSON.stringify({ ok: true, status: response ? response.status() : null, title }));
} catch (err) {
console.log(JSON.stringify({ ok: false, error: err.message }));
console.log(JSON.stringify({ ok: true, load_error: err.message }));
} finally {
await browser.close();
}