René's URL Explorer Experiment


Title: fix(tools): resolve credentials over HTTP again so token refresh keeps the app's OAuth config by waleedlatif1 · Pull Request #6662 · simstudioai/sim · GitHub

Open Graph Title: fix(tools): resolve credentials over HTTP again so token refresh keeps the app's OAuth config by waleedlatif1 · Pull Request #6662 · simstudioai/sim

X Title: fix(tools): resolve credentials over HTTP again so token refresh keeps the app's OAuth config by waleedlatif1 · Pull Request #6662 · simstudioai/sim

Description: Summary Reverts one change from #6660: tool credential resolution goes back to the HTTP call to POST /api/auth/oauth/token instead of resolving in-process. Why. An OAuth refresh needs the provider's client id and secret, read through requireOAuthClientCapability, which throws when they are absent. Only the app container loads those. Tool calls execute inside Trigger.dev workers, whose environment does not carry them — so resolving in-process there turns every credential whose access token has expired into Failed to refresh access token. A still-valid token hides the bug completely: refreshTokenIfNeeded returns early and never reads the provider config. So it surfaces late and partially, only once a token lapses, and looks like a generic auth failure rather than pointing at the cause. Scope of the fix. Only this one hop is reverted. The rest of #6660 stands: Router and evaluator provider calls stay in-process — the agent block has always called executeProviderRequest in-process from the worker, so that runtime is proven, and there is no require*Capability throw anywhere in the provider path. Checkpoint revert and the server prefetches never crossed runtimes; both caller and callee are the app. The shared lib/oauth/token-resolution.ts module stays — the route still uses it, and it remains the single authorization path. Also adds a rules section on the app/worker runtime boundary, since this trap is not visible from the code: trigger.config.ts syncs only DB_APP_NAME, so the worker's environment is whatever the Trigger.dev dashboard holds, and the repo cannot see it. Type of Change Bug fix Testing 1,037 tests pass across the credential and executor paths. The restored branch is behavior-identical to the pre-#6660 code: same URL and query params, same internal-JWT header with its swallowed mint error, same body, same error parsing, same thrown message. 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 Reverts one change from #6660: tool credential resolution goes back to the HTTP call to POST /api/auth/oauth/token instead of resolving in-process. Why. An OAuth refresh needs the provider&...

