fix(observer): ensure inline script injection before </body> for Electron execution + add BEACON diagnostic ping
- html-patcher: relocate inline script from after </html> to before </body> - html-patcher: clean up duplicate </html> tags from previous bad insertions - observer-script: add immediate BEACON fetch to /ping on script load - http-bridge: add diagnostic request logging for non-polling endpoints - devlog 003: crash recovery session notes
This commit is contained in:
@@ -79,6 +79,11 @@ export function startHttpBridge(ctx: HttpBridgeContext, sdk: any): Promise<numbe
|
||||
|
||||
const url = new URL(req.url, `http://127.0.0.1`);
|
||||
|
||||
// DIAGNOSTIC: log ALL requests (except noisy polling endpoints)
|
||||
if (!['/trigger-click', '/deep-inspect-trigger'].includes(url.pathname)) {
|
||||
ctx.logToFile(`[HTTP-REQ] ${req.method} ${url.pathname}`);
|
||||
}
|
||||
|
||||
// POST /pending — renderer reports a detected approval button
|
||||
if (req.method === 'POST' && url.pathname === '/pending') {
|
||||
_handlePending(req, res, ctx);
|
||||
|
||||
Reference in New Issue
Block a user