| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b5d0b023-78c9-1b80-86ec-dfab88963ebe |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CAAE:D16D6:194CFC0:229498B:6AFB90B8 |
| html-safe-nonce | ae687e789bcdf02f255587faad0cc0db2536a7ace04757ca45c49787593fa14a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUFFOkQxNkQ2OjE5NENGQzA6MjI5NDk4Qjo2QUZCOTBCOCIsInZpc2l0b3JfaWQiOiIzODI3MTk0OTAxOTg0Njc4MDcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9ddb1d181c732805116744ef282714a3b05982d3a885f7c564d21b8935926e6c |
| hovercard-subject-tag | pull_request:4688270072 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/8457/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary
A chat run could stay active or paused_waiting_for_tool forever if it never reached a terminal status. That happened when its controller died (deploy, OOM), was superseded with no successor... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4f01efe06174a5ba6342fd58e42d02295e0675bedbb465d6bef2dbaec8e46556 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a52db8866b6543b4e83730cd6a6b1360f1a9e4dc |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/simstudioai/sim/pull/8457/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8457%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8457%2Ffiles |
| 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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim |
| Reload | https://github.com/simstudioai/sim/pull/8457/files |
| Reload | https://github.com/simstudioai/sim/pull/8457/files |
| Reload | https://github.com/simstudioai/sim/pull/8457/files |
| simstudioai | https://github.com/simstudioai |
| sim | https://github.com/simstudioai/sim |
| Code | https://github.com/simstudioai/sim |
| Issues129 (129) | https://github.com/simstudioai/sim/issues |
| Pull requests198 (198) | https://github.com/simstudioai/sim/pulls |
| Actions | https://github.com/simstudioai/sim/actions |
| Projects | https://github.com/simstudioai/sim/projects |
| Security and quality | 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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose |
| waleedlatif1 | https://github.com/waleedlatif1 |
| staging | https://github.com/simstudioai/sim/tree/staging |
| fix/orphaned-run-settlement | https://github.com/simstudioai/sim/tree/fix/orphaned-run-settlement |
|
Conversation
28
| https://github.com/simstudioai/sim/pull/8457 |
|
Commits
7
| https://github.com/simstudioai/sim/pull/8457/commits |
|
Checks
31
| https://github.com/simstudioai/sim/pull/8457/checks |
|
Files changed
| https://github.com/simstudioai/sim/pull/8457/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/8457/files |
|
fix(mothership): settle chat runs no controller owns
| https://github.com/simstudioai/sim/pull/8457/files#top |
|
Show all changes
7 commits
| https://github.com/simstudioai/sim/pull/8457/files |
|
d78d860
fix(mothership): settle Chat runs no controller will finish
waleedlatif1 Sep 30, 2026
| https://github.com/simstudioai/sim/pull/8457/commits/d78d860690263b5d9a2921db5b519e52f4706806 |
|
bc9369c
fix(mothership): lock chats before runs when settling orphans, and la…
waleedlatif1 Sep 30, 2026
| https://github.com/simstudioai/sim/pull/8457/commits/bc9369c634375ce2ec3fbcf05f40f06187218d5b |
|
f1d878a
fix(mothership): never sweep a current headless run
waleedlatif1 Sep 30, 2026
| https://github.com/simstudioai/sim/pull/8457/commits/f1d878a428cd721da5468e0a64010d21172fd627 |
|
fd4fc18
refactor(mothership): require the recorded Stop inside the stopped-ru…
waleedlatif1 Sep 30, 2026
| https://github.com/simstudioai/sim/pull/8457/commits/fd4fc18187074bfe6ba3e939753a665a3c5cf780 |
|
34768f4
fix(mothership): fence orphan settlement on the chat lock and resume …
waleedlatif1 Sep 30, 2026
| https://github.com/simstudioai/sim/pull/8457/commits/34768f4a32c42a29d0fac653cbee0598f8598c73 |
|
7c023cf
fix(knowledge): record a terminal status for every Slack Assistant run
waleedlatif1 Sep 30, 2026
| https://github.com/simstudioai/sim/pull/8457/commits/7c023cf9a274b79a236f502146b5ef1be7e110f9 |
|
3ff5a3f
fix(knowledge): record the Slack run's status after its turn is saved
waleedlatif1 Sep 30, 2026
| https://github.com/simstudioai/sim/pull/8457/commits/3ff5a3f8d5d70c747d7d5bc21ca0932ae09e6eda |
|
Clear filters
| https://github.com/simstudioai/sim/pull/8457/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/8457/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/8457/files |
|
route.ts
| https://github.com/simstudioai/sim/pull/8457/files#diff-3c5077959e4545be2034b5b99e76849a74f2d3bd0e41e546514214def8fe3563 |
|
assistant.integration.ts
| https://github.com/simstudioai/sim/pull/8457/files#diff-7a600e888e68d6a1334da19c6cea1bd09793a524eb24351b3b623e3a668d0218 |
|
assistant.ts
| https://github.com/simstudioai/sim/pull/8457/files#diff-6dae8277716c704eb50784b81fdc479303e9fb7da26d3dcd4758c01965c4b7c7 |
|
lifecycle.ts
| https://github.com/simstudioai/sim/pull/8457/files#diff-dbf57f6d994f4694017802dca8e2463eb2a5083cebe0a28bcde187ef0b5d954e |
|
orphaned-runs.integration.ts
| https://github.com/simstudioai/sim/pull/8457/files#diff-ec44c1c6e5915437ecd7e01af1911844cdd02ebc730abd5c8c8fb34498fdbb07 |
|
orphaned-runs.ts
| https://github.com/simstudioai/sim/pull/8457/files#diff-384a5854871f26d3d52fc6cf89369ea8fe0ad64d1870bcbd403a08053f4e1482 |
|
repository.ts
| https://github.com/simstudioai/sim/pull/8457/files#diff-bdd330821217c2b7b7e64b969c999f2d2d57e7cb2f0cd376efcdc1bea63f95fa |
|
controls.ts
| https://github.com/simstudioai/sim/pull/8457/files#diff-99343ce422b25af55834e446458d5d048b56514d2bf23fe923f4609015fe51bf |
|
buffer.ts
| https://github.com/simstudioai/sim/pull/8457/files#diff-3523442e19f7ca7ea7476233be9cb95707b375b5cc5164fc889a592fedbbc44f |
| apps/sim/app/api/cron/cleanup-stale-executions/route.ts | https://github.com/simstudioai/sim/pull/8457/files#diff-3c5077959e4545be2034b5b99e76849a74f2d3bd0e41e546514214def8fe3563 |
|
View file
| https://github.com/simstudioai/sim/blob/3ff5a3f8d5d70c747d7d5bc21ca0932ae09e6eda/apps/sim/app/api/cron/cleanup-stale-executions/route.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/8457/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-3c5077959e4545be2034b5b99e76849a74f2d3bd0e41e546514214def8fe3563 |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-3c5077959e4545be2034b5b99e76849a74f2d3bd0e41e546514214def8fe3563 |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-3c5077959e4545be2034b5b99e76849a74f2d3bd0e41e546514214def8fe3563 |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-3c5077959e4545be2034b5b99e76849a74f2d3bd0e41e546514214def8fe3563 |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-3c5077959e4545be2034b5b99e76849a74f2d3bd0e41e546514214def8fe3563 |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-3c5077959e4545be2034b5b99e76849a74f2d3bd0e41e546514214def8fe3563 |
| apps/sim/lib/knowledge/application/slack-search/assistant.integration.ts | https://github.com/simstudioai/sim/pull/8457/files#diff-7a600e888e68d6a1334da19c6cea1bd09793a524eb24351b3b623e3a668d0218 |
|
View file
| https://github.com/simstudioai/sim/blob/3ff5a3f8d5d70c747d7d5bc21ca0932ae09e6eda/apps/sim/lib/knowledge/application/slack-search/assistant.integration.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/8457/{{ revealButtonHref }} |
| apps/sim/lib/knowledge/application/slack-search/assistant.ts | https://github.com/simstudioai/sim/pull/8457/files#diff-6dae8277716c704eb50784b81fdc479303e9fb7da26d3dcd4758c01965c4b7c7 |
|
View file
| https://github.com/simstudioai/sim/blob/3ff5a3f8d5d70c747d7d5bc21ca0932ae09e6eda/apps/sim/lib/knowledge/application/slack-search/assistant.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/8457/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-6dae8277716c704eb50784b81fdc479303e9fb7da26d3dcd4758c01965c4b7c7 |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-6dae8277716c704eb50784b81fdc479303e9fb7da26d3dcd4758c01965c4b7c7 |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-6dae8277716c704eb50784b81fdc479303e9fb7da26d3dcd4758c01965c4b7c7 |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-6dae8277716c704eb50784b81fdc479303e9fb7da26d3dcd4758c01965c4b7c7 |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-6dae8277716c704eb50784b81fdc479303e9fb7da26d3dcd4758c01965c4b7c7 |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-6dae8277716c704eb50784b81fdc479303e9fb7da26d3dcd4758c01965c4b7c7 |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-6dae8277716c704eb50784b81fdc479303e9fb7da26d3dcd4758c01965c4b7c7 |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-6dae8277716c704eb50784b81fdc479303e9fb7da26d3dcd4758c01965c4b7c7 |
| apps/sim/lib/mothership/async-runs/lifecycle.ts | https://github.com/simstudioai/sim/pull/8457/files#diff-dbf57f6d994f4694017802dca8e2463eb2a5083cebe0a28bcde187ef0b5d954e |
|
View file
| https://github.com/simstudioai/sim/blob/3ff5a3f8d5d70c747d7d5bc21ca0932ae09e6eda/apps/sim/lib/mothership/async-runs/lifecycle.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/8457/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-dbf57f6d994f4694017802dca8e2463eb2a5083cebe0a28bcde187ef0b5d954e |
|
| https://github.com/simstudioai/sim/pull/8457/files#diff-dbf57f6d994f4694017802dca8e2463eb2a5083cebe0a28bcde187ef0b5d954e |
| Please reload this page | https://github.com/simstudioai/sim/pull/8457/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/8457/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |