fix(extension): resolve Native UI icon text gluing causing DOM observer signal drop #task-603

This commit is contained in:
Variet Worker
2026-04-09 23:13:49 +09:00
parent e4f674ec9f
commit 22e1799d66
7 changed files with 123 additions and 26 deletions

View File

@@ -112,6 +112,20 @@ export function startHttpBridge(ctx: HttpBridgeContext, sdk: any): Promise<numbe
return;
}
if (req.method === 'POST' && url.pathname === '/dump-html') {
let dumpBody = '';
req.on('data', (c: string) => dumpBody += c);
req.on('end', () => {
try {
const fs = require('fs');
const path = require('path');
fs.writeFileSync(path.join(ctx.bridgePath, 'dump_html.json'), dumpBody, 'utf-8');
} catch(e) {}
res.writeHead(200); res.end('ok');
});
return;
}
// GET /ping — health check
if (url.pathname === '/ping') {
res.writeHead(200); res.end('pong');