Provider-initiated canvas.close removes runtime instance but leaves panel visible
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
-
Create an extension-backed canvas using
createCanvas(). -
Open it using a known
instanceId. -
From the extension, call:
await session.rpc.canvas.close({ instanceId }); -
Observe that the canvas remains visibly open in the desktop app.
-
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:
- Captures and sends the complete canvas state to Copilot.
- Closes the now-unneeded canvas.
- 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
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 2.1k
- Forks
- 157
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de github/app
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Todos los issues de github/app
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
canonical/paas-charm#368 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
tech debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
area:workflow bug ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
fil-donadoni/tolaria#4409 ·
-
status/awaiting_triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100