René's URL Explorer Experiment


Title: fix(invitations): let Chat invite teammates through the workspace invitations command by waleedlatif1 · Pull Request #8834 · simstudioai/sim · GitHub

Open Graph Title: fix(invitations): let Chat invite teammates through the workspace invitations command by waleedlatif1 · Pull Request #8834 · simstudioai/sim

X Title: fix(invitations): let Chat invite teammates through the workspace invitations command by waleedlatif1 · Pull Request #8834 · simstudioai/sim

Description: Summary workspaces invitations create bound a use case with no delegated admission, so every Chat call got 403 This operation is unavailable through Mothership, even though Chat could already send the same invitation through settings workspace … teammates invite The v2 route now binds sendWorkspaceInvitationBatch, the use case the settings tool already uses, through a single workspaceInvitationOperations.sendBatch operation (session, personal key, OAuth api:write and Copilot delegation) Chat runs as the user: workspace admin role, invitations.send permission-group capability, invite policy and delegated-workspace target pinning are the same checks the settings path applies. Workspace API keys stay denied Personal key and OAuth callers keep every check they had, including the per-email locked-transaction rechecks. Session callers on the internal batch route are untouched The teammates settings hint now names workspaces invitations create alongside workspaces members The OpenAPI x-sim-operation id changes to workspace_invitations.send_batch. The CLI contract is unchanged Organization invitation, member and permission-group v2 routes stay direct-caller only. Chat reaches those through settings organization. No v2 workspace route exists yet for adding, removing or updating members, or for cancelling or resending invitations; Chat does those through the settings teammates operations Type of Change Bug fix Testing New lib/invitations/__integration__/copilot-workspace-invitations.integration.ts (real Postgres, Chat's in-process CLI transport, real route and domain): a workspace admin invites a new teammate; an email with a pending organization invitation gets the workspace grant added to that invitation, with no second invitation; a member without admin is refused with INSUFFICIENT_WORKSPACE_ROLE. Before the fix both admitted cases returned 403; after it, 3/3 pass send-invitation-batch.test.ts: the personal-key and OAuth admission cases (workspace key denial, read-only OAuth, role, disabled personal keys, permission-group withdrawal mid-batch, locked-transaction rechecks, plan policy) now run against both use cases. New delegated cases cover inviting as the delegating user and a permission group that disables invitations. With the operation's capability removed, that case fails Copilot route inventory snapshot updated bun run lint, bun run type-check, bun run check:audits, root bun run test, docs-manifest:check, block-registry check Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) 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 workspaces invitations create bound a use case with no delegated admission, so every Chat call got 403 This operation is unavailable through Mothership, even though Chat could already send...

