René's URL Explorer Experiment


Title: feat(managed-agent): add session lifecycle operations by waleedlatif1 · Pull Request #6140 · simstudioai/sim · GitHub

Open Graph Title: feat(managed-agent): add session lifecycle operations by waleedlatif1 · Pull Request #6140 · simstudioai/sim

X Title: feat(managed-agent): add session lifecycle operations by waleedlatif1 · Pull Request #6140 · simstudioai/sim

Description: Summary Adds an operation selector to the Claude Managed Agents block, backed by 9 new tools alongside the existing run-session behavior Create/send/get/list-events/update/interrupt/archive/delete, plus respond-to-tool-confirmation A session is now a durable handle addressed by id, so a conversation can span multiple workflow runs instead of being trapped inside one blocking block get_session resolves blocking tool calls to names/inputs, so an always_ask agent can be approved from a workflow instead of hanging until timeout Create Session seeds initial_events, collapsing create+send into one API call Backwards compatibility Run Session is the default operation. Blocks saved before the selector existed have no stored operation value, so: the tool selector falls back to managed_agent_run_session sub-block conditions normalize the missing value to the default, so every field stays visible and required exactly as before the block's fallback output shape is unchanged (content, sessionId, inputTokens, outputTokens) blocks/blocks/managed_agent.test.ts pins all of this. Wire accuracy Every shape verified against the live Managed Agents docs, not from memory: user.tool_confirmation uses deny_message (not message) and takes the tool-use event id from stop_reason.event_ids types[] on the events list is a real repeatable query param initial_events accepts only user.message/user.define_outcome, validation is all-or-nothing archive/delete both reject a running session memory-store endpoints keep the separate agent-memory-2026-07-22 beta header Type of Change New feature Testing bun run lint, tsc --noEmit, and 183 unit tests pass. Not yet exercised against a live Claude workspace. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing 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 Adds an operation selector to the Claude Managed Agents block, backed by 9 new tools alongside the existing run-session behavior Create/send/get/list-events/update/interrupt/archive/delete...

