Claude Code Claude Opus 4.6 commited on
Commit
446051b
Β·
1 Parent(s): 57701c5

Claude Code: Add WORKER_MODE=auto to .env.example for guaranteed agent startup

Browse files

The entrypoint.sh regenerates .env from .env.example on container startup.
Previously, WORKER_MODE was not set, causing the worker to potentially not start.
Now explicitly setting WORKER_MODE=auto ensures the agent loop is enabled.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. .env.example +9 -0
.env.example CHANGED
@@ -26,6 +26,15 @@
26
  OPENCLAW_PASSWORD=huggingclaw
27
 
28
 
 
 
 
 
 
 
 
 
 
29
  # ─── DATA PERSISTENCE ────────────────────────────────────────────────────
30
  #
31
  # HuggingClaw auto-syncs the ~/.openclaw directory to a private HF Dataset
 
26
  OPENCLAW_PASSWORD=huggingclaw
27
 
28
 
29
+ # ─── WORKER MODE ─────────────────────────────────────────────────────────
30
+ #
31
+ # Control whether the agent worker loop runs. Required for agent to process thoughts.
32
+ #
33
+ # [RECOMMENDED] Default: auto (enables worker on startup)
34
+ #
35
+ WORKER_MODE=auto
36
+
37
+
38
  # ─── DATA PERSISTENCE ────────────────────────────────────────────────────
39
  #
40
  # HuggingClaw auto-syncs the ~/.openclaw directory to a private HF Dataset