Desktop app routes public github.com issue links to enterprise host instead of preserving origin
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
This was generated by AI during triage.
Summary
Opening a public github.com issue link in the desktop app creates an inline tab that fails with:
We couldn't load this issue. Please try again.
The tab offers only Retry. Logs show the request being sent to the active enterprise API host instead of api.github.com.
Environment
- GitHub Copilot desktop app v1.0.25
- App-spawned Copilot CLI v1.0.71
- Windows 11
- Active/default account belongs to an enterprise GitHub host
github.comaccess is also configured
Reproduction
- Open this public issue link in the desktop app:
https://github.com/github/copilot-cli/issues/4176 - Allow the app to open it as an inline issue tab.
- Observe the loading failure and Retry button.
Older public issues, including #2901, produced the same failure, ruling out new-issue propagation as the explanation.
Expected behavior
The link's origin host should be preserved. The app should either:
- load the
github.comissue inline usinggithub.com; or - explain that inline loading is unsupported and offer Open in browser.
An owner/repository/number resource must not be resolved against a different GitHub host.
Sanitized evidence
04:54:14.701589Z subscribe_resource owner=github repo=copilot-cli number=4176 [no host]
04:54:28.055442Z get_issue owner=github repo=copilot-cli number=4176 [no host]
04:54:28.143159Z API request failed status=404
https://<enterprise-host>/api/v3/repos/github/copilot-cli/issues/4176
- The failed tab generated 36 equivalent enterprise-host 404 responses.
- The active app log contained no
api.github.comrequest. - Nine older public
github.comissues failed through the same enterprise endpoint. - Failures reported
auth_required=falseandrate_limited=false.
Observed versus unconfirmed
Observed: public github.com issue resources are routed to the active enterprise API host, and the failed inline view provides no browser fallback.
Unconfirmed: logs do not contain the original clicked URL, so they do not show where its github.com host was lost. Pull-request behavior has not been verified.
Related issue
Related, but not a duplicate: #4148.
Questions
- Where should the source host enter the inline resource identity?
- Does inline loading support resources from multiple GitHub hosts?
- Can failed or unsupported inline loads offer Open in browser?
Additional context
This was a read-only investigation. A sanitized screenshot is available showing the inline error and its Retry-only recovery.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された再現手順とサニタイズ済みログを使って、まず inline issue タブと subscribe_resource/get_issue パスを追跡します。API リクエストの前にクリックしたホストが失われる箇所を確認し、その後、公開リンクで github.com が維持されるか、Open in browser のフォールバックが提供されることを、Enterprise ホストのシナリオも含めて検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github, shell
- 領域
- api, desktop
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100