René's URL Explorer Experiment


Title: fix(oauth): bind update access to selected credential by BillLeoutsakosvl346 · Pull Request #6999 · simstudioai/sim · GitHub

Open Graph Title: fix(oauth): bind update access to selected credential by BillLeoutsakosvl346 · Pull Request #6999 · simstudioai/sim

X Title: fix(oauth): bind update access to selected credential by BillLeoutsakosvl346 · Pull Request #6999 · simstudioai/sim

Description: Summary Bind existing-credential reauthorization to the exact selected OAuth credential before redirecting. This makes the callback use the established draft reconnect path instead of relying on provider account-ID matching, which can leave a legacy Slack credential pointing at its old account after Update access. The change is provider-agnostic and applies to workflow credential selectors, tool-input credential selectors, and knowledge connectors. Provider-only Copilot reauthorization remains unchanged. Type of Change Bug fix New feature Breaking change Documentation Other: ___________ Testing bun run --cwd apps/sim test 'app/workspace/[workspaceId]/components/connect-oauth-modal/connect-oauth-modal.test.tsx' lib/credentials/draft-processor.test.ts lib/credentials/draft-hooks.test.ts (18 tests passed) bun run --cwd apps/sim type-check Changed-file Biome check Chrome-controlled local app verification with a disposable localhost-only Slack credential whose stored scope was chat:write: Confirmed the Slack block displayed Additional permissions required and Update access. Confirmed the existing Connect Slack permission modal rendered without visual regressions. Confirmed POST /api/credentials/draft created draft 7e70aa5f-afc3-42df-95b4-5ed144dd5748 for workspace 6762b941-0cb8-4787-918d-c8ac76d501b4, provider slack, selected credential ea789bd4-17c9-4a8f-80fd-123456789004, and display name Local incomplete Slack. Confirmed the subsequent POST /api/auth/oauth2/link was attempted. The local run used port 3001 because port 3000 was occupied by another worktree, so Better Auth rejected the local origin before any Slack redirect. The focused modal test separately verifies that the returned draft ID is forwarded into this link call. Removed the disposable workflow, account, credential, draft, and any matching audit rows afterward. No live Slack OAuth flow was completed, no real grant or credential was modified, and no provider configuration was changed. 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) Screenshots/Videos Not applicable: no visual changes are intended. Chrome verification confirmed the existing warning and modal presentation.

Open Graph Description: Summary Bind existing-credential reauthorization to the exact selected OAuth credential before redirecting. This makes the callback use the established draft reconnect path instead of relying on pr...

