refactor: remove the disabled periodic Codex warm-up loop
CODEX_WARMUP_ENABLED defaulted to false and was never set, so the warm-up loop in unified-dashboard never ran. Remove the loop, the `enabled` / `intervalMs` config keys, the `disabled` result and the `shouldSkip` hook it alone used. The fixed-slot usage primer keeps calling runCodexWarmupCycle with forceAttempt exactly as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
17
.env.example
17
.env.example
@@ -46,21 +46,12 @@ STATUS_CHANNEL_ID= # Discord channel ID for live status updat
|
||||
# prefer screenshot/output folders over /home. Comma or path-delimiter separated.
|
||||
# EJCLAW_ATTACHMENT_ALLOWED_DIRS=~/Pictures/Screenshots,~/Downloads/ejclaw-images
|
||||
|
||||
# --- Codex warm-up (optional, disabled by default) ---
|
||||
# Sends a tiny real Codex prompt only when both 5h and 7d usage are 0%, so
|
||||
# reset countdown starts once after a fresh quota window. Keep disabled if
|
||||
# OpenAI changes policy or starts blocking automated warm-up prompts.
|
||||
# Normally only set this one line; the other knobs have conservative defaults.
|
||||
# CODEX_WARMUP_ENABLED=false
|
||||
# --- Codex usage primer ---
|
||||
# The usage primer sends a tiny real Codex prompt at fixed KST slots
|
||||
# (08/13/18/23). These keys override its prompt, model and timeout.
|
||||
# CODEX_WARMUP_PROMPT=Reply exactly OK. Do not run tools.
|
||||
# CODEX_WARMUP_MODEL= # Defaults to CODEX_MODEL
|
||||
# CODEX_WARMUP_INTERVAL_MS=300000 # Check every 5min
|
||||
# CODEX_WARMUP_MIN_INTERVAL_MS=18300000 # Per-account minimum gap: 5h5m
|
||||
# CODEX_WARMUP_STAGGER_MS=1800000 # Global gap between accounts: 30min
|
||||
# CODEX_WARMUP_MAX_USAGE_PCT=0 # Only warm accounts at/below this 5h usage
|
||||
# CODEX_WARMUP_MAX_D7_USAGE_PCT=0 # Only warm accounts at/below this 7d usage
|
||||
# CODEX_WARMUP_MAX_CONSECUTIVE_FAILURES=2
|
||||
# CODEX_WARMUP_FAILURE_COOLDOWN_MS=21600000 # Back off 6h after repeated failure
|
||||
# CODEX_WARMUP_COMMAND_TIMEOUT_MS=120000
|
||||
|
||||
# --- Per-role model overrides (paired rooms) ---
|
||||
# Override global CLAUDE_MODEL/CODEX_MODEL per role.
|
||||
|
||||
Reference in New Issue
Block a user