Ctrl+C while copying selected text cancels and declines confirmation dialog
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
Línea de trabajo
Comienza con el diálogo de solicitud o confirmación de Copilot CLI y la ruta de cancelación con Ctrl+C descritos en la reproducción; el issue no menciona archivos fuente ni rutas de prueba existentes. Reprodúcelo en Windows Terminal con PowerShell, luego añade la cobertura de regresión sugerida y verifica que copiar texto seleccionado no envíe una respuesta rechazada y que el script siga siendo recuperable.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
When Copilot CLI displays a confirmation dialog containing a multi-line script and waits for me to confirm that I ran it, I highlight part of the script and press Ctrl+C to copy the selected text.
Instead of copying the selection while leaving the dialog open, Copilot CLI closes the dialog, removes its contents, and tells the agent that I declined the prompt. I then cannot copy the remaining commands, and the agent incorrectly proceeds as though I intentionally rejected the confirmation.
Windows Terminal may deliver Ctrl+C as an interrupt, but converting that interrupt into a semantically "declined" answer and removing the only visible copy of the script is CLI-level behavior. Cancellation and explicit decline should not be treated as equivalent.
Affected version
GitHub Copilot CLI 1.0.84-3
Steps to reproduce the behavior
- Open Windows Terminal with PowerShell.
- Start
copilot. - Ask Copilot to provide a multi-line script and then display a confirmation dialog that waits for confirmation that the script has been run.
- Use the mouse to highlight the first part of the displayed script.
- Press Ctrl+C with the intention of copying the selected text.
- Observe that the confirmation dialog closes and its contents disappear.
- Observe that Copilot reports the prompt to the agent as declined, even though no decline option was selected.
- Attempt to copy the remaining part of the script and observe that it is no longer available.
Expected behavior
When text is selected inside a confirmation dialog, copying that text must not submit a declined response or permanently remove the dialog contents. If Ctrl+C is handled as cancellation rather than copy, the CLI should distinguish cancellation from an explicit decline and preserve the dialog or its script in the conversation timeline so it remains copyable.
Additional context
- Reproducibility: Happens consistently when I press Ctrl+C after selecting text in a blocking confirmation dialog.
- Operating system: Microsoft Windows 11 Enterprise, version 10.0.26200
- CPU architecture: x64
- CPU: AMD EPYC 7763 64-Core Processor
- Terminal emulator: Windows Terminal
- Shell: PowerShell 7.6.6
- Copilot CLI help currently documents
ctrl+cascancel. - The incorrect behavior is specifically that cancellation is returned to the agent as an explicit decline and the dialog content disappears.
- Debug logs: Attach a debug log from a reproduction if available.
- Suggested regression test: Render an elicitation dialog, deliver Ctrl+C while text is selected, and verify that the dialog does not produce a declined response and that its content remains recoverable.
- Lenguaje dominante
- Shell
- Estrellas
- 11.2k
- Forks
- 1.9k
- Merge medio
- 14 h 16 min
- PR fusionados (30 d)
- 6
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/copilot-cli
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
github/copilot-cli#4848 ·
-
area:agents area:mcp
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
github/copilot-cli#4729 ·
-
area:sessions
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
github/copilot-cli#4712 ·
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
github/copilot-cli#4638 ·
-
Expose large_output_file_path on TaskShellProgress so clients can read complete shell-task output Abiertoarea:tools
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
github/copilot-cli#4630 · 1 comentario ·
Todos los issues de github/copilot-cli
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
hust-open-atom-club/hustmirror-cli#52 · 1 comentario ·
-
stack resolver is outdated Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
koalaman/shellcheck#3539 ·
-
package-request
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
msys2/MINGW-packages#31806 ·
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
ansible-collections/community.openwrt#271 · 1 comentario ·