somratpro commited on
Commit
08ebfa3
Β·
1 Parent(s): bc525e1

chore: update startup script configuration for HuggingClip service

Browse files
Files changed (1) hide show
  1. start.sh +6 -1
start.sh CHANGED
@@ -176,8 +176,13 @@ 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
 
176
  _CF_NODE_OPTS="--require /app/cloudflare-proxy.js"
177
  fi
178
 
179
+ # ── Gemini CLI environment ───────────────────────────────────────────────────
180
+ # Disable sandbox (would try to start Docker inside Docker)
181
  export GEMINI_SANDBOX=false
182
+ # Trust the workspace β€” paperclip user runs from /app/paperclip (root-owned).
183
+ # Without this, gemini's relaunch child fails the trust check and parent reports
184
+ # "Failed to relaunch the CLI process."
185
+ export GEMINI_CLI_TRUST_WORKSPACE=true
186
 
187
  # ── Background sync loop ──────────────────────────────────────────────────────
188
  if [ -n "${HF_TOKEN:-}" ]; then