X Description: Summary Reverts one change from #6660: tool credential resolution goes back to the HTTP call to POST /api/auth/oauth/token instead of resolving in-process. Why. An OAuth refresh needs the provider&...

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

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:4a879b33-ea0d-51de-b579-28e52a9b1dfa
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC7F8:63A32:27CB9E:381EE7:6AFB52D4
html-safe-nonce8973d23c6b0e719becb234753c65fdbe2a380a8eb927b506cc3efb75ad7653cb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0Y4OjYzQTMyOjI3Q0I5RTozODFFRTc6NkFGQjUyRDQiLCJ2aXNpdG9yX2lkIjoiNzMwMzk1MzEwMzk4MjM4MzgyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5e2ee3166fd7029bd7ea3b8741003a2cd4ccbc0998fdda0ab5aa00d9794a74f9
hovercard-subject-tagpull_request:4273464950
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/6662/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 Reverts one change from #6660: tool credential resolution goes back to the HTTP call to POST /api/auth/oauth/token instead of resolving in-process. Why. An OAuth refresh needs the provider&...
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/6662/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6662%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%2F6662%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/6662/files
Reloadhttps://github.com/simstudioai/sim/pull/6662/files
Reloadhttps://github.com/simstudioai/sim/pull/6662/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/oauth-refresh-in-workerhttps://github.com/simstudioai/sim/tree/fix/oauth-refresh-in-worker
Conversation 3 https://github.com/simstudioai/sim/pull/6662
Commits 2 https://github.com/simstudioai/sim/pull/6662/commits
Checks 28 https://github.com/simstudioai/sim/pull/6662/checks
Files changed https://github.com/simstudioai/sim/pull/6662/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6662/files
fix(tools): resolve credentials over HTTP again so token refresh keeps the app's OAuth config https://github.com/simstudioai/sim/pull/6662/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/6662/files
292a7ce fix(tools): resolve credentials over HTTP again so token refresh keep… waleedlatif1 Aug 13, 2026 https://github.com/simstudioai/sim/pull/6662/commits/292a7ce0016b83afe93e20f2f8f4ce1111c6bb00
a482849 chore(ship): note what to keep out of PR titles and descriptions waleedlatif1 Aug 13, 2026 https://github.com/simstudioai/sim/pull/6662/commits/a482849cfca50d7c00b394993c63840d35b4bd27
Clear filters https://github.com/simstudioai/sim/pull/6662/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6662/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6662/files
SKILL.md https://github.com/simstudioai/sim/pull/6662/files#diff-ad39604fdc067741862b0f9020941b05a2f2d1b9110476cb48ac806548874e93
ship.md https://github.com/simstudioai/sim/pull/6662/files#diff-3c12246291cc5c047d27595bf915fc85e6c28197951b921df77ec964983546fa
sim-architecture.md https://github.com/simstudioai/sim/pull/6662/files#diff-e6d8883de197107cb7fb6813809a3eddda290e50a23cde67cf084e4f7cd1c20d
ship.md https://github.com/simstudioai/sim/pull/6662/files#diff-5ca8b290f199533ce01d1785963f7e1c39c814df0b31194ece0f9e4cc90a461e
index.ts https://github.com/simstudioai/sim/pull/6662/files#diff-47ae0066fea628681d98d136239929a240a55aaf3d99ef293c83b3eca7e197c1
.agents/skills/ship/SKILL.mdhttps://github.com/simstudioai/sim/pull/6662/files#diff-ad39604fdc067741862b0f9020941b05a2f2d1b9110476cb48ac806548874e93
View file https://github.com/simstudioai/sim/blob/a482849cfca50d7c00b394993c63840d35b4bd27/.agents/skills/ship/SKILL.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6662/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6662/files#diff-ad39604fdc067741862b0f9020941b05a2f2d1b9110476cb48ac806548874e93
https://github.com/simstudioai/sim/pull/6662/files#diff-ad39604fdc067741862b0f9020941b05a2f2d1b9110476cb48ac806548874e93
.claude/commands/ship.mdhttps://github.com/simstudioai/sim/pull/6662/files#diff-3c12246291cc5c047d27595bf915fc85e6c28197951b921df77ec964983546fa
View file https://github.com/simstudioai/sim/blob/a482849cfca50d7c00b394993c63840d35b4bd27/.claude/commands/ship.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6662/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6662/files#diff-3c12246291cc5c047d27595bf915fc85e6c28197951b921df77ec964983546fa
https://github.com/simstudioai/sim/pull/6662/files#diff-3c12246291cc5c047d27595bf915fc85e6c28197951b921df77ec964983546fa
.claude/rules/sim-architecture.mdhttps://github.com/simstudioai/sim/pull/6662/files#diff-e6d8883de197107cb7fb6813809a3eddda290e50a23cde67cf084e4f7cd1c20d
View file https://github.com/simstudioai/sim/blob/a482849cfca50d7c00b394993c63840d35b4bd27/.claude/rules/sim-architecture.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6662/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6662/files#diff-e6d8883de197107cb7fb6813809a3eddda290e50a23cde67cf084e4f7cd1c20d
https://github.com/simstudioai/sim/pull/6662/files#diff-e6d8883de197107cb7fb6813809a3eddda290e50a23cde67cf084e4f7cd1c20d
.cursor/commands/ship.mdhttps://github.com/simstudioai/sim/pull/6662/files#diff-5ca8b290f199533ce01d1785963f7e1c39c814df0b31194ece0f9e4cc90a461e
View file https://github.com/simstudioai/sim/blob/a482849cfca50d7c00b394993c63840d35b4bd27/.cursor/commands/ship.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6662/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6662/files#diff-5ca8b290f199533ce01d1785963f7e1c39c814df0b31194ece0f9e4cc90a461e
https://github.com/simstudioai/sim/pull/6662/files#diff-5ca8b290f199533ce01d1785963f7e1c39c814df0b31194ece0f9e4cc90a461e
apps/sim/tools/index.tshttps://github.com/simstudioai/sim/pull/6662/files#diff-47ae0066fea628681d98d136239929a240a55aaf3d99ef293c83b3eca7e197c1
View file https://github.com/simstudioai/sim/blob/a482849cfca50d7c00b394993c63840d35b4bd27/apps/sim/tools/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6662/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6662/files#diff-47ae0066fea628681d98d136239929a240a55aaf3d99ef293c83b3eca7e197c1
https://github.com/simstudioai/sim/pull/6662/files#diff-47ae0066fea628681d98d136239929a240a55aaf3d99ef293c83b3eca7e197c1
Please reload this pagehttps://github.com/simstudioai/sim/pull/6662/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.