Copilot app: user extensions never start in sessions linked to a pull request
還沒有人認領這個 Issue。
評估
- 難度
- 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 分鐘
- 30 天內合併 PR
- 3
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 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
-
fidelity
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
backlog
難度 2/5 1-3 小時 新手友好度 72/100
sagemathinc/sagebrush#3434 ·
維護者通常 1 天內回覆
-
marketing
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
documentation good first issue help wanted
難度 2/5 1-3 小時 新手友好度 78/100
wuisabel-gif/MemWhale#576 ·
維護者通常 1 天內回覆
-
Status: Triage Suggestion
難度 2/5 1-3 小時 新手友好度 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
維護者通常 1 天內回覆