René's URL Explorer Experiment


Title: fix(providers): remove default agent tool-call iteration cap by waleedlatif1 · Pull Request #8829 · simstudioai/sim · GitHub

Open Graph Title: fix(providers): remove default agent tool-call iteration cap by waleedlatif1 · Pull Request #8829 · simstudioai/sim

X Title: fix(providers): remove default agent tool-call iteration cap by waleedlatif1 · Pull Request #8829 · simstudioai/sim

Description: Summary Agent block tool loops no longer stop at a default 20 model round trips; MAX_TOOL_ITERATIONS now caps them only when explicitly set to a positive integer (the execution timeout still bounds a run) At the old cap, non-streaming provider loops exited with the model's final turn still requesting tools: those calls never ran and the turn's preamble text came back as the block output, breaking structured-output consumers downstream Dropped the /MAX_TOOL_ITERATIONS denominator from iteration log lines, updated the env docs, .env.example, and the test mock's doc (mock keeps a finite test cap) Type of Change Bug fix Testing vitest run providers executor/handlers/agent (2150 passed) bun run lint, bun run type-check (apps/sim), bun run check:audits (58 audits), docs-manifest:check Full suite left to CI Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Agent block tool loops no longer stop at a default 20 model round trips; MAX_TOOL_ITERATIONS now caps them only when explicitly set to a positive integer (the execution timeout still bound...

