Skip to content

fix(cron): prevent every schedule from firing in infinite loop#80

Merged
steipete merged 1 commit intoopenclaw:mainfrom
jamesgroat:fix/cron-every-schedule-infinite-loop
Jan 2, 2026
Merged

fix(cron): prevent every schedule from firing in infinite loop#80
steipete merged 1 commit intoopenclaw:mainfrom
jamesgroat:fix/cron-every-schedule-infinite-loop

Conversation

@jamesgroat
Copy link
Contributor

When anchorMs is not provided (always in production), the schedule computed nextRunAtMs as nowMs, causing jobs to fire immediately and repeatedly instead of at the configured interval.

  • Change nowMs <= anchor to nowMs < anchor to prevent early return
  • Add Math.max(1, ...) to ensure steps is always at least 1
  • Add test for anchorMs not provided case

When anchorMs is not provided (always in production), the schedule
computed nextRunAtMs as nowMs, causing jobs to fire immediately and
repeatedly instead of at the configured interval.

- Change nowMs <= anchor to nowMs < anchor to prevent early return
- Add Math.max(1, ...) to ensure steps is always at least 1
- Add test for anchorMs not provided case
@steipete
Copy link
Contributor

steipete commented Jan 2, 2026

Thank you! Reviewing

@steipete steipete merged commit 2d1d5d6 into openclaw:main Jan 2, 2026
3 of 6 checks passed
dgarson referenced this pull request in dgarson/clawdbot Feb 4, 2026
…ndoff

feat: agent handoff, thinking mode fixes and subagent registry
Milofax added a commit to Milofax/openclaw that referenced this pull request Feb 6, 2026
…claw#80)

Add --disable-blink-features=AutomationControlled to Chrome launch args.
This prevents reCAPTCHA v3 from detecting the headless browser via the
navigator.webdriver property, fixing login on Teachable-based sites.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Milofax added a commit to Milofax/openclaw that referenced this pull request Feb 6, 2026
…claw#80)

Add --disable-blink-features=AutomationControlled to Chrome launch args.
This prevents reCAPTCHA v3 from detecting the headless browser via the
navigator.webdriver property, fixing login on Teachable-based sites.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Milofax added a commit to Milofax/openclaw that referenced this pull request Feb 6, 2026
Runtime.enable causes Chrome to emit Runtime.consoleAPICalled events,
which Cloudflare Turnstile and reCAPTCHA v3 detect as automation.
Runtime.evaluate works without it. Combined with rebrowser-patches
on playwright-core, this eliminates the main CDP detection vectors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Milofax added a commit to Milofax/openclaw that referenced this pull request Feb 6, 2026
Milofax added a commit to Milofax/openclaw that referenced this pull request Feb 6, 2026
Takhoffman pushed a commit to Milofax/openclaw that referenced this pull request Feb 13, 2026
…claw#80)

Add --disable-blink-features=AutomationControlled to Chrome launch args.
This prevents reCAPTCHA v3 from detecting the headless browser via the
navigator.webdriver property, fixing login on Teachable-based sites.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
PrivacySmurf pushed a commit to PrivacySmurf/openclaw that referenced this pull request Feb 18, 2026
The new sanitizeForPromptLiteral function (OC-19 hardening) assumes its
input is always a string, but callers like buildAgentSystemPrompt pass
params.workspaceDir which can be undefined at runtime (heartbeat runs,
isolated cron sessions, sub-agent spawns).

This caused TypeError: Cannot read properties of undefined (reading
'replace') on every heartbeat tick and all isolated agentTurn sessions
since the Issue openclaw#80 merge.

Fix: accept undefined|null, return empty string for falsy values.
songliu0403-rgb pushed a commit to songliu0403-rgb/openclaw that referenced this pull request Feb 26, 2026
zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
…e-infinite-loop

fix(cron): prevent every schedule from firing in infinite loop
Piboonsak added a commit to Piboonsak/openclaw_github that referenced this pull request Mar 8, 2026
…rides (openclaw#80)

Sprint 1.5 Cost Optimization:
- Default primary: minimax/minimax-m2.5 (~50-66x cheaper than Opus)
- Analyst role: keeps anthropic/claude-opus-4-6 as primary
- Added per-role model configs: main, analyst, gold-checker, scheduler, worker
- Updated model aliases and fallback chains

Ported from Piboonsak/Openclaw PR openclaw#80
heatherstew44-maker pushed a commit to heatherstew44-maker/openclaw that referenced this pull request Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants