Copilot app: user extensions never start in sessions linked to a pull request
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript, python
調査の方向性
Start by tracing the app log’s extensions_reconciliation_needed decision for PR linked sessions, then compare it with the reconciliation path for sessions without a PR; the payload does not name source files or tests. Check how created_pr_number affects refresh behavior and add or locate coverage for both session types. Done when user extensions start in interactive sessions regardless of PR linkage.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
In the GitHub Copilot app, user extensions in ~/.copilot/extensions/ never start in a session that has a pull request linked to it, either a PR the session created or a PR session. These sessions get none of the extensions' tools or hooks. Sessions without a linked PR load the same extension normally.
The app log suggests the app decides not to reconcile extensions for these sessions. Every extensibility live-session refresh completed line for a PR-linked session shows extensions_reconciliation_needed=false. Sessions without a PR show true. Both kinds show extensions_stale=true:
session_id=<PR-linked session, busy> ... extensions_stale=true skills_stale=true extensions_reconciliation_needed=false
session_id=<PR-linked session> ... extensions_stale=true skills_stale=true extensions_reconciliation_needed=false
session_id=<session without a PR> ... extensions_stale=true skills_stale=true extensions_reconciliation_needed=true
I checked this on one machine across 4 app runs over 2 days. Every PR-linked session showed false and every session without a PR showed true. The one exception was a session without a PR that logged false once, about 10 seconds after it was created.
Affected version
GitHub Copilot app 1.5.0 (commit 6ff6e7f1), Windows x64. The CLI is 1.0.115 / 1.0.116.
Steps to reproduce the behavior
- Add a user extension that writes a heartbeat file when it starts. For example,
~/.copilot/extensions/probe/extension.mjscallsjoinSession()and then writes<sessionId>.alive.jsonto a temp folder every 30 s. - Restart the app.
- Open a session that has no linked PR and send a message. The heartbeat file for that session appears and keeps updating.
- Open a session whose workspace has a linked PR (
created_pr_numberis set, e.g. after the agent opened a PR) and send a message. The session runs normally, but no heartbeat file ever appears for it. The app log showsextensions_reconciliation_needed=falsefor that session ID.
Right now on my machine, 4 sessions without a PR have fresh heartbeats. Two PR-linked sessions that are busy at the same moment have none.
Expected behavior
User extensions start in every interactive session, whether or not a pull request is linked to it.
Additional context
- This looks related to #5380, where extensions don't start for sessions created with
create_sessionuntil the user switches to them. Here, though, the session is in the foreground and actively running, and the extension still never starts. - Use case: a desktop PR review tool hands a prompt (e.g. "resolve the merge conflicts on this PR") to the session that owns the PR through a small extension. PR-linked sessions are the most important case for this, and they are exactly the sessions where the extension never runs.
- Related feature request: a supported way for an external tool to send a prompt into an existing session. Today
ghapp://sessions/<id>only opens the session, and idle sessions shut down after about 10 minutes, so an extension is the only option.
- 主要言語
- Python
- スター
- 11.5k
- フォーク
- 2k
- 平均マージ
- 6時間 34分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/copilot-cli のほかの issue
-
area:plugins
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
github/copilot-cli#5567 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
github/copilot-cli#5489 ·
-
Built-in functions.view returns no content for large files despite documenting automatic truncationオープンarea:tools
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
github/copilot-cli#5476 ·
-
triage
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
github/copilot-cli#5377 ·
-
area:platform-windows area:tools
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
github/copilot-cli#5340 ·
github/copilot-cli の issue をすべて見る
似ている issue
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
Status: Triage Suggestion
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
collabnix/awesome-mcp-lists#515 ·
メンテナーはふだん 1 日以内に返信
-
Look-ahead bias via resample('1min').interpolate(method='time') in CCIStrategy and ReinforcedQuickieオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信