somratpro commited on
Commit
7c42a6c
Β·
1 Parent(s): 5015cf0

chore: remove unused CLOUDFLARE_ACCOUNT_ID from environment configuration and startup script

Browse files
Files changed (2) hide show
  1. .env.example +0 -3
  2. start.sh +6 -3
.env.example CHANGED
@@ -62,9 +62,6 @@ OPENCODE_ALLOW_ALL_MODELS=true
62
  # Get it from: https://dash.cloudflare.com/profile/api-tokens
63
  # CLOUDFLARE_WORKERS_TOKEN=xxx
64
 
65
- # Your Cloudflare account ID
66
- # CLOUDFLARE_ACCOUNT_ID=xxx
67
-
68
  # ============================================================================
69
  # Database Backup Configuration
70
  # ============================================================================
 
62
  # Get it from: https://dash.cloudflare.com/profile/api-tokens
63
  # CLOUDFLARE_WORKERS_TOKEN=xxx
64
 
 
 
 
65
  # ============================================================================
66
  # Database Backup Configuration
67
  # ============================================================================
start.sh CHANGED
@@ -169,13 +169,16 @@ if [ -f "${_CF_ENV}" ]; then
169
  fi
170
 
171
  # ── Cloudflare proxy flag (applied inline to Paperclip only, not exported globally)
172
- # Exporting NODE_OPTIONS globally breaks agent CLIs (gemini, claude) that spawn
173
- # subprocesses and inherit it, causing relaunch failures.
174
  _CF_NODE_OPTS=""
175
- if [ -f /app/cloudflare-proxy.js ]; then
176
  _CF_NODE_OPTS="--require /app/cloudflare-proxy.js"
177
  fi
178
 
 
 
 
179
  # ── Background sync loop ──────────────────────────────────────────────────────
180
  if [ -n "${HF_TOKEN:-}" ]; then
181
  (
 
169
  fi
170
 
171
  # ── Cloudflare proxy flag (applied inline to Paperclip only, not exported globally)
172
+ # Only enable if proxy is actually configured. Otherwise agent CLIs (claude, gemini,
173
+ # codex) inherit it via subprocess env and break their HTTP requests.
174
  _CF_NODE_OPTS=""
175
+ if [ -n "${CLOUDFLARE_PROXY_URL:-}" ] && [ -f /app/cloudflare-proxy.js ]; then
176
  _CF_NODE_OPTS="--require /app/cloudflare-proxy.js"
177
  fi
178
 
179
+ # ── Disable Gemini CLI sandbox (would try to start Docker inside Docker) ─────
180
+ export GEMINI_SANDBOX=false
181
+
182
  # ── Background sync loop ──────────────────────────────────────────────────────
183
  if [ -n "${HF_TOKEN:-}" ]; then
184
  (