Written prompt lost when switching Chat mode.

Open
#323,870 2 comments 0 reactions 1 assignee View on GitHub

@justschen is already working on this.

Since Jul 1, 2026.

Assessment

This issue has not been assessed yet.

Description

Type: Bug

  1. Working on a Copilot chat, just finished a previous plan or something.

  2. Current Copilot permission must be Agent mode and Autopilot approvals.

  3. Write something in your chat box.

  4. Switch Chat mode to Plan.

  5. Current input lost. And it started something else.

VS Code version: Code 1.126.0 (Universal) (7e7950df89d055b5a378379db9ee14290772148a, 2026-06-23T01:46:13Z)
OS version: Darwin arm64 24.6.0
Modes:
Remote OS version: Linux x64 6.8.0-117-generic
Remote OS version: Linux x64 6.8.0-117-generic

System Info
Item Value
CPUs Apple M4 (10 x 2400)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x106b [Google Inc. (Apple)], DEVICE=0x0000 [ANGLE (Apple, ANGLE Metal Renderer: Apple M4, Version 15.7.8 (Build 24G806))], DRIVER_VENDOR=Apple, DRIVER_VERSION=15.7.8 ACTIVE
Machine model name: Mac
Machine model version: 16.10
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: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 4, 4, 4
Memory (System) 16.00GB (0.07GB free)
Process Argv --crash-reporter-id 2a37a67f-70d4-4891-bea1-cc9f0809c332
Screen Reader no
VM 0%
Item Value
Remote SSH: local
OS Linux x64 6.8.0-117-generic
CPUs AMD EPYC 7302 16-Core Processor (64 x 1499)
Memory (System) 125.74GB (92.79GB free)
VM 0%
Item Value
Remote SSH: local
OS Linux x64 6.8.0-117-generic
CPUs AMD EPYC 7302 16-Core Processor (64 x 1499)
Memory (System) 125.74GB (92.79GB free)
VM 0%
Extensions (48)
Name Identifier Author Version
Bookmarks alefragnani.bookmarks alefragnani 14.1.1
Nomo Dark Icon Theme be5invis.vscode-icontheme-nomo-dark be5invis 1.3.9
node-snippets chris-noring.node-snippets chris-noring 1.4.0
MacOS Modern Theme davidbwaters.macos-modern-theme davidbwaters 2.3.19
Pine Script Syntax Highlighter ex-codes.pine-script-syntax-highlighter ex-codes 1.0.5
Typescript React code snippets infeng.vscode-react-typescript infeng 1.3.1
👉 Emoji File Icons 👈 mightbesimon.emoji-icons mightbesimon 1.6.1
DotENV mikestead.dotenv mikestead 1.0.1
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
[Deprecated] Debugger for Chrome msjsdiag.debugger-for-chrome msjsdiag 4.13.0
vscode-pdf tomoki1207.pdf tomoki1207 1.2.2
Node Essentials afractal.node-essentials afractal 1.1.0
Claude Code for VS Code anthropic.claude-code Anthropic 2.1.197
Nomo Dark Icon Theme be5invis.vscode-icontheme-nomo-dark be5invis 1.3.9
Path Intellisense christian-kohler.path-intellisense christian-kohler 2.10.0
JS CodeFormer: Javascript Refactoring & Code Automation cmstead.js-codeformer cmstead 2.6.1
ESLint dbaeumer.vscode-eslint dbaeumer 3.0.24
EditorConfig editorconfig.editorconfig EditorConfig 0.18.2
GitHub Actions github.vscode-github-actions github 0.32.1
GitHub Pull Requests github.vscode-pull-request-github GitHub 0.152.0
Go golang.go golang 0.54.0
GitLess maattdd.gitless maattdd 11.7.2
Rainbow CSV mechatroner.rainbow-csv mechatroner 3.24.1
DotENV mikestead.dotenv mikestead 1.0.1
Kubernetes ms-kubernetes-tools.vscode-kubernetes-tools ms-kubernetes-tools 1.4.0
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.2.1
Python Environments ms-python.vscode-python-envs ms-python 1.36.0
Jupyter ms-toolsai.jupyter ms-toolsai 2025.9.1
Jupyter Keymap ms-toolsai.jupyter-keymap ms-toolsai 1.1.2
Jupyter Notebook Renderers ms-toolsai.jupyter-renderers ms-toolsai 1.3.0
Jupyter Cell Tags ms-toolsai.vscode-jupyter-cell-tags ms-toolsai 0.1.9
Jupyter Slide Show ms-toolsai.vscode-jupyter-slideshow ms-toolsai 0.1.6
Chat Customizations Evaluations ms-vscode.vscode-chat-customizations-evaluations ms-vscode 1.0.8
Live Share ms-vsliveshare.vsliveshare ms-vsliveshare 1.1.122
Codex – OpenAI’s coding agent openai.chatgpt openai 26.623.70822
Jest orta.vscode-jest Orta 6.4.4
SQLite Viewer qwtel.sqlite-viewer qwtel 25.12.2
YAML redhat.vscode-yaml redhat 1.23.0
Preview searking.preview-vscode searKing 2.3.12
Chrome DevTools MCP Relay vijaynirmal.chrome-devtools-mcp-relay VijayNirmal 1.0.0
Playwright MCP Relay vijaynirmal.playwright-mcp-relay VijayNirmal 1.0.0
DeepSeek V4 for Copilot Chat vizards.deepseek-v4-for-copilot Vizards 0.6.2
Quokka.js wallabyjs.quokka-vscode WallabyJs 1.0.763
Import Cost wix.vscode-import-cost wix 3.3.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
6abeh943:31336334
envsactivate1:31538736
gh487529:31521844
cloudbuttont:31379625
3efgi100_wstrepl:31403338
839jf696:31457053
ec5jj548:31422691
cp_cls_t_966_ss:31526232
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31490510
38bie571_auto:31478678
cp_cls_c_1081:31454833
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
c9b86496:31447327
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
h08i8180_copy:31475368
ec1eg703:31520046
ddid_t:31478206
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_t_632:31537244
b1ei0813:31506238
56dj4588:31512888
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
31fi7170_t:31522396
jh5f2457_c:31540921
hgf2d445:31529595
41836166:31537719
prpt_ctrl:31518467
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31533504
jf4hg949:31526829
nes-curr-leftover-1500:31538366
h561g132:31533256
sessions_5:31532894
h7dd7680:31541765
ihg5j128:31534457
7g2b5551:31542111

Dominant language
TypeScript
Stars
193k
Forks
42.9k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode

All issues in microsoft/vscode

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.