René's URL Explorer Experiment


Title: fix: prevent memory exhaustion in loops with bounded iteration outputs by aadamsx · Pull Request #2527 · simstudioai/sim · GitHub

Open Graph Title: fix: prevent memory exhaustion in loops with bounded iteration outputs by aadamsx · Pull Request #2527 · simstudioai/sim

X Title: fix: prevent memory exhaustion in loops with bounded iteration outputs by aadamsx · Pull Request #2527 · simstudioai/sim

Description: Summary This PR addresses memory exhaustion issues that occur when running workflows with loops containing agent blocks that make many tool calls (e.g., MCP file operations). Fixes #2525 Problem Me...

Open Graph Description: Summary This PR addresses memory exhaustion issues that occur when running workflows with loops containing agent blocks that make many tool calls (e.g., MCP file operations). Fixes #2525 Problem Me...

X Description: Summary This PR addresses memory exhaustion issues that occur when running workflows with loops containing agent blocks that make many tool calls (e.g., MCP file operations). Fixes #2525 Problem Me...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:5430c370-9dd3-60e6-48b1-326da2feba77
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9926:3A1ACB:71D6E2:9C182C:6964F93D
html-safe-nonce5ae875e5dfb4d3972214b804e9027eb44b5c2412de3d7bff457f375954366c67
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTI2OjNBMUFDQjo3MUQ2RTI6OUMxODJDOjY5NjRGOTNEIiwidmlzaXRvcl9pZCI6IjQwNTk0MTQ3MjU1NjY3MjQ0MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1e444b5567b82d9f859ba25da1a7fbb8abaac4efa7be200e6789627978065bfe
hovercard-subject-tagpull_request:3123919066
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/simstudioai/sim/2527/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/64a5d80f1dd18212870c1963ed3d277196c10ebed0e2c1c1ac63d2d7f14d6bfd/simstudioai/sim/pull/2527
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/64a5d80f1dd18212870c1963ed3d277196c10ebed0e2c1c1ac63d2d7f14d6bfd/simstudioai/sim/pull/2527
og:image:altSummary This PR addresses memory exhaustion issues that occur when running workflows with loops containing agent blocks that make many tool calls (e.g., MCP file operations). Fixes #2525 Problem Me...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameaadamsx
hostnamegithub.com
expected-hostnamegithub.com
None003e962bf5ca78f3f8f71db2461c6a7f9cfcbe99b480d6aeddaef78d33e9161a
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release21cbf6733480c5c09366f15b8dc8b6953472172a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/2527#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F2527
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F2527
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/2527
Reloadhttps://github.com/simstudioai/sim/pull/2527
Reloadhttps://github.com/simstudioai/sim/pull/2527
simstudioai https://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Notifications https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Fork 3.2k https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Star 25.5k https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Code https://github.com/simstudioai/sim
Issues 97 https://github.com/simstudioai/sim/issues
Pull requests 50 https://github.com/simstudioai/sim/pulls
Actions https://github.com/simstudioai/sim/actions
Projects 0 https://github.com/simstudioai/sim/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/simstudioai/sim/security
Please reload this pagehttps://github.com/simstudioai/sim/pull/2527
Insights https://github.com/simstudioai/sim/pulse
Code https://github.com/simstudioai/sim
Issues https://github.com/simstudioai/sim/issues
Pull requests https://github.com/simstudioai/sim/pulls
Actions https://github.com/simstudioai/sim/actions
Projects https://github.com/simstudioai/sim/projects
Security https://github.com/simstudioai/sim/security
Insights https://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
Jump to bottomhttps://github.com/simstudioai/sim/pull/2527#issue-comment-box
aadamsxhttps://github.com/aadamsx
simstudioai:staginghttps://github.com/simstudioai/sim/tree/staging
aadamsx:fix/memory-accumulation-in-loopshttps://github.com/aadamsx/sim/tree/fix/memory-accumulation-in-loops
fix: prevent memory exhaustion in loops with bounded iteration outputs https://github.com/simstudioai/sim/pull/2527#top
aadamsxhttps://github.com/aadamsx
simstudioai:staginghttps://github.com/simstudioai/sim/tree/staging
aadamsx:fix/memory-accumulation-in-loopshttps://github.com/aadamsx/sim/tree/fix/memory-accumulation-in-loops
Conversation 5 https://github.com/simstudioai/sim/pull/2527
Commits 8 https://github.com/simstudioai/sim/pull/2527/commits
Checks 2 https://github.com/simstudioai/sim/pull/2527/checks
Files changed 4 https://github.com/simstudioai/sim/pull/2527/files
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/{{ revealButtonHref }}
https://github.com/aadamsx
aadamsxhttps://github.com/aadamsx
Dec 22, 2025https://github.com/simstudioai/sim/pull/2527#issue-3754888337
Please reload this pagehttps://github.com/simstudioai/sim/pull/2527
#2525https://github.com/simstudioai/sim/issues/2525
Please reload this pagehttps://github.com/simstudioai/sim/pull/2527
icecrasher321https://github.com/icecrasher321
December 18, 2025 16:23https://github.com/simstudioai/sim/pull/2527#commits-pushed-eb07a08
https://github.com/icecrasher321
v0.5.35: helm updates, copilot improvements, 404 for docs, salesforce…https://github.com/simstudioai/sim/pull/2527/commits/eb07a080fbb6f733cc954009fd5014fda31a1e07
eb07a08https://github.com/simstudioai/sim/pull/2527/commits/eb07a080fbb6f733cc954009fd5014fda31a1e07
https://github.com/waleedlatif1
v0.5.36: hitl improvements, opengraph, slack fixes, one-click unsubsc…https://github.com/simstudioai/sim/pull/2527/commits/4d1a9a3f22370d684c21a9fc2bc5b8a7d1ff2363
4d1a9a3https://github.com/simstudioai/sim/pull/2527/commits/4d1a9a3f22370d684c21a9fc2bc5b8a7d1ff2363
https://github.com/Lutherwaves
fix(helm): add custom egress rules to realtime network policy (https://github.com/simstudioai/sim/pull/2527/commits/4431a1a48486e2049c36873fe9e606468e639f98
simstu…https://github.com/simstudioai/sim/pull/2481
4431a1ahttps://github.com/simstudioai/sim/pull/2527/commits/4431a1a48486e2049c36873fe9e606468e639f98
…dioai#2481https://github.com/simstudioai/sim/pull/2481
https://github.com/waleedlatif1
v0.5.37: redaction utils consolidation, logs updates, autoconnect imp…https://github.com/simstudioai/sim/pull/2527/commits/3e697d9ed96909e8f8aa88db37704a8d8510b2fe
3e697d9https://github.com/simstudioai/sim/pull/2527/commits/3e697d9ed96909e8f8aa88db37704a8d8510b2fe
https://github.com/waleedlatif1
v0.5.38: snap to grid, copilot ux improvements, billing line itemshttps://github.com/simstudioai/sim/pull/2527/commits/4827866f9acb5a28c1b8524edd7f6de8338beb28
4827866https://github.com/simstudioai/sim/pull/2527/commits/4827866f9acb5a28c1b8524edd7f6de8338beb28
https://github.com/waleedlatif1
v0.5.39: notion, workflow variables fixeshttps://github.com/simstudioai/sim/pull/2527/commits/0f4ec962aded6957c9653e7f7b7fe5a2e46a8643
0f4ec96https://github.com/simstudioai/sim/pull/2527/commits/0f4ec962aded6957c9653e7f7b7fe5a2e46a8643
https://github.com/icecrasher321
v0.5.40: supabase ops to allow non-public schemas, jira uuidhttps://github.com/simstudioai/sim/pull/2527/commits/3d9d9cbc54cae2ea88b3dc7da05ce83630465065
3d9d9cbhttps://github.com/simstudioai/sim/pull/2527/commits/3d9d9cbc54cae2ea88b3dc7da05ce83630465065
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
Dec 22, 2025https://github.com/simstudioai/sim/pull/2527#issuecomment-3683729147
@aadamsxhttps://github.com/aadamsx
Vercelhttps://vercel.com
authorize ithttps://vercel.com/git/authorize?team=Sim&type=github&job=%7B%22headInfo%22%3A%7B%22sha%22%3A%22aae7c409ad7009a568b386a8e44fc093511bebd6%22%7D%2C%22id%22%3A%22QmTVCvJFcVQDCFTPdbR2j5Zjjdmo5yeCMmR8hebtuKVPth%22%2C%22org%22%3A%22simstudioai%22%2C%22prId%22%3A2527%2C%22repo%22%3A%22sim%22%7D
Please reload this pagehttps://github.com/simstudioai/sim/pull/2527
https://github.com/apps/greptile-apps
greptile-appshttps://github.com/apps/greptile-apps
Dec 22, 2025https://github.com/simstudioai/sim/pull/2527#issuecomment-3683757410
Please reload this pagehttps://github.com/simstudioai/sim/pull/2527
Please reload this pagehttps://github.com/simstudioai/sim/pull/2527
https://github.com/apps/greptile-apps
greptile-appshttps://github.com/apps/greptile-apps
Dec 22, 2025 https://github.com/simstudioai/sim/pull/2527#pullrequestreview-3605372333
View reviewed changes https://github.com/simstudioai/sim/pull/2527/files
greptile-appshttps://github.com/apps/greptile-apps
Please reload this pagehttps://github.com/simstudioai/sim/pull/2527
https://github.com/simstudioai/sim/pull/2527#pullrequestreview-3605372333
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
linkhttps://github.com/simstudioai/sim/blob/aae7c409ad7009a568b386a8e44fc093511bebd6/apps/sim/executor/orchestrators/loop.ts#L519-L529
linkhttps://github.com/simstudioai/sim/blob/aae7c409ad7009a568b386a8e44fc093511bebd6/apps/sim/executor/execution/block-executor.ts#L704-L710
linkhttps://github.com/simstudioai/sim/blob/aae7c409ad7009a568b386a8e44fc093511bebd6/apps/sim/executor/orchestrators/loop.ts#L519-L529
linkhttps://github.com/simstudioai/sim/blob/aae7c409ad7009a568b386a8e44fc093511bebd6/apps/sim/executor/orchestrators/loop.ts#L483-L494
linkhttps://github.com/simstudioai/sim/blob/aae7c409ad7009a568b386a8e44fc093511bebd6/apps/sim/executor/execution/block-executor.ts#L673-L682
Edit Code Review Agent Settingshttps://app.greptile.com/review/github
Greptilehttps://greptile.com?utm_source=greptile_expert&utm_medium=github&utm_campaign=code_reviews&utm_content=sim_2527
Please reload this pagehttps://github.com/simstudioai/sim/pull/2527
https://github.com/aadamsx
fix: prevent memory exhaustion in loops with bounded iteration outputshttps://github.com/simstudioai/sim/pull/2527/commits/387efb6c7462778715f4d7568c32c4e498c96cd4
387efb6https://github.com/simstudioai/sim/pull/2527/commits/387efb6c7462778715f4d7568c32c4e498c96cd4
simstudioai#2525https://github.com/simstudioai/sim/issues/2525
https://github.com/aadamsx
aadamsxhttps://github.com/aadamsx
force-pushedhttps://github.com/simstudioai/sim/compare/36bbe99acd33fd3e046003572ae986f771eb5b67..387efb6c7462778715f4d7568c32c4e498c96cd4
36bbe99https://github.com/simstudioai/sim/commit/36bbe99acd33fd3e046003572ae986f771eb5b67
387efb6https://github.com/simstudioai/sim/commit/387efb6c7462778715f4d7568c32c4e498c96cd4
Compare https://github.com/simstudioai/sim/compare/36bbe99acd33fd3e046003572ae986f771eb5b67..387efb6c7462778715f4d7568c32c4e498c96cd4
December 22, 2025 19:19https://github.com/simstudioai/sim/pull/2527#event-21711418202
https://github.com/aadamsx
aadamsxhttps://github.com/aadamsx
Dec 27, 2025https://github.com/simstudioai/sim/pull/2527#issuecomment-3693587704
aae7c40https://github.com/simstudioai/sim/commit/aae7c409ad7009a568b386a8e44fc093511bebd6
387efb6https://github.com/simstudioai/sim/commit/387efb6c7462778715f4d7568c32c4e498c96cd4
Please reload this pagehttps://github.com/simstudioai/sim/pull/2527
https://github.com/aadamsx
aadamsxhttps://github.com/aadamsx
December 27, 2025 03:07https://github.com/simstudioai/sim/pull/2527#event-21763263492
https://github.com/waleedlatif1
waleedlatif1https://github.com/waleedlatif1
December 27, 2025 05:25https://github.com/simstudioai/sim/pull/2527#event-21763833531
https://github.com/waleedlatif1
waleedlatif1https://github.com/waleedlatif1
Dec 27, 2025https://github.com/simstudioai/sim/pull/2527#event-21763833543
https://github.com/waleedlatif1
waleedlatif1https://github.com/waleedlatif1
Dec 27, 2025https://github.com/simstudioai/sim/pull/2527#event-21763837554
https://github.com/apps/greptile-apps
greptile-appshttps://github.com/apps/greptile-apps
Dec 27, 2025 https://github.com/simstudioai/sim/pull/2527#pullrequestreview-3614074926
View reviewed changes https://github.com/simstudioai/sim/pull/2527/files/387efb6c7462778715f4d7568c32c4e498c96cd4
greptile-appshttps://github.com/apps/greptile-apps
Please reload this pagehttps://github.com/simstudioai/sim/pull/2527
https://github.com/simstudioai/sim/pull/2527#pullrequestreview-3614074926
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
linkhttps://github.com/simstudioai/sim/blob/387efb6c7462778715f4d7568c32c4e498c96cd4/apps/sim/executor/orchestrators/loop.ts#L496-L497
Edit Code Review Agent Settingshttps://app.greptile.com/review/github
Greptilehttps://greptile.com?utm_source=greptile_expert&utm_medium=github&utm_campaign=code_reviews&utm_content=sim_2527
Please reload this pagehttps://github.com/simstudioai/sim/pull/2527
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F2527
https://github.com/apps/greptile-apps
greptile-apps[bot] https://github.com/apps/greptile-apps
https://github.com/simstudioai/sim/pull/2527/files/387efb6c7462778715f4d7568c32c4e498c96cd4
Memory exhaustion in loop executions with agent blocks making tool calls https://github.com/simstudioai/sim/issues/2525
Please reload this pagehttps://github.com/simstudioai/sim/pull/2527
https://github.com/aadamsx
https://github.com/waleedlatif1
https://github.com/icecrasher321
https://github.com/Lutherwaves
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.