From ee0fdcb6c8bbf49d413da7c9ae8b85c3864b285d Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Mon, 8 Jun 2026 23:56:43 -0300 Subject: [PATCH] docs(env): document COMMAND_CODE_VERSION override (#3462 follow-up) #3462 added a process.env.COMMAND_CODE_VERSION read but did not document it, tripping the env-doc-sync gate on the release branch (PR-merges bypass the pre-commit check-docs-sync hook). Add the var to .env.example + ENVIRONMENT.md. Co-Authored-By: Claude Opus 4.8 (1M context) --- .env.example | 7 +++++++ docs/reference/ENVIRONMENT.md | 1 + 2 files changed, 8 insertions(+) diff --git a/.env.example b/.env.example index 29a3aeffe8..f77e0f2f37 100644 --- a/.env.example +++ b/.env.example @@ -1275,6 +1275,13 @@ APP_LOG_TO_FILE=true # Used by: src/app/api/providers/command-code/auth/shared.ts. # COMMAND_CODE_CALLBACK_PORT= +# ── Command Code CLI version header ── +# Value sent as the x-command-code-version header to the Command Code upstream. +# Overrides the built-in default; bump if the upstream requires a newer CLI version. +# Used by: open-sse/executors/commandCode.ts +# Default: 0.33.2 +# COMMAND_CODE_VERSION=0.33.2 + # ── MITM debug proxy (development only) ── # Used by: src/mitm/server.cjs — captures upstream traffic for inspection. # MITM_LOCAL_PORT=443 diff --git a/docs/reference/ENVIRONMENT.md b/docs/reference/ENVIRONMENT.md index 595a764a8c..e7403eb26f 100644 --- a/docs/reference/ENVIRONMENT.md +++ b/docs/reference/ENVIRONMENT.md @@ -859,6 +859,7 @@ Provider quota endpoints, network tunnels (Tailscale, Ngrok, MITM debug proxy), | `CONTEXT_RESERVE_TOKENS` | `1024` | `open-sse/services/contextManager.ts` | Tokens reserved for completion output when computing prompt budgets. | | `MODEL_ALIAS_COMPAT_ENABLED` | enabled | `open-sse/services/model.ts` | Toggle the legacy model-alias compatibility layer used by older clients. | | `COMMAND_CODE_CALLBACK_PORT` | _(unset)_ | `src/app/api/providers/command-code/auth/shared.ts` | Local port used for OAuth-style callbacks from the Command Code CLI helper. | +| `COMMAND_CODE_VERSION` | `0.33.2` | `open-sse/executors/commandCode.ts` | Value sent as the `x-command-code-version` header to the Command Code upstream. Override to bump the CLI version. | | `MITM_LOCAL_PORT` | `443` | `src/mitm/server.cjs` | Local bind port for the MITM debug proxy. | | `MITM_DISABLE_TLS_VERIFY` | `0` | `src/mitm/server.cjs` | Set `1` to disable upstream TLS verification (development only). | | `ONEPROXY_ENABLED` | `true` | `src/lib/oneproxySync.ts` | Enable the 1Proxy egress pool sync. |