From c91a7bcdc0831011618896044bb47f49c4f4a4a5 Mon Sep 17 00:00:00 2001 From: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> Date: Fri, 11 Sep 2026 18:27:19 -0300 Subject: [PATCH] fix(providers): document TRAE_WEB_ORIGIN in .env.example (#12190) --- .env.example | 5 +++++ scripts/check/check-env-doc-sync.mjs | 1 + 2 files changed, 6 insertions(+) diff --git a/.env.example b/.env.example index 67097b7104..ba83f21c4e 100644 --- a/.env.example +++ b/.env.example @@ -1175,6 +1175,11 @@ CODEX_OAUTH_CLIENT_ID=app_EMoamEEZ73f0CkXaXp7hrann # Trae OAuth token override. Used by: open-sse/executors/trae.ts. # TRAE_TOKEN= +# Trae web client Origin/Referer override (fleet-wide bump if Trae moves hosts +# again without a code change). Default: https://work.trae.ai. +# Used by: open-sse/executors/trae.ts. +# TRAE_WEB_ORIGIN=https://work.trae.ai + # ── Gemini / Antigravity (Google-based) ── # These providers ship public OAuth client_id/secret values embedded in their # public CLIs. Defaults are baked into the code via diff --git a/scripts/check/check-env-doc-sync.mjs b/scripts/check/check-env-doc-sync.mjs index 374472f986..469a2bfabb 100644 --- a/scripts/check/check-env-doc-sync.mjs +++ b/scripts/check/check-env-doc-sync.mjs @@ -283,6 +283,7 @@ const ENV_ONLY_ALLOWLIST = new Set([ "PII_WINDOW_SIZE", "TRAE_STREAM_TIMEOUT_MS", "TRAE_TOKEN", + "TRAE_WEB_ORIGIN", ]); // ─── Parsing helpers ───────────────────────────────────────────────────────