X Description: Summary Adds an operation selector to the Claude Managed Agents block, backed by 9 new tools alongside the existing run-session behavior Create/send/get/list-events/update/interrupt/archive/delete...

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

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:0c32f8bb-c7d6-4f6f-8306-f48b7434f232
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE440:487EF:A10291:DE3C58:6AFB5016
html-safe-nonce22a2b655520c9ca609cbdfcd6e36afe385a0c90bea94d772576f156c84fe0765
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDQwOjQ4N0VGOkExMDI5MTpERTNDNTg6NkFGQjUwMTYiLCJ2aXNpdG9yX2lkIjoiMjA1NTgxODM1NzUyNDYxNTE5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac08e86717587b0fe4ef9b516b5afdb1d607834964204e665ac4c47d8f481430b9
hovercard-subject-tagpull_request:4181495373
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/6140/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 Adds an operation selector to the Claude Managed Agents block, backed by 9 new tools alongside the existing run-session behavior Create/send/get/list-events/update/interrupt/archive/delete...
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/6140/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6140%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%2F6140%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/6140/files
Reloadhttps://github.com/simstudioai/sim/pull/6140/files
Reloadhttps://github.com/simstudioai/sim/pull/6140/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
feat/managed-agents-endpoint-audithttps://github.com/simstudioai/sim/tree/feat/managed-agents-endpoint-audit
Conversation 49 https://github.com/simstudioai/sim/pull/6140
Commits 7 https://github.com/simstudioai/sim/pull/6140/commits
Checks 27 https://github.com/simstudioai/sim/pull/6140/checks
Files changed https://github.com/simstudioai/sim/pull/6140/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6140/files
feat(managed-agent): add session lifecycle operations https://github.com/simstudioai/sim/pull/6140/files#top
Show all changes 7 commits https://github.com/simstudioai/sim/pull/6140/files
b31fa81 feat(managed-agent): add session lifecycle operations waleedlatif1 Jul 31, 2026 https://github.com/simstudioai/sim/pull/6140/commits/b31fa813cc63c426b79c0beb0bdf387b06ba8742
2fabf74 fix(managed-agent): address review findings on session lifecycle ops waleedlatif1 Jul 31, 2026 https://github.com/simstudioai/sim/pull/6140/commits/2fabf74780ae7f96fe9b3de9538560332dad32fa
cac2c59 fix(managed-agent): correct truncation flag, gate lookup, custom tool… waleedlatif1 Jul 31, 2026 https://github.com/simstudioai/sim/pull/6140/commits/cac2c595195811790cb30750f3082bcbd2aad644
2b9243f fix(managed-agent): stop fractional event limits reading unbounded waleedlatif1 Aug 1, 2026 https://github.com/simstudioai/sim/pull/6140/commits/2b9243f2b288906ed42877aec2fd4470c3a16df1
ebfde34 fix(managed-agent): stop gate lookup scanning the full tool history waleedlatif1 Aug 1, 2026 https://github.com/simstudioai/sim/pull/6140/commits/ebfde346f443ad498c9f92beca2c2ecb63b9ae41
d4046c2 fix(managed-agent): floor event cap and make metadata clearing explicit waleedlatif1 Aug 1, 2026 https://github.com/simstudioai/sim/pull/6140/commits/d4046c2f9d030dc0300857694ed0e405ed46a35d
30788ec test(managed-agent): pin the HTTP shape of every session endpoint waleedlatif1 Aug 1, 2026 https://github.com/simstudioai/sim/pull/6140/commits/30788ec03eb704de368ba1462646361484ca0aa1
Clear filters https://github.com/simstudioai/sim/pull/6140/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6140/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6140/files
managed_agent.mdx https://github.com/simstudioai/sim/pull/6140/files#diff-d51ab110cd1551ab3a21dc636b7fd3394bc46a185dce624982d2bb859acebd8d
managed_agent.test.ts https://github.com/simstudioai/sim/pull/6140/files#diff-6d06c208533363da1b85b707151af37b3955b74969300a2728945ba285647f90
managed_agent.ts https://github.com/simstudioai/sim/pull/6140/files#diff-915648c9655819b1403b3ac17fed562ebf6944952434d1897dab9456f8757f91
integrations.json https://github.com/simstudioai/sim/pull/6140/files#diff-0c4cc916562765dac61bd44d1b984d95e44d7901c070e0a3f668474c684d92bd
session-client.test.ts https://github.com/simstudioai/sim/pull/6140/files#diff-7e9215ab585707659905ed5675b1d7d0c99c44acbca9cef63ce2fee444a8bbf6
session-client.ts https://github.com/simstudioai/sim/pull/6140/files#diff-881bb5871b28042c6cd629b7f5eddf74d6d9827cd2aac1518d63b56d037ff751
wire-shapes.test.ts https://github.com/simstudioai/sim/pull/6140/files#diff-2a05d5c18321e69c418df73a495b9bf023100dc01f466bb7c01d1064576e065b
archive_session.ts https://github.com/simstudioai/sim/pull/6140/files#diff-6a9324fe36248fa16468c0059e5de49c00e404a6865dff8631431dfe2f433076
create_session.ts https://github.com/simstudioai/sim/pull/6140/files#diff-c355227645d421b133c11f2939ff7f024e16816fd673d967556ed85f58e4f774
delete_session.ts https://github.com/simstudioai/sim/pull/6140/files#diff-bdbaee75a8f79c7c446b95abde2c6ad55f186f21e6389cd2d4a17579a0ab2035
get_session.ts https://github.com/simstudioai/sim/pull/6140/files#diff-193a2c419e54db9580dd9254abac870296f5e331145b1255f44373dee3c7c165
index.ts https://github.com/simstudioai/sim/pull/6140/files#diff-949846c1edad0a9629e8180f8aa63818c84ae7e18f2a8145ae65ce76aa4dcc3e
interrupt_session.ts https://github.com/simstudioai/sim/pull/6140/files#diff-8da6873167194fe0a19d9ccb7f6f73c469626a540035a160eb24baa455732beb
list_events.test.ts https://github.com/simstudioai/sim/pull/6140/files#diff-050c0f6af3f974a67a6cdb76f6fce2767579b70c639045d41bd6f7a539fc6666
list_events.ts https://github.com/simstudioai/sim/pull/6140/files#diff-a9250ea410729f72cb2f170b86bf130779e2665c08bd81cc0fe661c80e3e68d8
respond_custom_tool.ts https://github.com/simstudioai/sim/pull/6140/files#diff-0ec66722f9c19475f45982b9a50ff3ca6147f8e763b64c427321c5aaabb65bd0
respond_tool_confirmation.ts https://github.com/simstudioai/sim/pull/6140/files#diff-329699030b93e53d110021afde6115cce1176b5c8c16723a65610062f9f1e40e
send_message.ts https://github.com/simstudioai/sim/pull/6140/files#diff-a4fad35d748df609e7222c8fe6af1cc1d35b034f9905180d69811f030fe1f861
shared.ts https://github.com/simstudioai/sim/pull/6140/files#diff-a8f46d5455158db22d37f91568523ba8c6739a4f5491fa12f6a57e728148fab1
types.ts https://github.com/simstudioai/sim/pull/6140/files#diff-5fdc7ddab694fa8731c0ce9da3aa054d269d95a8dfe2b1ef841a224871b26e4f
update_session.test.ts https://github.com/simstudioai/sim/pull/6140/files#diff-085a57644bb3500380a6cfd4bf1f178c4701b18afd65dda59e30bc39fe0d4133
update_session.ts https://github.com/simstudioai/sim/pull/6140/files#diff-194e4511fd28f766affb8d8cac7bc9e11875e7b3e3c6f15ad04bbb873b373382
registry.ts https://github.com/simstudioai/sim/pull/6140/files#diff-a05e54887bf05477726b00df4183dd4a3fa0fd1f82b867bbf156e1b6a6d7e3fa
apps/docs/content/docs/en/integrations/managed_agent.mdxhttps://github.com/simstudioai/sim/pull/6140/files#diff-d51ab110cd1551ab3a21dc636b7fd3394bc46a185dce624982d2bb859acebd8d
View file https://github.com/simstudioai/sim/blob/30788ec03eb704de368ba1462646361484ca0aa1/apps/docs/content/docs/en/integrations/managed_agent.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6140/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6140/files#diff-d51ab110cd1551ab3a21dc636b7fd3394bc46a185dce624982d2bb859acebd8d
apps/sim/blocks/blocks/managed_agent.test.tshttps://github.com/simstudioai/sim/pull/6140/files#diff-6d06c208533363da1b85b707151af37b3955b74969300a2728945ba285647f90
View file https://github.com/simstudioai/sim/blob/30788ec03eb704de368ba1462646361484ca0aa1/apps/sim/blocks/blocks/managed_agent.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6140/{{ revealButtonHref }}
apps/sim/blocks/blocks/managed_agent.tshttps://github.com/simstudioai/sim/pull/6140/files#diff-915648c9655819b1403b3ac17fed562ebf6944952434d1897dab9456f8757f91
View file https://github.com/simstudioai/sim/blob/30788ec03eb704de368ba1462646361484ca0aa1/apps/sim/blocks/blocks/managed_agent.ts
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/simstudioai/sim/pull/6140/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6140/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.