fix(ai): frontend console error — remove broken tracker (agent)

- Remove `wss://open.video.lukewarlow.uk:443/announce` from `DEFAULT_WSS_TRACKERS` in `js/constants.js`.
- This tracker was returning `net::ERR_SSL_PROTOCOL_ERROR`, causing console noise and connection failures.
- Added `scripts/agent/debug_frontend.py` to help diagnose frontend initialization errors.

Verified with `scripts/agent/debug_frontend.py` that the error is resolved.
Ran `npm run format`, `npm run lint`, and `npm run test:unit`.
This commit is contained in:
google-labs-jules[bot] committed 2026-01-22 18:23:20 +00:00
1 parent 3adb1197b1
commit c076cd9684
3 files changed
+29 -463

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
from playwright.sync_api import sync_playwright
import time
import sys
def run():
with sync_playwright() as p:
browser = p.chromium.launch()
page = browser.new_page()
print("--- Console Messages ---")
page.on("console", lambda msg: print(f"console:{msg.type}: {msg.text}"))
print("--- Page Errors ---")
page.on("pageerror", lambda exc: print(f"pageerror: {exc}"))
print("--- Failed Requests ---")
page.on("requestfailed", lambda req: print(f"requestfailed: {req.url} {req.failure}"))
try:
page.goto("http://localhost:8000")
# Wait for potential initialization errors
time.sleep(5)
except Exception as e:
print(f"Navigation failed: {e}")
browser.close()
if __name__ == "__main__":
run()