fix(knowledge): unschedule connectors only for credential revocations, not app configuration faults - #8178
Merged
waleedlatif1 merged 2 commits intoSep 23, 2026
Conversation
…, not app configuration faults
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
|
Collaborator
Author
Collaborator
Author
|
@cubic-dev-ai review this PR |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
waleedlatif1
deleted the
fix/connector-unschedule-credential-codes-only
branch
September 23, 2026 00:07
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
invalid_client,bad_client_secret,invalid_client_id,bad_redirect_uri). Those are our config faults, not the owner's: one mis-rotated client secret would unschedule every connector of that provider until each owner reconnected, even after the fixterminal-errors.tsinto credential revocations and app-configuration faults, and exportisCredentialRevocationError(code, providerId).isTerminalRefreshErroris now the union of the two, so what gets dead-flagged is unchangedgetCredentialTerminalRefreshErrornow returns{ errorCode, providerId }. The sync engine uses the new predicate at both checks (token resolution and the pre-unschedule re-read), so only a revocation takes the unschedule-and-reconnect path. App-configuration faults go back to the ordinary failure ladder, which is how it worked before fix(knowledge): unschedule a connector whose credential the source rejected and prompt to reconnect #8158unauthorized_clientstill counts as a revocation only for Confluence and Jira. For other providers it is not terminalCREDENTIAL_REVOKED_SYNC_ERROR, so it follows this change with no UI editType of Change
Testing
isCredentialRevocationErrorclassification. In the sync engine,invalid_client/bad_client_secretgo to the ordinary ladder,invalid_grantunschedules, andunauthorized_clientunschedules for Confluence but goes to the ladder for other providersChecklist