Orca-Code-Review/scripts/control-plane.mjs
Claude 8542da1818
fix: control-plane URLs preserve gateway sub-paths (self-hosted deployments)
settings.mjs and report.mjs derived their endpoints from new URL(url).origin,
discarding any path prefix a self-hosted gateway is mounted under —
https://host/orca/v1/... silently sent settings/report calls to
https://host/api/... (404: settings fell back to defaults, reports dropped).
Shared controlPlaneBase() strips only the trailing /v1 relay segment.
node:test: 116 pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AC1sVtj2Jc9cAX7FENZ1hG
2026-07-04 10:00:59 +00:00

17 lines
899 B