Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Provider-initiated canvas.close removes runtime instance but leaves panel visible

オープン
#4,118 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript
領域
api, desktop

調査の方向性

Start by tracing the session.rpc.canvas.close({ instanceId }) path from the extension API into the desktop host's canvas panel state. Reproduce the provider-initiated close and verify that the matching panel is dismissed or that the request is rejected when unsupported; add a regression test if the relevant canvas behavior tests are available.

索引モデルが issue の本文から書いたものです。

説明

Description

When a canvas extension calls session.rpc.canvas.close({ instanceId }), the runtime removes the canvas instance, but the GitHub Copilot desktop app continues displaying the canvas panel.

The panel can still be closed manually. This is different from an iframe becoming stuck or its normal close control failing.

Steps to reproduce

  1. Create an extension-backed canvas using createCanvas().

  2. Open it using a known instanceId.

  3. From the extension, call:

    await session.rpc.canvas.close({ instanceId });
    
  4. Observe that the canvas remains visibly open in the desktop app.

  5. Attempt to invoke an action against the same instance.

Actual behavior

The panel remains visible and interactive-looking, but the runtime reports that the canvas no longer exists:

Request session.canvas.action.invoke failed with message:
Canvas instance "interactive-demo-2" is not open.
No canvases are currently open.

The visible panel can still be closed manually by the user.

This produces a runtime/host state mismatch:

  • Runtime: canvas is closed
  • Desktop host: canvas panel remains visible
  • Subsequent canvas actions: rejected because the instance is no longer open

The issue also occurs when the extension performs a human-in-the-loop handoff:

await session.send({ prompt: handoffPrompt });
await session.rpc.canvas.close({ instanceId });

The submitted prompt reaches the conversation successfully, and the close call does not throw, but the panel remains visible.

Expected behavior

After session.rpc.canvas.close({ instanceId }) completes, the desktop host should dismiss the corresponding canvas panel and emit/render the closed state consistently.

Alternatively, if provider-initiated closing is unsupported, the API should reject the request rather than removing the runtime instance while leaving the host panel visible.

Use case

A custom canvas is used as a human-in-the-loop form or editing interface. When the user clicks Submit, the extension:

  1. Captures and sends the complete canvas state to Copilot.
  2. Closes the now-unneeded canvas.
  3. Lets Copilot continue processing in the conversation.

The handoff succeeds, but automatic panel dismissal does not.

Environment

  • GitHub Copilot app: 1.0.87-0
  • OS: macOS
  • Canvas type: extension-owned iframe canvas
  • Extension scope: session
  • SDK API: session.rpc.canvas.close
主要言語
言語のデータがありません
スター
2.1k
フォーク
157
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/app のほかの issue

github/app の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。