Skip to content

Restore Reconnect action for GitHub App connections - #469

Open
erichanwang wants to merge 1 commit into
onecli:mainfrom
erichanwang:fix/github-app-reconnect-flow
Open

Restore Reconnect action for GitHub App connections#469
erichanwang wants to merge 1 commit into
onecli:mainfrom
erichanwang:fix/github-app-reconnect-flow

Conversation

@erichanwang

Copy link
Copy Markdown

fixes #403

changes

  • connection-account-card.tsx was hiding the "Reconnect" menu item entirely whenever a connection's metadata carried a manageUrl — only github-app sets this — replacing it with a direct link to the existing GitHub installation settings page. That's the root cause of the silent failure in GitHub App (BYOC): Reconnect navigates to existing installation page instead of triggering fresh auth flow #403: the only action available for a connected GitHub App sent users straight to github.com with no explanation and no way to trigger a fresh OAuth flow.
  • Reconnect is now always shown alongside Settings (when present).
  • For connections with a manageUrl (GitHub App), clicking Reconnect first shows a confirmation dialog explaining that GitHub short-circuits the OAuth callback back to the installation settings page when the app is already installed, with a link to open those settings and uninstall before reconnecting.

verification

  • pnpm --filter web check-types
  • pnpm --filter web lint
  • git diff --check
  • pnpm check (full monorepo lint + check-types + format:check, ran via pre-commit hook)

connection-account-card.tsx hid the Reconnect menu item entirely whenever
a connection's metadata carried a manageUrl (only github-app sets this),
replacing it with a direct link to the existing GitHub installation
settings page. That's the "silent" failure from onecli#403: users had no way
to trigger a fresh OAuth flow, and the only available action dumped them
on github.com with no explanation.

Reconnect is now always available. For github-app connections it first
confirms, since GitHub short-circuits the OAuth callback back to the
installation settings page when the app is already installed — the
dialog explains that and links to the settings page to uninstall first.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019XrcMxXTRMo1C8t4AyUJor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub App (BYOC): Reconnect navigates to existing installation page instead of triggering fresh auth flow

1 participant