You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SPI: let core refresh a connection's identity (handle empty after plugin migrations) #661
The plugin migrations create git_identities rows with an empty handle, because the token's user is only known after calling the platform. The plugin completes its own record on first use, but core never learns the result: the migrated connection stays nameless in Settings → Git, and anything that relies on the handle (mentions, addressing) doesn't match it.
The SPI has no way to ask for it: an Identity only comes back from CompleteIdentitySetup.
Proposal
plugin-sdk-go: an optional DescribeIdentity(ctx, {Identity IdentityRef}) (Identity, error), advertised by a capability so existing providers are unaffected. Additive, stays gitprovider.v1.
Core: when a connection's handle is empty and the provider has the capability, call it once (lazily, e.g. when listing connections), save handle / display name / expiry, and carry on if it fails.
GitLab and GitHub providers: implement it with the completion they already do on first use.
I can send the three PRs once you're OK with the shape.
Activity
pullfrog commentedon Oct 29, 2026
pikann commentedon Oct 29, 2026
Thank you so much for pointing this out! Please feel free to open the PRs
fix(git): bound one listing's describe calls and mask their errors
feat(gitprovider): add optional DescribeIdentity operation
chore(git): sync SPI for describe_identity
feat(git): add describe_identity client op
feat(git): name connections with no handle from the provider
docs(git): document describe_identity
fix(git): back off after a failed describe_identity
fix(git): never overwrite a handle in UpdateIdentityProfile
feat(spi): describe identities so core learns a migrated handle
docs: say what happens when a connection cannot be named
feat(identity): describe existing identities
docs: explain how migrated connections get their handle
feat(identity): report token expiry and check the token when describing
docs: say what happens when a connection cannot be named