豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

feat: add updateArtifacts method to handle exit plan mode requests#4932

Merged
DonJayamanne merged 2 commits intomainfrom
don/registered-earthworm
Apr 2, 2026
Merged

feat: add updateArtifacts method to handle exit plan mode requests#4932
DonJayamanne merged 2 commits intomainfrom
don/registered-earthworm

Conversation

@DonJayamanne
Copy link
Copy Markdown
Collaborator

No description provided.

@DonJayamanne DonJayamanne self-assigned this Apr 2, 2026
@DonJayamanne DonJayamanne marked this pull request as ready for review April 2, 2026 05:07
Copilot AI review requested due to automatic review settings April 2, 2026 05:07
@DonJayamanne DonJayamanne enabled auto-merge April 2, 2026 05:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds artifact-updating behavior to the Copilot CLI chat session so that when “exit plan mode” is requested (and when a request completes) the session can publish plan-related artifacts via the setArtifacts tool.

Changes:

  • Call updateArtifacts() when the SDK emits exit_plan_mode.requested.
  • Call updateArtifacts() in the request finally block to refresh artifacts at request completion.
  • Introduce a private updateArtifacts() helper that derives a “Plan” artifact from this._sdkSession.getPlanPath() and invokes the setArtifacts tool.

Comment thread src/extension/chatSessions/copilotcli/node/copilotcliSession.ts Outdated
Comment thread src/extension/chatSessions/copilotcli/node/copilotcliSession.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@DonJayamanne DonJayamanne added this pull request to the merge queue Apr 2, 2026
Merged via the queue into main with commit aad294f Apr 2, 2026
19 checks passed
@DonJayamanne DonJayamanne deleted the don/registered-earthworm branch April 2, 2026 06:38
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.

3 participants