X Description: Summary workspaces invitations create bound a use case with no delegated admission, so every Chat call got 403 This operation is unavailable through Mothership, even though Chat could already send...

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

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:1ad94990-8cb5-24aa-4937-2655e52f5995
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCEC8:C4B81:D74318:128BBEB:6AFB5CCC
html-safe-nonce14b8e1bb6d1b085adf8b41c6dea57f4443ec39405e2d380edc6a792a211b0253
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUM4OkM0QjgxOkQ3NDMxODoxMjhCQkVCOjZBRkI1Q0NDIiwidmlzaXRvcl9pZCI6IjYzOTA1NDQzMTYxMDc1NDU4MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2641acd8ba711f439fe4e6db402420f0a45061ed0b3c5e31ef60de9bf21983bc
hovercard-subject-tagpull_request:4795217603
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/8834/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 workspaces invitations create bound a use case with no delegated admission, so every Chat call got 403 This operation is unavailable through Mothership, even though Chat could already send...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
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
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/8834/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8834%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%2F8834%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/8834/files
Reloadhttps://github.com/simstudioai/sim/pull/8834/files
Reloadhttps://github.com/simstudioai/sim/pull/8834/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/chat-workspace-invitationshttps://github.com/simstudioai/sim/tree/fix/chat-workspace-invitations
Conversation 10 https://github.com/simstudioai/sim/pull/8834
Commits 2 https://github.com/simstudioai/sim/pull/8834/commits
Checks 46 https://github.com/simstudioai/sim/pull/8834/checks
Files changed https://github.com/simstudioai/sim/pull/8834/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8834/files
fix(invitations): let Chat invite teammates through the workspace invitations command https://github.com/simstudioai/sim/pull/8834/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/8834/files
afd36e0 fix(invitations): let Chat invite teammates through the workspace inv… waleedlatif1 Oct 9, 2026 https://github.com/simstudioai/sim/pull/8834/commits/afd36e030b5b40e4a1ba0171c9e73fecf9118274
4b58c40 fix(invitations): record the invoked operation in invitation audit me… waleedlatif1 Oct 9, 2026 https://github.com/simstudioai/sim/pull/8834/commits/4b58c40f78cddcde697b5217c8f55edab191308e
Clear filters https://github.com/simstudioai/sim/pull/8834/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8834/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8834/files
openapi-v2-resources.json https://github.com/simstudioai/sim/pull/8834/files#diff-17e168777a3b67e689dd8b24e28aaa217cb884843dccad31b1dbf22d5307e17f
route.test.ts https://github.com/simstudioai/sim/pull/8834/files#diff-41634a41c43703088a41908e7f9302823a7da783db9eb7bfa78b520ba20d8e49
route.ts https://github.com/simstudioai/sim/pull/8834/files#diff-b473fb91534187c334c128a4596074e1322c4e5fde4b417cb894733188896ba4
workspace-invitations.ts https://github.com/simstudioai/sim/pull/8834/files#diff-842d457f2203831051a97feaf41f4a6645a003964c73cde79906e1c45a033bc6
copilot-route-inventory.test.ts https://github.com/simstudioai/sim/pull/8834/files#diff-fb5d28d5bf1396cdae9c7a6db6d8f3039b8928df5637d35d5e5fe4ebbf666bf9
copilot-workspace-invitations.integration.ts https://github.com/simstudioai/sim/pull/8834/files#diff-65ca42e2af24771e697e9bca35ea7fd2e34d400c3567dce8c2ea2f0a8a73ea54
operations.ts https://github.com/simstudioai/sim/pull/8834/files#diff-6d5102c8d3f0b474c8080697650d3b241e9df7496a4ba7c17a97465f96639345
send-invitation-batch.test.ts https://github.com/simstudioai/sim/pull/8834/files#diff-fbfdbd9923247bcdfa164c89acad96d422d88a2d92ccfca3febf7db1ddea3152
send-invitation-batch.ts https://github.com/simstudioai/sim/pull/8834/files#diff-cb89a29eed99a0e8a4875f632dfb69cc9334c5ce4aa098c5725ffac373bd8835
sections.ts https://github.com/simstudioai/sim/pull/8834/files#diff-18d74188b56d7f22e21281cc1a7e47901241be0cc291d13e17887c2aee6c357b
check-unused-exports.baseline.json https://github.com/simstudioai/sim/pull/8834/files#diff-4b59a8526a4f226dffb0fbf6b8ec25d3082ab45da697f584eaaca4bd483c928f
apps/docs/openapi-v2-resources.jsonhttps://github.com/simstudioai/sim/pull/8834/files#diff-17e168777a3b67e689dd8b24e28aaa217cb884843dccad31b1dbf22d5307e17f
View file https://github.com/simstudioai/sim/blob/4b58c40f78cddcde697b5217c8f55edab191308e/apps/docs/openapi-v2-resources.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8834/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8834/files#diff-17e168777a3b67e689dd8b24e28aaa217cb884843dccad31b1dbf22d5307e17f
https://github.com/simstudioai/sim/pull/8834/files#diff-17e168777a3b67e689dd8b24e28aaa217cb884843dccad31b1dbf22d5307e17f
apps/sim/app/api/v2/workspaces/[workspaceId]/invitations/route.test.tshttps://github.com/simstudioai/sim/pull/8834/files#diff-41634a41c43703088a41908e7f9302823a7da783db9eb7bfa78b520ba20d8e49
View file https://github.com/simstudioai/sim/blob/4b58c40f78cddcde697b5217c8f55edab191308e/apps/sim/app/api/v2/workspaces/%5BworkspaceId%5D/invitations/route.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8834/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8834/files#diff-41634a41c43703088a41908e7f9302823a7da783db9eb7bfa78b520ba20d8e49
https://github.com/simstudioai/sim/pull/8834/files#diff-41634a41c43703088a41908e7f9302823a7da783db9eb7bfa78b520ba20d8e49
apps/sim/app/api/v2/workspaces/[workspaceId]/invitations/route.tshttps://github.com/simstudioai/sim/pull/8834/files#diff-b473fb91534187c334c128a4596074e1322c4e5fde4b417cb894733188896ba4
View file https://github.com/simstudioai/sim/blob/4b58c40f78cddcde697b5217c8f55edab191308e/apps/sim/app/api/v2/workspaces/%5BworkspaceId%5D/invitations/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8834/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8834/files#diff-b473fb91534187c334c128a4596074e1322c4e5fde4b417cb894733188896ba4
Please reload this pagehttps://github.com/simstudioai/sim/pull/8834/files
apps/sim/lib/api/contracts/v2/openapi/workspace-invitations.tshttps://github.com/simstudioai/sim/pull/8834/files#diff-842d457f2203831051a97feaf41f4a6645a003964c73cde79906e1c45a033bc6
View file https://github.com/simstudioai/sim/blob/4b58c40f78cddcde697b5217c8f55edab191308e/apps/sim/lib/api/contracts/v2/openapi/workspace-invitations.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8834/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8834/files#diff-842d457f2203831051a97feaf41f4a6645a003964c73cde79906e1c45a033bc6
https://github.com/simstudioai/sim/pull/8834/files#diff-842d457f2203831051a97feaf41f4a6645a003964c73cde79906e1c45a033bc6
apps/sim/lib/api/server/routes/copilot-route-inventory.test.tshttps://github.com/simstudioai/sim/pull/8834/files#diff-fb5d28d5bf1396cdae9c7a6db6d8f3039b8928df5637d35d5e5fe4ebbf666bf9
View file https://github.com/simstudioai/sim/blob/4b58c40f78cddcde697b5217c8f55edab191308e/apps/sim/lib/api/server/routes/copilot-route-inventory.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8834/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8834/files#diff-fb5d28d5bf1396cdae9c7a6db6d8f3039b8928df5637d35d5e5fe4ebbf666bf9
https://github.com/simstudioai/sim/pull/8834/files#diff-fb5d28d5bf1396cdae9c7a6db6d8f3039b8928df5637d35d5e5fe4ebbf666bf9
apps/sim/lib/invitations/__integration__/copilot-workspace-invitations.integration.tshttps://github.com/simstudioai/sim/pull/8834/files#diff-65ca42e2af24771e697e9bca35ea7fd2e34d400c3567dce8c2ea2f0a8a73ea54
View file https://github.com/simstudioai/sim/blob/4b58c40f78cddcde697b5217c8f55edab191308e/apps/sim/lib/invitations/__integration__/copilot-workspace-invitations.integration.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8834/{{ revealButtonHref }}
apps/sim/lib/invitations/application/operations.tshttps://github.com/simstudioai/sim/pull/8834/files#diff-6d5102c8d3f0b474c8080697650d3b241e9df7496a4ba7c17a97465f96639345
View file https://github.com/simstudioai/sim/blob/4b58c40f78cddcde697b5217c8f55edab191308e/apps/sim/lib/invitations/application/operations.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8834/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8834/files#diff-6d5102c8d3f0b474c8080697650d3b241e9df7496a4ba7c17a97465f96639345
Please reload this pagehttps://github.com/simstudioai/sim/pull/8834/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8834/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.