Prompt edits silently vanish if focus is changed
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Type: Bug
I was attempting to edit a prompt that I had cancelled because it was accidentally submitted before it was complete (caused by a different issue that I'll post separately). I added a significant amount of further information to the prompt, then was curious about something earlier in the chat, so I scrolled up and clicked on one of the tool calls to dig into the output.
The instant I click on something else, the prompt editor closes out, and silently throws out *all* of the edits I had made. I can click on 'edit' again and it comes back up with the original prompt. I have had this happen at least 3 times now, and each time it has erased a significant amount of prompt content.
I just verified this happens for *any* prompt edit, whether cancelled or not.
Reproduction:
- click on a prompt (completed or cancelled) to edit it
- add some text to it
- click somewhere else in the chat log
- watch the editor close and your changes vanish
Resolution needed:
Any "editted" prompt must retain those edits regardless of any other user actions, and if the inline editor has to be "closed" for some reason, that prompt should clearly show that it is in the middle of being editted. Explicit (not mouseover) buttons should then be attached to that prompt to continue editing, or discard.
VS Code version: Code 1.132.0 (df53daabb18cd157bdb08c7f01c34df936cf12f4, 2026-08-04T15:30:20Z)
OS version: Linux x64 6.1.0-42-amd64
Modes:
System Info
|Item|Value|
|---|---|
|CPUs|AMD Ryzen 7 3700X 8-Core Processor (16 x 4187)|
|GPU Status|2d_canvas: enabled
GPU0: VENDOR= 0x1002 [Google Inc. (AMD)], DEVICE=0x731f [ANGLE (AMD, AMD Radeon RX 5700 XT (navi10 LLVM 15.0.6), OpenGL 4.6 (Core Profile) Mesa 22.3.6)], DRIVER_VENDOR=Mesa, DRIVER_VERSION=22.3.6 *ACTIVE*
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgpu: enabled
webgpu_on_vk_via_gl_interop: disabled_off
webnn: disabled_off|
|Load (avg)|12, 11, 10|
|Memory (System)|62.72GB (27.17GB free)|
|Process Argv|. --crash-reporter-id d908430f-8350-420d-be7a-5e28e110b47e|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|lightdm-xsession|
|XDG_CURRENT_DESKTOP|XFCE|
|XDG_SESSION_DESKTOP|lightdm-xsession|
|XDG_SESSION_TYPE|x11|
Extensions (11)
Name|Identifier|Author|Version
---|---|---|---
LM Studio for Copilot Chat|danlambiase.lmstudio-copilot-provider|DanLambiase|1.30.5
Container Tools|ms-azuretools.vscode-containers|ms-azuretools|2.4.5
Python Debugger|ms-python.debugpy|ms-python|2026.6.0
Python|ms-python.python|ms-python|2026.4.0
Pylance|ms-python.vscode-pylance|ms-python|2026.3.1
Python Environments|ms-python.vscode-python-envs|ms-python|1.36.0
Dev Containers|ms-vscode-remote.remote-containers|ms-vscode-remote|0.466.0
Remote - SSH|ms-vscode-remote.remote-ssh|ms-vscode-remote|0.124.0
Remote - SSH: Editing Configuration Files|ms-vscode-remote.remote-ssh-edit|ms-vscode-remote|0.87.0
Remote Explorer|ms-vscode.remote-explorer|ms-vscode|0.5.0
Live Server (Five Server)|yandeu.five-server|yandeu|0.4.0
A/B Experiments
```
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
envsactivate1:31551504
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
pandia-0014-2-1000-2in1-med-kld:31558767
cp_cls_t_966_ss:31526232
4je02754:31466945
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31490510
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
test_treatment2:31471001
46204921:31447328
control_6dc23131:31555649
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31518289
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
ddid_t:31478206
hmra_i5g22:31518061
ie3bb177:31557831
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
748c7209:31512887
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
jh5f2457_c:31540921
g4a0e106:31529594
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
jf4hg949:31526829
ahp-both-windows:31556933
session_8:31532895
chatquotatrajectorynudge-control:31548766
ihg5j128:31534457
f412h606:31551416
7g2b5551:31542111
max-result-50:31551153
sandbox-ui-on-2:31543161
5fe6f778:31554331
allow-none:31555437
fd5dc207:31551400
ac562147:31564510
c7c27ce7:31554789
1h923230:31564177
0dg73464:31554319
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
switchtoauto:31559321
vrbsty_fls:31561059
session-mark-done:31558131
5b8j3302:31564172
```
Contributor guide
Assessment
This issue has not been assessed yet.