X Description: Summary Bind existing-credential reauthorization to the exact selected OAuth credential before redirecting. This makes the callback use the established draft reconnect path instead of relying on pr...

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

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:d16fe109-0ded-044d-a886-c716e116eb22
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD30C:D16D6:1218949:18E242D:6AFB71A3
html-safe-noncea5e3e56ef77788090a90225f15e77c166feafe6684a18b39e4e6b7133bf21920
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzBDOkQxNkQ2OjEyMTg5NDk6MThFMjQyRDo2QUZCNzFBMyIsInZpc2l0b3JfaWQiOiI0MDEzMjA4MTEwMjEzMzI5MzE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca7fca5965048a4ad066dfc73f7cf1ee4fde2b79ed91d3eb2e9fd2ed622b03e94
hovercard-subject-tagpull_request:4340243864
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/6999/files
twitter:imagehttps://avatars.githubusercontent.com/u/157128530?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/157128530?s=400&v=4
og:image:altSummary Bind existing-credential reauthorization to the exact selected OAuth credential before redirecting. This makes the callback use the established draft reconnect path instead of relying on pr...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48
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
release2e8872b770cc4d5d0cc1f2026afab747a268e2ce
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6999/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6999%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%2F6999%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/6999/files
Reloadhttps://github.com/simstudioai/sim/pull/6999/files
Reloadhttps://github.com/simstudioai/sim/pull/6999/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)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
BillLeoutsakosvl346https://github.com/BillLeoutsakosvl346
staginghttps://github.com/simstudioai/sim/tree/staging
fix/slack-update-accesshttps://github.com/simstudioai/sim/tree/fix/slack-update-access
Conversation 28 https://github.com/simstudioai/sim/pull/6999
Commits 6 https://github.com/simstudioai/sim/pull/6999/commits
Checks 30 https://github.com/simstudioai/sim/pull/6999/checks
Files changed https://github.com/simstudioai/sim/pull/6999/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6999/files
fix(oauth): bind update access to selected credential https://github.com/simstudioai/sim/pull/6999/files#top
Show all changes 6 commits https://github.com/simstudioai/sim/pull/6999/files
e1d6066 fix(oauth): bind update access to selected credential Aug 22, 2026 https://github.com/simstudioai/sim/pull/6999/commits/e1d60667fa99377caf0dc8f7948c778d5fc6311a
ac2e3d6 fix(oauth): guard unresolved connector credentials Aug 23, 2026 https://github.com/simstudioai/sim/pull/6999/commits/ac2e3d6af6e244450d3f9b12410bff142e9741a2
d13e313 fix(oauth): clear stale connector return context Aug 23, 2026 https://github.com/simstudioai/sim/pull/6999/commits/d13e3136d9321afd50083842a2ff60635c269891
9fcfa4f fix(oauth): fail closed when reconnect target disappears Aug 23, 2026 https://github.com/simstudioai/sim/pull/6999/commits/9fcfa4fa227f1cffd37c29139547ab88d11a1565
63030f2 fix(oauth): wait for reconnect credential lookup Aug 24, 2026 https://github.com/simstudioai/sim/pull/6999/commits/63030f2ee781d2c2ac684b7223a24bd327972bee
fe47b61 fix(oauth): refresh resolved connector credential Aug 24, 2026 https://github.com/simstudioai/sim/pull/6999/commits/fe47b617d9c5b7e850c7e3387a955a37e0ee66b2
Clear filters https://github.com/simstudioai/sim/pull/6999/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6999/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6999/files
connect-oauth-modal.test.tsx https://github.com/simstudioai/sim/pull/6999/files#diff-3b3218e8490f5676c9350e1069590ac2abec0d3a81c9ef24239ce8d931be04cf
connect-oauth-modal.tsx https://github.com/simstudioai/sim/pull/6999/files#diff-4a8e282bdf48495dc6bf1fd0ab547bc17073b5617f3779da34ffc6d0d0fa2b04
connectors-section.test.tsx https://github.com/simstudioai/sim/pull/6999/files#diff-589fe7bae9fe856b0265388a8b424a759ffbad5d14b93b059441b9567a253c5b
connectors-section.tsx https://github.com/simstudioai/sim/pull/6999/files#diff-9fbc901cf4031233c1e0bfcb5393b66023e459cadee02f330dcac6bd8d1889cb
credential-selector.tsx https://github.com/simstudioai/sim/pull/6999/files#diff-f3c5aaf46591f7ff1d9e49791ed38f1711325bc3945856d1582865db537faf47
credential-selector.tsx https://github.com/simstudioai/sim/pull/6999/files#diff-669039155a1e7f1ea0309bf11c74f455f07ea84b4c6e18c070831e30eb6f54d7
draft-processor.test.ts https://github.com/simstudioai/sim/pull/6999/files#diff-7268929c94c6bea43d80f0360d4c7eb7e9c98fa97fa7343c41ea7642c126d1d9
...m/app/workspace/[workspaceId]/components/connect-oauth-modal/connect-oauth-modal.test.tsxhttps://github.com/simstudioai/sim/pull/6999/files#diff-3b3218e8490f5676c9350e1069590ac2abec0d3a81c9ef24239ce8d931be04cf
View file https://github.com/simstudioai/sim/blob/fe47b617d9c5b7e850c7e3387a955a37e0ee66b2/apps/sim/app/workspace/%5BworkspaceId%5D/components/connect-oauth-modal/connect-oauth-modal.test.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6999/{{ revealButtonHref }}
apps/sim/app/workspace/[workspaceId]/components/connect-oauth-modal/connect-oauth-modal.tsxhttps://github.com/simstudioai/sim/pull/6999/files#diff-4a8e282bdf48495dc6bf1fd0ab547bc17073b5617f3779da34ffc6d0d0fa2b04
View file https://github.com/simstudioai/sim/blob/fe47b617d9c5b7e850c7e3387a955a37e0ee66b2/apps/sim/app/workspace/%5BworkspaceId%5D/components/connect-oauth-modal/connect-oauth-modal.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6999/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6999/files#diff-4a8e282bdf48495dc6bf1fd0ab547bc17073b5617f3779da34ffc6d0d0fa2b04
https://github.com/simstudioai/sim/pull/6999/files#diff-4a8e282bdf48495dc6bf1fd0ab547bc17073b5617f3779da34ffc6d0d0fa2b04
https://github.com/simstudioai/sim/pull/6999/files#diff-4a8e282bdf48495dc6bf1fd0ab547bc17073b5617f3779da34ffc6d0d0fa2b04
https://github.com/simstudioai/sim/pull/6999/files#diff-4a8e282bdf48495dc6bf1fd0ab547bc17073b5617f3779da34ffc6d0d0fa2b04
https://github.com/simstudioai/sim/pull/6999/files#diff-4a8e282bdf48495dc6bf1fd0ab547bc17073b5617f3779da34ffc6d0d0fa2b04
Please reload this pagehttps://github.com/simstudioai/sim/pull/6999/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6999/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.