fix(connections): preserve wizard recovery and repository restrictions

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-07 00:22:55 -05:00
1 parent cf8578a9dd
commit 87945c8cf3
15 files changed
+750 -189

No files matched your search

+2
View File
@@ -71,6 +71,8 @@ export const chatGitHubRegistrations = pgTable(
redemptionId: string;
returnState: string;
webhookSecretHash?: string;
identityLeaseId?: string;
identityLeaseExpiresAt?: string;
identityStateHash?: string;
identityExpiresAt?: string;
identityRedemptionId?: string;
@@ -199,6 +199,8 @@ export interface ChatEndpointSetupState {
appName?: string;
cloudRegistrationId?: string;
initialRepositoriesImported?: boolean;
repositorySelectionSaved?: boolean;
initialRepositoryImportPending?: boolean;
};
step: "choose_agent" | "provider_setup" | "test" | "complete";
/** Server-generated boundary; only provider events at or after this time can complete setup. */
@@ -5,6 +5,7 @@ export type GitHubAppOwner = {
export type GitHubAppRegistrationInput = GitHubAppOwner & { name: string };
export type GitHubAppCloudState = GitHubAppOwner & {
id: string;
returnOrigin?: string;
status: "pending" | "exchanging" | "credentials" | "installed" | "failed";
expiresAt: string;
appId?: string;