Title: Add connection identification to Account model to support multiple instances of same code host type · Issue #730 · sourcebot-dev/sourcebot · GitHub
Open Graph Title: Add connection identification to Account model to support multiple instances of same code host type · Issue #730 · sourcebot-dev/sourcebot
X Title: Add connection identification to Account model to support multiple instances of same code host type · Issue #730 · sourcebot-dev/sourcebot
Description: Context The Account model currently stores only the provider type (e.g., github or gitlab) without identifying which specific connection instance the account belongs to. Problem When config.connections contains multiple connections of th...
Open Graph Description: Context The Account model currently stores only the provider type (e.g., github or gitlab) without identifying which specific connection instance the account belongs to. Problem When config.connect...
X Description: Context The Account model currently stores only the provider type (e.g., github or gitlab) without identifying which specific connection instance the account belongs to. Problem When config.connect...
Opengraph URL: https://github.com/sourcebot-dev/sourcebot/issues/730
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add connection identification to Account model to support multiple instances of same code host type","articleBody":"## Context\n\nThe `Account` model currently stores only the provider type (e.g., `github` or `gitlab`) without identifying which specific connection instance the account belongs to.\n\n## Problem\n\nWhen `config.connections` contains multiple connections of the same type (e.g., GitHub Cloud and a self-hosted GitHub Enterprise instance), the permission syncer uses `.find(connection =\u003e connection.type === 'github')?.url` which always returns the first match—regardless of which instance the account actually belongs to.\n\n## Impact\n\n- Permission syncs may call the wrong API endpoint\n- Failed syncs for users with accounts on different instances\n- Potential for incorrect permission data or data corruption\n\n## Solution\n\nAdd a mechanism to uniquely identify connections and link accounts to their specific connection instance (e.g., `connectionId` field on the `Account` model).\n\n## References\n\n- PR: https://github.com/sourcebot-dev/sourcebot/pull/729\n- Discussion: https://github.com/sourcebot-dev/sourcebot/pull/729#discussion_r2684769908\n- Requested by: @brendan-kellam\n\nThis affects both GitHub and GitLab permission syncing in `accountPermissionSyncer.ts`.","author":{"url":"https://github.com/coderabbitai[bot]","@type":"Person","name":"coderabbitai[bot]"},"datePublished":"2026-01-13T04:43:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/730/sourcebot/issues/730"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c39fcde2-2743-113e-bf7d-6b531a09c11d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD46:2E0B3C:101A6AB:178F86B:6A4E376B |
| html-safe-nonce | 70a4a2f642fff5ceec7371efdf309b44573fc71552ea58ef0c6ad1add873c90d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDQ2OjJFMEIzQzoxMDFBNkFCOjE3OEY4NkI6NkE0RTM3NkIiLCJ2aXNpdG9yX2lkIjoiMjI1MDU1NjI1OTIyNzgwOTY0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c8bdd63992329a6d44870320a934ab8934a99e7260a5e8c2a4f3ef6ef2ac69c5 |
| hovercard-subject-tag | issue:3807070095 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sourcebot-dev/sourcebot/730/issue_layout |
| twitter:image | https://opengraph.githubassets.com/19a000daa2394f26f9813bf7ae0d6ba9a9b5d7c0648a9c6cbe740b59aacd8bd0/sourcebot-dev/sourcebot/issues/730 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/19a000daa2394f26f9813bf7ae0d6ba9a9b5d7c0648a9c6cbe740b59aacd8bd0/sourcebot-dev/sourcebot/issues/730 |
| og:image:alt | Context The Account model currently stores only the provider type (e.g., github or gitlab) without identifying which specific connection instance the account belongs to. Problem When config.connect... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | coderabbitai[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/sourcebot-dev/sourcebot git https://github.com/sourcebot-dev/sourcebot.git |
| octolytics-dimension-user_id | 135396723 |
| octolytics-dimension-user_login | sourcebot-dev |
| octolytics-dimension-repository_id | 846729675 |
| octolytics-dimension-repository_nwo | sourcebot-dev/sourcebot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 846729675 |
| octolytics-dimension-repository_network_root_nwo | sourcebot-dev/sourcebot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 42a6d378d7587a44c93aca255096cd66b7c8eb2d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width