X Description: Summary Agent block tool loops no longer stop at a default 20 model round trips; MAX_TOOL_ITERATIONS now caps them only when explicitly set to a positive integer (the execution timeout still bound...

Opengraph URL: https://github.com/simstudioai/sim/pull/8829

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:80a7744f-e703-0c4e-a627-60faa51dde29
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE75C:2F2AB3:C736DE:1122344:6AFB5728
html-safe-nonce3e63a5dd46853bb5ee4bb00709a902b7f6e2451a38b8fcfdada7fabfba03e52d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzVDOjJGMkFCMzpDNzM2REU6MTEyMjM0NDo2QUZCNTcyOCIsInZpc2l0b3JfaWQiOiI0NjE5MDU5NjcxNjE1NjI1MDAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac441c0dc7f05b2f6ee893b1f6b5615b51514be261275d130abff69f620c5c640f
hovercard-subject-tagpull_request:4794983559
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/8829/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Agent block tool loops no longer stop at a default 20 model round trips; MAX_TOOL_ITERATIONS now caps them only when explicitly set to a positive integer (the execution timeout still bound...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/8829/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8829%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8829%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/8829/files
Reloadhttps://github.com/simstudioai/sim/pull/8829/files
Reloadhttps://github.com/simstudioai/sim/pull/8829/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/agent-pending-tool-callshttps://github.com/simstudioai/sim/tree/fix/agent-pending-tool-calls
Conversation 8 https://github.com/simstudioai/sim/pull/8829
Commits 2 https://github.com/simstudioai/sim/pull/8829/commits
Checks 44 https://github.com/simstudioai/sim/pull/8829/checks
Files changed https://github.com/simstudioai/sim/pull/8829/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8829/files
fix(providers): remove default agent tool-call iteration cap https://github.com/simstudioai/sim/pull/8829/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/8829/files
29b6179 fix(providers): remove default agent tool-call iteration cap waleedlatif1 Oct 9, 2026 https://github.com/simstudioai/sim/pull/8829/commits/29b6179283e9f0398417775b711c0fb2763abd34
11bfe62 docs(providers): note no execution timeout when billing is disabled waleedlatif1 Oct 9, 2026 https://github.com/simstudioai/sim/pull/8829/commits/11bfe6225a4d0b713098ea26509c1fc6574a7e26
Clear filters https://github.com/simstudioai/sim/pull/8829/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8829/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8829/files
environment-variables.mdx https://github.com/simstudioai/sim/pull/8829/files#diff-a4539fbc9b382a1b1d2706cc4bd10704d58d93155a3f7a216e0686629016ed11
.env.example https://github.com/simstudioai/sim/pull/8829/files#diff-4a29ce2c9471f5720a7b21936c0716a37c648ef653d7563bfa140153bb045284
normalize.ts https://github.com/simstudioai/sim/pull/8829/files#diff-985283739d87d062ad7a223c068df4d8226254c3595395852989bee7a4115285
env.ts https://github.com/simstudioai/sim/pull/8829/files#diff-7db3fc610ff89cf819c4eb69b43ec37ae18530e1861f6c322faeb62f8f48f298
index.ts https://github.com/simstudioai/sim/pull/8829/files#diff-16321ba301b4b37e6ec0f1c8c23c7c44ec94c64c8fe182853cb0e6cbb0afb28a
index.ts https://github.com/simstudioai/sim/pull/8829/files#diff-92244480a807def297332120dcdc4194e4456e8afedcd04786ddff18f495d51a
index.ts https://github.com/simstudioai/sim/pull/8829/files#diff-d630c240ddcd03fc91feb9d689a6682ed7b1f46c1509af39d2062c797ca3f381
index.ts https://github.com/simstudioai/sim/pull/8829/files#diff-2764bb65fb46d0b7df70f131f540b1d50cbc86932c85163c9cae302f6fa41dd0
core.ts https://github.com/simstudioai/sim/pull/8829/files#diff-c9d67cab22514b5b80053abf6b14d7f6d4c67dd8f8f661331fb49544b7caffb5
core.ts https://github.com/simstudioai/sim/pull/8829/files#diff-08a8d94bfd29c80408e6c52311d64c5f906c60d0e7a2144ec632f75d271e3492
index.ts https://github.com/simstudioai/sim/pull/8829/files#diff-5dc87b21d7216b477b0ffc10118f46d099ae9416e6ab03f01cf478263f2ec3fa
providers.mock.ts https://github.com/simstudioai/sim/pull/8829/files#diff-7cf6f9bd3d0e1bdc7853ed9c9bda3ec9b7fa059a80682a604405d2eac4af7ad6
apps/docs/content/docs/platform/self-hosting/environment-variables.mdxhttps://github.com/simstudioai/sim/pull/8829/files#diff-a4539fbc9b382a1b1d2706cc4bd10704d58d93155a3f7a216e0686629016ed11
View file https://github.com/simstudioai/sim/blob/11bfe6225a4d0b713098ea26509c1fc6574a7e26/apps/docs/content/docs/platform/self-hosting/environment-variables.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8829/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8829/files#diff-a4539fbc9b382a1b1d2706cc4bd10704d58d93155a3f7a216e0686629016ed11
https://github.com/simstudioai/sim/pull/8829/files#diff-a4539fbc9b382a1b1d2706cc4bd10704d58d93155a3f7a216e0686629016ed11
apps/sim/.env.examplehttps://github.com/simstudioai/sim/pull/8829/files#diff-4a29ce2c9471f5720a7b21936c0716a37c648ef653d7563bfa140153bb045284
View file https://github.com/simstudioai/sim/blob/11bfe6225a4d0b713098ea26509c1fc6574a7e26/apps/sim/.env.example
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8829/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8829/files#diff-4a29ce2c9471f5720a7b21936c0716a37c648ef653d7563bfa140153bb045284
https://github.com/simstudioai/sim/pull/8829/files#diff-4a29ce2c9471f5720a7b21936c0716a37c648ef653d7563bfa140153bb045284
apps/sim/executor/handlers/pi/search/normalize.tshttps://github.com/simstudioai/sim/pull/8829/files#diff-985283739d87d062ad7a223c068df4d8226254c3595395852989bee7a4115285
View file https://github.com/simstudioai/sim/blob/11bfe6225a4d0b713098ea26509c1fc6574a7e26/apps/sim/executor/handlers/pi/search/normalize.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8829/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8829/files#diff-985283739d87d062ad7a223c068df4d8226254c3595395852989bee7a4115285
https://github.com/simstudioai/sim/pull/8829/files#diff-985283739d87d062ad7a223c068df4d8226254c3595395852989bee7a4115285
apps/sim/lib/core/config/env.tshttps://github.com/simstudioai/sim/pull/8829/files#diff-7db3fc610ff89cf819c4eb69b43ec37ae18530e1861f6c322faeb62f8f48f298
View file https://github.com/simstudioai/sim/blob/11bfe6225a4d0b713098ea26509c1fc6574a7e26/apps/sim/lib/core/config/env.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8829/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8829/files#diff-7db3fc610ff89cf819c4eb69b43ec37ae18530e1861f6c322faeb62f8f48f298
https://github.com/simstudioai/sim/pull/8829/files#diff-7db3fc610ff89cf819c4eb69b43ec37ae18530e1861f6c322faeb62f8f48f298
apps/sim/providers/azure-openai/index.tshttps://github.com/simstudioai/sim/pull/8829/files#diff-16321ba301b4b37e6ec0f1c8c23c7c44ec94c64c8fe182853cb0e6cbb0afb28a
View file https://github.com/simstudioai/sim/blob/11bfe6225a4d0b713098ea26509c1fc6574a7e26/apps/sim/providers/azure-openai/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8829/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8829/files#diff-16321ba301b4b37e6ec0f1c8c23c7c44ec94c64c8fe182853cb0e6cbb0afb28a
https://github.com/simstudioai/sim/pull/8829/files#diff-16321ba301b4b37e6ec0f1c8c23c7c44ec94c64c8fe182853cb0e6cbb0afb28a
apps/sim/providers/index.tshttps://github.com/simstudioai/sim/pull/8829/files#diff-92244480a807def297332120dcdc4194e4456e8afedcd04786ddff18f495d51a
View file https://github.com/simstudioai/sim/blob/11bfe6225a4d0b713098ea26509c1fc6574a7e26/apps/sim/providers/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8829/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8829/files#diff-92244480a807def297332120dcdc4194e4456e8afedcd04786ddff18f495d51a
Please reload this pagehttps://github.com/simstudioai/sim/pull/8829/files
https://github.com/simstudioai/sim/pull/8829/files#diff-92244480a807def297332120dcdc4194e4456e8afedcd04786ddff18f495d51a
apps/sim/providers/litellm/index.tshttps://github.com/simstudioai/sim/pull/8829/files#diff-d630c240ddcd03fc91feb9d689a6682ed7b1f46c1509af39d2062c797ca3f381
View file https://github.com/simstudioai/sim/blob/11bfe6225a4d0b713098ea26509c1fc6574a7e26/apps/sim/providers/litellm/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8829/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8829/files#diff-d630c240ddcd03fc91feb9d689a6682ed7b1f46c1509af39d2062c797ca3f381
https://github.com/simstudioai/sim/pull/8829/files#diff-d630c240ddcd03fc91feb9d689a6682ed7b1f46c1509af39d2062c797ca3f381
apps/sim/providers/mistral/index.tshttps://github.com/simstudioai/sim/pull/8829/files#diff-2764bb65fb46d0b7df70f131f540b1d50cbc86932c85163c9cae302f6fa41dd0
View file https://github.com/simstudioai/sim/blob/11bfe6225a4d0b713098ea26509c1fc6574a7e26/apps/sim/providers/mistral/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8829/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8829/files#diff-2764bb65fb46d0b7df70f131f540b1d50cbc86932c85163c9cae302f6fa41dd0
https://github.com/simstudioai/sim/pull/8829/files#diff-2764bb65fb46d0b7df70f131f540b1d50cbc86932c85163c9cae302f6fa41dd0
apps/sim/providers/ollama/core.tshttps://github.com/simstudioai/sim/pull/8829/files#diff-c9d67cab22514b5b80053abf6b14d7f6d4c67dd8f8f661331fb49544b7caffb5
View file https://github.com/simstudioai/sim/blob/11bfe6225a4d0b713098ea26509c1fc6574a7e26/apps/sim/providers/ollama/core.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8829/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8829/files#diff-c9d67cab22514b5b80053abf6b14d7f6d4c67dd8f8f661331fb49544b7caffb5
https://github.com/simstudioai/sim/pull/8829/files#diff-c9d67cab22514b5b80053abf6b14d7f6d4c67dd8f8f661331fb49544b7caffb5
apps/sim/providers/openai/core.tshttps://github.com/simstudioai/sim/pull/8829/files#diff-08a8d94bfd29c80408e6c52311d64c5f906c60d0e7a2144ec632f75d271e3492
View file https://github.com/simstudioai/sim/blob/11bfe6225a4d0b713098ea26509c1fc6574a7e26/apps/sim/providers/openai/core.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8829/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8829/files#diff-08a8d94bfd29c80408e6c52311d64c5f906c60d0e7a2144ec632f75d271e3492
https://github.com/simstudioai/sim/pull/8829/files#diff-08a8d94bfd29c80408e6c52311d64c5f906c60d0e7a2144ec632f75d271e3492
apps/sim/providers/vllm/index.tshttps://github.com/simstudioai/sim/pull/8829/files#diff-5dc87b21d7216b477b0ffc10118f46d099ae9416e6ab03f01cf478263f2ec3fa
View file https://github.com/simstudioai/sim/blob/11bfe6225a4d0b713098ea26509c1fc6574a7e26/apps/sim/providers/vllm/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8829/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8829/files#diff-5dc87b21d7216b477b0ffc10118f46d099ae9416e6ab03f01cf478263f2ec3fa
https://github.com/simstudioai/sim/pull/8829/files#diff-5dc87b21d7216b477b0ffc10118f46d099ae9416e6ab03f01cf478263f2ec3fa
packages/testing/src/mocks/providers.mock.tshttps://github.com/simstudioai/sim/pull/8829/files#diff-7cf6f9bd3d0e1bdc7853ed9c9bda3ec9b7fa059a80682a604405d2eac4af7ad6
View file https://github.com/simstudioai/sim/blob/11bfe6225a4d0b713098ea26509c1fc6574a7e26/packages/testing/src/mocks/providers.mock.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8829/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8829/files#diff-7cf6f9bd3d0e1bdc7853ed9c9bda3ec9b7fa059a80682a604405d2eac4af7ad6
https://github.com/simstudioai/sim/pull/8829/files#diff-7cf6f9bd3d0e1bdc7853ed9c9bda3ec9b7fa059a80682a604405d2eac4af7ad6
Please reload this pagehttps://github.com/simstudioai/sim/pull/8829/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.