The cache renderer and twelve unit tests built their Jinja2
environments with autoescape=False (CodeQL py/jinja2/autoescape-false,
alert 958 and fifteen test alerts) behind `# noqa: S701` markers. They
now use select_autoescape(default_for_string=False), the form the
repository already uses in over forty other modules. Every template
the cache renderer loads ends in .j2, so nothing is escaped: its
output stays byte-identical for all five distros, also with markup
characters injected into every variable, while a control run with
autoescape=True differs in exactly those injected cases.
🎯 Fix: 95 %
💥 Break: 2 %
💸 Cost: –
⏱️ Time: –
🛡️ Security: 100 %
🏆 Score: 93
🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 %
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a multi-network host one gateway serves the clearnet domain and its onion sibling, but allowedOrigins carried only the canonical URL. The Tor pass opens http://claw.ai.<onion>, so the gateway closed every Control UI websocket with 4008 before the pairing step and the UI reported origin-not-allowed (142 onion origins, 120 closes in the Funkwhale#1 rescue log of run 40042690056).
OPENCLAW_CONTROL_UI_ORIGINS takes lookup('network_urls', OPENCLAW_URL): one URL per network sibling with that sibling's scheme, canonical first, and the URL alone on a single-network host.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>