Files
clawX/harness/specs/rules/host-api-fallback-policy.md
2026-05-01 00:22:30 +08:00

559 B

id, title, type, appliesTo, requiredTests
id title type appliesTo requiredTests
host-api-fallback-policy Host API Fallback Policy ai-coding-rule
gateway-backend-communication
tests/unit/host-api.test.ts

Renderer Host API requests must use hostapi:fetch IPC proxy by default.

Browser fallback to http://127.0.0.1:13210 is allowed only inside src/lib/host-api.ts, and only when clawx:allow-localhost-fallback is explicitly enabled.

The Host API token must be obtained through hostapi:token; pages and components must not construct Host API localhost requests directly.