mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-16 13:53:42 +02:00
The HTML challenge fix already keeps standalone CDN block pages out of the DNS transport path. This follow-up caches the HTML classification so status-prefixed non-HTML failures do not pay for the same scan twice and the control flow stays simpler. Constraint: Keep behavior identical for both status-prefixed HTML pages and standalone HTML challenge pages Rejected: Inline the helper into the status branch only | would duplicate the standalone HTML branch logic Confidence: high Scope-risk: narrow Directive: If this formatter grows more branches, keep a single HTML classification result and reuse it through the decision tree Tested: oxfmt --check src/shared/assistant-error-format.ts Tested: node scripts/test-projects.mjs src/agents/pi-embedded-helpers.formatassistanterrortext.test.ts src/agents/pi-embedded-helpers.isbillingerrormessage.test.ts