Skip to content

[Bug]: Fall back to the integrated browser when pull requests cannot load #14041

Description

@ji233-Sun

Before submitting

Area

apps/web

Steps to reproduce

  1. Open a project whose repository's pull request page is accessible in the browser.
  2. Cause the native pull request list request to fail (for example, the GitHub CLI authentication failure described in [Bug]: Pull Requests page fails with "GitHub CLI command failed" when gh uses a GitHub App installation token #11247).
  3. Open Pull Requests with that repository selected.

Expected behavior

When the native PR list fails to load and T3 Code can resolve the selected repository's PR page URL, open that page in the integrated browser as a fallback. Keep a way to retry the native PR view and make the load failure visible without replacing the entire page with an error state. Use the repository's actual host URL, including for non-GitHub providers and self-hosted instances.

If the repository URL cannot be resolved or the integrated browser is unavailable, retain the current error and Retry behavior.

Actual behavior

The page displays Could not load pull requests with a Retry button and no in-app path to the repository's PR page. On current main (d15210c), the list error branch renders PullRequestsUnavailableState whenever the list query fails with no results. That state component only offers Retry unless a GitHub URL is explicitly supplied; this caller supplies none.

Impact

Major degradation or frequent failure: a PR-list error prevents browsing pull requests inside T3 Code even when the repository's web page remains accessible. The fallback would preserve access while the native integration is unavailable.

Version or commit

main at d15210c (code path verified; no local runtime reproduction).

Environment

Not tied to a particular OS or browser. The example in #11247 uses a GitHub App installation token for gh.

Workaround

Open the repository's PR page separately in a browser.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequested improvement or new capability.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions