-
Notifications
You must be signed in to change notification settings - Fork 36.8k
Description
Type: Bug
When an agent proposes a code edit that is displayed as a pending change (ghost text/diff view) in the editor, triggering the "New Window" command (Ctrl+Shift+N) causes the pending edit to completely disappear without applying or rejecting it.
Steps to Reproduce:
Have a Copilot Agent propose a code change to a file (where the change is visible but not yet kept or undone).
While the change is pending (ghost text visible), press Ctrl+Shift+N to open a new empty window.
Result: The focus switches to the new window. When returning to the original window, the pending edit is gone.
Recovery: I have to press Ctrl+Z to bring it back.
Expected Behavior: Opening a new window should not dismiss pending Agent edits in the current window. The state of the editor should be preserved.
Extension version: 0.35.2025121002
VS Code version: Code - Insiders 1.107.0-insider (771b551, 2025-12-09T18:53:37.084Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Logs
Info: copilot token chat_enabled: true, sku: free_educational_quota Debug: ConversationFeature: onDidAuthenticationChange has token: true Debug: [context keys] Updating context keys. Info: [code-referencing] Public code references are enabled. Trace: CodeSearchChunkSearch.updateRepoStateFromEndpoint(file:///d%3A/tuyis/code/Projects/TradeBot/neuralranch-app). Checking status from endpoint. Trace: CodeSearchChunkSearch.getRepoIndexStatusFromEndpoint(file:///d%3A/tuyis/code/Projects/TradeBot/neuralranch-app Trace: CodeSearchChunkSearch.updateRepoStateFromEndpoint(file:///d%3A/tuyis/code/Projects/TradeBot/neuralranch-app.worktrees/worktree-2025-12-11T15-09-30). Checking status from endpoint. Trace: CodeSearchChunkSearch.getRepoIndexStatusFromEndpoint(file:///d%3A/tuyis/code/Projects/TradeBot/neuralranch-app.worktrees/worktree-2025-12-11T15-09-30 Trace: CodeSearchChunkSearch.updateRepoStateFromEndpoint(file:///d%3A/tuyis/code/Projects/TradeBot/neuralranch-app.worktrees/worktree-2025-12-11T15-10-33). Checking status from endpoint. Trace: CodeSearchChunkSearch.getRepoIndexStatusFromEndpoint(file:///d%3A/tuyis/code/Projects/TradeBot/neuralranch-app.worktrees/worktree-2025-12-11T15-10-33 Debug: Finished handling auth change event. Trace: RemoteEmbeddingsComputer::computeEmbeddings success. Elapsed 589.7027999982238 Debug: Related Information: Remote similarly request took 589ms Debug: Related Information: Successfully Calculated, returning 591ms Trace: RemoteEmbeddingsComputer::computeEmbeddings success. Elapsed 329.75 Debug: Related Information: Remote similarly request took 330ms Debug: Related Information: Successfully Calculated, returning 331ms Trace: [NES][ModelsService][constructor] computing models Trace: [NES][ModelsService][aggregateModels] created Trace: [NES][ModelsService][aggregateModels] adding built-in default model: useSlashModels false, fetchedNesModels [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object] Trace: [NES][ModelsService][aggregateModels] Adding default model configuration: copilot-nes-oct Trace: [NES][ModelsService][constructor] computing current model Trace: [NES][ModelsService][constructor] computing model info Trace: Fetched auto model for reserve in 231ms. Info: Fetched model metadata in 291ms 7629f3e7-c564-4f0e-81f8-4762dc536752 Info: ccreq:b7740275.copilotmd | markdown Debug: Refetch model metadata: Skipped. Trace: Fetched auto model for reserve in 71ms. Trace: RemoteEmbeddingsComputer::computeEmbeddings started Trace: GithubCodeSearchService::getRemoteIndexState(m-tuyishime/neuralranch). Found indexed commit: 1a33867a31ee43dd63ac7cc0c98787ef23ddf4ca. Trace: CodeSearchChunkSearch.updateRepoStateFromEndpoint(file:///d%3A/tuyis/code/Projects/TradeBot/neuralranch-app.worktrees/worktree-2025-12-11T15-09-30). Updating state to Ready. Trace: GithubCodeSearchService::getRemoteIndexState(m-tuyishime/neuralranch). Found indexed commit: 1a33867a31ee43dd63ac7cc0c98787ef23ddf4ca. Trace: CodeSearchChunkSearch.updateRepoStateFromEndpoint(file:///d%3A/tuyis/code/Projects/TradeBot/neuralranch-app). Updating state to Ready. Trace: GithubCodeSearchService::getRemoteIndexState(m-tuyishime/neuralranch). Found indexed commit: 1a33867a31ee43dd63ac7cc0c98787ef23ddf4ca. Trace: CodeSearchChunkSearch.updateRepoStateFromEndpoint(file:///d%3A/tuyis/code/Projects/TradeBot/neuralranch-app.worktrees/worktree-2025-12-11T15-10-33). Updating state to Ready. Trace: RemoteEmbeddingsComputer::computeEmbeddings success. Elapsed 151.0920000001788 Debug: Related Information: Remote similarly request took 151ms Debug: Related Information: Successfully Calculated, returning 152ms Trace: ChatStatusWorkspaceIndexingStatus::updateStatusItem(id=180): starting Trace: CodeSearchChunkSearch::initialize#181 started Trace: CodeSearchChunkSearch::initialize#181 success. Elapsed 0.03450000286102295 Trace: ChatStatusWorkspaceIndexingStatus::_writeStatusItem() Trace: RemoteEmbeddingsComputer::computeEmbeddings started Trace: RemoteEmbeddingsComputer::computeEmbeddings success. Elapsed 134.734800003469 Debug: Related Information: Remote similarly request took 135ms Debug: Related Information: Successfully Calculated, returning 136ms Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false. Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true. Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false. Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Request IDs
1acc6356-27cd-489f-8b19-b68e25c99e3a e5bd288b-bbef-46e8-9830-948ab134afb0 4705bad0-bfe3-4a83-b13f-1bbba93876f0 122270c1-6198-471b-afa4-0a18f40d1c5a 80416d34-6fc0-4783-a092-472e202c4daa c8c63265-3bed-4d0c-afa2-1e2092ced476 abeb8b56-6ef2-4f0a-8a2a-602001655c82 9fdacf5b-681c-481d-8eb9-82fc6fdb14b1 1143602e-c8f7-4179-9b05-7cb236f839a4 8bb2052b-3cf7-4744-b513-4544e7146f68 ee8a81ee-f118-407c-80a1-1cedf6aea181 a703edb1-7402-49d9-81af-eda0f8519674 3a53cf2b-6cd4-4260-9dce-02529b62b689 433001a5-a257-496b-8ffd-90953abd310b 9c41ac00-3c6e-4a16-8b7c-5ae0589b776f c55ed2e1-cf45-44b3-ab86-c1e90e231bff 62d7cc34-7650-4e28-83bf-6e3460614f8a f50c63e0-90d6-4ab1-a2b3-dc6a4956f33a 810f0402-a65b-46c7-acee-eb0774c52dfd 8cbb96df-d351-4dda-9eb5-7a826db61bd7 eb3925c7-9163-462c-b4b7-ec1489d121ee 11d5be5a-8c5f-4c49-8070-cb507c185a08 b2292828-6fec-4576-a1d4-2b72f8abcbfa ee8abc65-8bb2-47b9-a2a0-e9189e8547d8 5e5ff786-5cb3-4d8b-a83b-e94fd3781c1e 418c492f-318b-42aa-9d25-2191b5beeaf1 cd314ae0-3cab-475c-905e-2d06743dcde7 b3839a66-6624-4b56-92eb-8f15b7a73b0d 57b3e2ce-1cbd-44be-9414-d5078e7e8fae c7c8e733-a006-4853-8651-2bfb6bd3447d 44ca13ec-d8a2-4978-b4be-3b79a7b69a43 29e13313-0058-4f8d-85c9-b7a0af242b14 917ac29b-51b5-43f0-a2c9-0f1b65ef72ab 6fc1a2a4-8def-4b1c-8b8c-e825b6d2ada8 60b97111-a95d-459b-9676-3deba8ead1c9 0e291d23-25da-4f7f-bc0c-8d521cee106b 5f402268-d4d7-4a08-8df1-6165b6ca294b 76f215cb-f473-4824-87f3-96c242494ee5 221d88af-0f2e-4ab4-b7d4-fc1ea7798bcf 79ebbfff-c4a4-4b79-926d-87c2e105b995 0f5628a1-9270-4d65-8965-b95393acacf0 c9712695-a2c7-40ca-a9d6-7c7601028a3b 7d7fdbc7-b3ce-4fd2-b3f4-52c09d999142 6fccd292-6c75-4670-8376-65db44ff8c5a ddf28af9-61a9-4b5d-805d-230a6ecf3e6b bc6bda48-574b-4309-8189-9b41faa547da f2d2d578-d5db-4d90-94f2-e3d354140b9f 675aec56-21ed-42a9-a885-13233eae7dd8 12a224da-92b2-4e5d-a595-3da501a171bc
System Info
| Item | Value |
|---|---|
| CPUs | AMD Ryzen 7 2700X Eight-Core Processor (16 x 3700) |
| GPU Status | 2d_canvas: enabled 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: enabled webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 63.93GB (33.03GB free) |
| Process Argv | |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368cf:30146710
pythonvspyt551cf:31249598
nativeloc1:31118317
dwcopilot:31158714
dwoutputs:31242946
copilot_t_ci:31333650
g012b348:31231168
pythonrdcb7:31268811
pythonpcpt1:31399616
6518g693:31302842
63221493:31336333
envsactivate1:31349248
editstats-enabled:31346256
cloudbuttont:31366566
aihoversummaries_t:31413033
todos-1:31405333
3efgi100_wstrepl:31403338
trigger-command-fix:31379601
auto_model_enabled:31385282
use-responses-api:31390341
6j29d282:31407606
3i15c187:31419923
terminalsuggestenabled:31421703
none:31426257
cp_cls_c_966_ss:31426491
chatvisible:31417128
expandedtokens:31418009
a9239246:31426643
c0683394:31426860
find_all_ref_in_bg_f:31420846
a2j7h173_hide_a_lot_of_models:31431740
478ah919:31426749
ge8j1254_inline_auto_hint_haiku:31426735
fa76a614:31426880
38bie571_auto:31429954
rename_disabled:31429650
nes-joint-1a:31431149
7ig2g208:31429686
anthropic_thinking_t:31427198
cp_jb_t_lixleitest:31428973
406hc587_ask_agent:31428392
copilot-nes-oct-trt:31432609
a3fda397_max_requests_40:31432795