| 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:5313811c-ac3b-1d4a-58af-33af94aa567a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C2E6:160F17:AEFBE7:F61360:6AFB79A4 |
| html-safe-nonce | 6365f649600750ee314eaefd03dafb9d92032dab89a07cd08893a3f70b642772 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkU2OjE2MEYxNzpBRUZCRTc6RjYxMzYwOjZBRkI3OUE0IiwidmlzaXRvcl9pZCI6Ijg2MjAzMTIzMDA0NzkwMTk0MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d84bb637c7b46e351d2652357a9159507b3823cbe57e889b6d1f07ceacd6e3b7 |
| hovercard-subject-tag | pull_request:4729074634 |
| 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/8602/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
Check the workspace's usage limits before running a tool that would use a Sim-hosted key via POST /api/v2/tools/{toolId}/execute, using the same cached execution gate as workflow runs
... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48 |
| 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 | 2e8872b770cc4d5d0cc1f2026afab747a268e2ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/simstudioai/sim/pull/8602/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8602%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%2F8602%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/8602/files |
| Reload | https://github.com/simstudioai/sim/pull/8602/files |
| Reload | https://github.com/simstudioai/sim/pull/8602/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 requests202 (202) | 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/tool-execute-usage-gate | https://github.com/simstudioai/sim/tree/fix/tool-execute-usage-gate |
|
Conversation
30
| https://github.com/simstudioai/sim/pull/8602 |
|
Commits
5
| https://github.com/simstudioai/sim/pull/8602/commits |
|
Checks
32
| https://github.com/simstudioai/sim/pull/8602/checks |
|
Files changed
| https://github.com/simstudioai/sim/pull/8602/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/8602/files |
|
fix(tools): check usage limits before running hosted-key tools via the API
| https://github.com/simstudioai/sim/pull/8602/files#top |
|
Show all changes
5 commits
| https://github.com/simstudioai/sim/pull/8602/files |
|
1c9a6b1
fix(tools): check usage limits before running hosted-key tools via th…
waleedlatif1 Oct 3, 2026
| https://github.com/simstudioai/sim/pull/8602/commits/1c9a6b131ea831f05b8ba6fa3648b10ad38e816f |
|
45c027c
fix(tools): gate hosted-key calls whose key is an unresolved variable…
waleedlatif1 Oct 3, 2026
| https://github.com/simstudioai/sim/pull/8602/commits/45c027c511a15f7e38b5c9ab827bd9304c902166 |
|
b8aff28
fix(tools): exempt variable references that resolve to the caller's o…
waleedlatif1 Oct 3, 2026
| https://github.com/simstudioai/sim/pull/8602/commits/b8aff280043ecdf09fef3879889a3ec945a2dadd |
|
57bf024
fix(tools): resolve the key reference with the registry's own resolver
waleedlatif1 Oct 3, 2026
| https://github.com/simstudioai/sim/pull/8602/commits/57bf0246b66ba7773fbf3df3f8dda53c9336df53 |
|
e9567b6
fix(tools): decide hosted-key admission on registry-resolved params
waleedlatif1 Oct 3, 2026
| https://github.com/simstudioai/sim/pull/8602/commits/e9567b63308d2120a0245245c5100d0380e4e110 |
|
Clear filters
| https://github.com/simstudioai/sim/pull/8602/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/8602/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/8602/files |
|
openapi-v2-resources.json
| https://github.com/simstudioai/sim/pull/8602/files#diff-17e168777a3b67e689dd8b24e28aaa217cb884843dccad31b1dbf22d5307e17f |
|
route.test.ts
| https://github.com/simstudioai/sim/pull/8602/files#diff-a14ac214d501d1e0642d68b1b129da23e9c471e0cbb6dd9ee6853b6ca71c70bf |
|
route.ts
| https://github.com/simstudioai/sim/pull/8602/files#diff-2a3beeada26d54c42361eac7e14692e4d2e3d3923408918899118df00081efd8 |
|
resources.ts
| https://github.com/simstudioai/sim/pull/8602/files#diff-950bda0ee70aa65034c8e1d522aa2ba2d0f18a6097c65d27b9796b1583c8205c |
|
v2-operations.ts
| https://github.com/simstudioai/sim/pull/8602/files#diff-a32a173b553c777ebd3d9ecabb9cbc5fe7705ac6fa3761dbceaeb5458fc449b7 |
|
execute-tool.test.ts
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
execute-tool.ts
| https://github.com/simstudioai/sim/pull/8602/files#diff-941ac7a3d6a065c6c8890fe4172ddf1898c5c1eaad611ed5a656049f14fe4a7b |
| apps/docs/openapi-v2-resources.json | https://github.com/simstudioai/sim/pull/8602/files#diff-17e168777a3b67e689dd8b24e28aaa217cb884843dccad31b1dbf22d5307e17f |
|
View file
| https://github.com/simstudioai/sim/blob/e9567b63308d2120a0245245c5100d0380e4e110/apps/docs/openapi-v2-resources.json |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/8602/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-17e168777a3b67e689dd8b24e28aaa217cb884843dccad31b1dbf22d5307e17f |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-17e168777a3b67e689dd8b24e28aaa217cb884843dccad31b1dbf22d5307e17f |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-17e168777a3b67e689dd8b24e28aaa217cb884843dccad31b1dbf22d5307e17f |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-17e168777a3b67e689dd8b24e28aaa217cb884843dccad31b1dbf22d5307e17f |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-17e168777a3b67e689dd8b24e28aaa217cb884843dccad31b1dbf22d5307e17f |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-17e168777a3b67e689dd8b24e28aaa217cb884843dccad31b1dbf22d5307e17f |
| apps/sim/app/api/v2/tools/[toolId]/execute/route.test.ts | https://github.com/simstudioai/sim/pull/8602/files#diff-a14ac214d501d1e0642d68b1b129da23e9c471e0cbb6dd9ee6853b6ca71c70bf |
|
View file
| https://github.com/simstudioai/sim/blob/e9567b63308d2120a0245245c5100d0380e4e110/apps/sim/app/api/v2/tools/%5BtoolId%5D/execute/route.test.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/8602/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-a14ac214d501d1e0642d68b1b129da23e9c471e0cbb6dd9ee6853b6ca71c70bf |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-a14ac214d501d1e0642d68b1b129da23e9c471e0cbb6dd9ee6853b6ca71c70bf |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-a14ac214d501d1e0642d68b1b129da23e9c471e0cbb6dd9ee6853b6ca71c70bf |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-a14ac214d501d1e0642d68b1b129da23e9c471e0cbb6dd9ee6853b6ca71c70bf |
| apps/sim/app/api/v2/tools/[toolId]/execute/route.ts | https://github.com/simstudioai/sim/pull/8602/files#diff-2a3beeada26d54c42361eac7e14692e4d2e3d3923408918899118df00081efd8 |
|
View file
| https://github.com/simstudioai/sim/blob/e9567b63308d2120a0245245c5100d0380e4e110/apps/sim/app/api/v2/tools/%5BtoolId%5D/execute/route.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/8602/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-2a3beeada26d54c42361eac7e14692e4d2e3d3923408918899118df00081efd8 |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-2a3beeada26d54c42361eac7e14692e4d2e3d3923408918899118df00081efd8 |
| apps/sim/lib/api/contracts/v2/openapi/resources.ts | https://github.com/simstudioai/sim/pull/8602/files#diff-950bda0ee70aa65034c8e1d522aa2ba2d0f18a6097c65d27b9796b1583c8205c |
|
View file
| https://github.com/simstudioai/sim/blob/e9567b63308d2120a0245245c5100d0380e4e110/apps/sim/lib/api/contracts/v2/openapi/resources.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/8602/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-950bda0ee70aa65034c8e1d522aa2ba2d0f18a6097c65d27b9796b1583c8205c |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-950bda0ee70aa65034c8e1d522aa2ba2d0f18a6097c65d27b9796b1583c8205c |
| apps/sim/lib/api/mcp/generated/v2-operations.ts | https://github.com/simstudioai/sim/pull/8602/files#diff-a32a173b553c777ebd3d9ecabb9cbc5fe7705ac6fa3761dbceaeb5458fc449b7 |
|
View file
| https://github.com/simstudioai/sim/blob/e9567b63308d2120a0245245c5100d0380e4e110/apps/sim/lib/api/mcp/generated/v2-operations.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/8602/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-a32a173b553c777ebd3d9ecabb9cbc5fe7705ac6fa3761dbceaeb5458fc449b7 |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-a32a173b553c777ebd3d9ecabb9cbc5fe7705ac6fa3761dbceaeb5458fc449b7 |
| apps/sim/lib/tool-execution/application/execute-tool.test.ts | https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
View file
| https://github.com/simstudioai/sim/blob/e9567b63308d2120a0245245c5100d0380e4e110/apps/sim/lib/tool-execution/application/execute-tool.test.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/8602/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-06a9f9e027535ab13c1ea18cd3bada61efd793c5c5f96024b96160021da314fd |
| apps/sim/lib/tool-execution/application/execute-tool.ts | https://github.com/simstudioai/sim/pull/8602/files#diff-941ac7a3d6a065c6c8890fe4172ddf1898c5c1eaad611ed5a656049f14fe4a7b |
|
View file
| https://github.com/simstudioai/sim/blob/e9567b63308d2120a0245245c5100d0380e4e110/apps/sim/lib/tool-execution/application/execute-tool.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/8602/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-941ac7a3d6a065c6c8890fe4172ddf1898c5c1eaad611ed5a656049f14fe4a7b |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-941ac7a3d6a065c6c8890fe4172ddf1898c5c1eaad611ed5a656049f14fe4a7b |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-941ac7a3d6a065c6c8890fe4172ddf1898c5c1eaad611ed5a656049f14fe4a7b |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-941ac7a3d6a065c6c8890fe4172ddf1898c5c1eaad611ed5a656049f14fe4a7b |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-941ac7a3d6a065c6c8890fe4172ddf1898c5c1eaad611ed5a656049f14fe4a7b |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-941ac7a3d6a065c6c8890fe4172ddf1898c5c1eaad611ed5a656049f14fe4a7b |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-941ac7a3d6a065c6c8890fe4172ddf1898c5c1eaad611ed5a656049f14fe4a7b |
|
| https://github.com/simstudioai/sim/pull/8602/files#diff-941ac7a3d6a065c6c8890fe4172ddf1898c5c1eaad611ed5a656049f14fe4a7b |
| Please reload this page | https://github.com/simstudioai/sim/pull/8602/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 |