发布

  • [NA] [DEV] fix: point cost-api session auth at comet-backend in platform mode (#7399)

    frostbyte_neo 发布于 2026-07-08 10:45:47 +00:00

    In PLATFORM_ENABLED mode, export PLATFORM_BASE_URL=http://localhost:${EM_BACKEND_PORT} for cost-api so its session-delegation auth (require_workspace -> POST {platform_base_url}/opik/auth-session) targets comet-backend (the React service), not the Opik backend (:8080 default, which doesn't serve /opik/auth-session -> the AI-Spend endpoints 403). No-op in OSS mode. Exported rather than placed in the env prefix because an expanded ${..:+name=val} prefix word is parsed by bash as the command, not an assignment.

    Co-authored-by: Claude Opus 4.8 (1M context) noreply@anthropic.com

    下载附件