Skip to content

fix: raise default recursion limit from 30 to 1000#231

Merged
avoidwork merged 15 commits into
mainfrom
feat/increase-recursion-limit
Jun 14, 2026
Merged

fix: raise default recursion limit from 30 to 1000#231
avoidwork merged 15 commits into
mainfrom
feat/increase-recursion-limit

Conversation

@avoidwork

@avoidwork avoidwork commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Description

Raises the agent's default LangGraph recursion limit from 30 to 1000 to prevent premature stalling during complex multi-step tasks. Fixes #229.

Type of Change

  • Bugfix (non-breaking change which fixes an issue)

Files Changed

  • src/config/schemas.js — Updated AgentSchema.recursionLimit default from 30 to 1000, and DEFAULT_CONFIG.agent.recursionLimit from 30 to 1000
  • config.yaml — Updated agent.recursionLimit from 30 to 1000
  • README.md — Updated environment variable and config reference tables
  • tests/unit/config.test.js — Added 2 tests for agent.recursionLimit default (1000) and custom value acceptance
  • openspec/changes/archive/2026-06-14-increase-recursion-limit/ — OpenSpec change archived

Testing

  • Config schema validation tests pass (1120/1121 — 1 pre-existing flaky cron_sync test, unrelated)
  • Lint passes with 0 warnings, 0 errors
  • New tests verify default is 1000 and custom values are accepted

Coverage

  • 100% line coverage maintained

Checklist

  • npm run lint passes
  • Tests pass
  • No forbidden patterns used
  • Conventional Commit style applied

Related

Fixes #229

@avoidwork avoidwork changed the title feat: increase-recursion-limit — raise default from 30 to 1000 fix: raise default recursion limit from 30 to 1000 Jun 14, 2026
@avoidwork avoidwork enabled auto-merge (squash) June 14, 2026 16:39
@avoidwork avoidwork disabled auto-merge June 14, 2026 16:39
@avoidwork avoidwork enabled auto-merge (squash) June 14, 2026 16:45
@avoidwork avoidwork merged commit 94b917f into main Jun 14, 2026
2 checks passed
@avoidwork avoidwork deleted the feat/increase-recursion-limit branch June 14, 2026 16:45
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.

Madz stops working without providing an output or completion

1 participant