vscode-copilot-release icon indicating copy to clipboard operation
vscode-copilot-release copied to clipboard

Agent Mode Prompts Disappear Without Response or Error in Copilot Chat (Ask/Edit Work Fine)

Open jared-alesian opened this issue 7 months ago • 14 comments

Copilot Chat Extension Version: 1.317.0 VS Code Version: 1.100.1 (user setup) Commit: 91fa95bccb027ece6a968589bb1d662fa9c8e170 Electron: 34.5.1 Node.js: 20.19.0 OS: Windows_NT x64 10.0.26100 OS Version: Windows 11 Home 24H2 26100.4061 Feature: Agent mode (Ask and Edit modes work) Selected model: All (e.g. GPT 4.1, Claude 3.7 Sonnet)

Steps to Reproduce:

  1. Open Copilot Chat panel in VS Code.
  2. Enter a prompt and select "Agent" mode.
  3. Submit the prompt.

Expected:

Prompt is processed and response is shown, as with Ask/Edit modes.

Actual:

Prompt is accepted, Agent mode selector appears, but then the prompt disappears with no feedback or response. No error is shown, and nothing appears in the logs. Ask and Edit modes work as expected.

Notes:

  • This occurs with all available models.
  • No indication if the prompt is sent to the LLM or if there is an internal error.
  • Logs show successful authentication and initialization, but no agent-specific errors or feedback.
  • This issue makes Agent mode unusable, as prompts are silently dropped with no user feedback or error.
  • Please advise on further troubleshooting or if additional diagnostics are needed.

jared-alesian avatar May 15 '25 14:05 jared-alesian

having updated VS Code to 1.100.2 the issue is still persisting

jared-alesian avatar May 15 '25 22:05 jared-alesian

Hi Jared,

Have you found a solution to this? I can't figure this problem out on my Windows 11 machine.

AbeFN avatar Jun 05 '25 17:06 AbeFN

my solution was to switch to my older machine that now runs ubuntu...

jared-alesian avatar Jun 07 '25 12:06 jared-alesian

also, just updated to the following specs

Version: 1.100.3 (user setup)
Commit: 258e40fedc6cb8edf399a463ce3a9d32e7e1f6f3
Date: 2025-06-02T13:30:54.273Z
Electron: 34.5.1
ElectronBuildId: 11369351
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100
GitHub Copilot: 1.330.1610
GitHub Copilot Chat: 0.27.3

jared-alesian avatar Jun 07 '25 12:06 jared-alesian

Here's some useful information that you could share with us to help fix this issue:

  • The current model(s) that you're experiencing this with
  • A request id (found in Output -> Copilot Chat)
  • any error logs from either the Window or Copilot Chat output channels

potentially a duplicate of #12599

Yoyokrazy avatar Jun 20 '25 19:06 Yoyokrazy

it's not particularly similar to #12599 , in my case no output is generated at all - the chat pane simply swallows the prompt and doesn't render any effect in particular.

This happens with all models (GPT4.0, GPT4.1, Sonnet 4, Sonnet 3.7, Sonnet 3.5, Gemini Pro 2.5).

here are my current versions

Version: 1.101.0 (user setup)
Commit: dfaf44141ea9deb3b4096f7cd6d24e00c147a4b1
Date: 2025-06-11T15:00:50.123Z
Electron: 35.5.1
ElectronBuildId: 11727614
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.26100
GitHub Copilot: 1.336.0
GitHub Copilot Chat: 0.28.1

GitHub CoPilot logs show no activity when using agent mode, but when using Ask mode (or Edit mode) log behavior manifests

2025-06-21 10:14:08.213 [info] Can't use the Electron fetcher in this environment.
2025-06-21 10:14:08.213 [info] Using the Node fetch fetcher.
2025-06-21 10:14:08.213 [info] [GitExtensionServiceImpl] Initializing Git extension service.
2025-06-21 10:14:08.213 [info] [GitExtensionServiceImpl] Successfully activated the vscode.git extension.
2025-06-21 10:14:08.213 [info] [GitExtensionServiceImpl] Enablement state of the vscode.git extension: true.
2025-06-21 10:14:08.213 [info] [GitExtensionServiceImpl] Successfully registered Git commit message provider.
2025-06-21 10:14:08.417 [info] Logged in as jared-alesian
2025-06-21 10:14:09.999 [info] Got Copilot token for jared-alesian
2025-06-21 10:14:10.005 [info] activationBlocker from 'languageModelAccess' took for 1804ms
2025-06-21 10:14:10.338 [info] copilot token chat_enabled: true, sku: monthly_subscriber_quota
2025-06-21 10:14:10.338 [info] GitHub.vscode-pull-request-github extension is not yet activated.
2025-06-21 10:14:16.499 [info] Registering default platform agent...
2025-06-21 10:14:16.499 [info] activationBlocker from 'conversationFeature' took for 2160ms
2025-06-21 10:14:10.511 [info] Fetched model metadata in 506ms b017006d-c59a-4cee-bb81-a89eae9a347d
2025-06-21 10:14:10.575 [info] BYOK: Copilot Chat known models list fetched successfully.
// using ask mode here
2025-06-21 10:15:40.719 [info] message 0 returned. finish reason: [stop]
2025-06-21 10:15:40.730 [info] request done: requestId: [378f2617-6c67-41c8-9e65-00c12fb03f41] model deployment ID: []
2025-06-21 10:15:41.680 [info] message 0 returned. finish reason: [stop]
2025-06-21 10:15:41.681 [info] request done: requestId: [1c2c3b14-5ad6-4571-922f-575bf1f7e5c8] model deployment ID: []
2025-06-21 10:15:43.359 [info] message 0 returned. finish reason: [stop]
2025-06-21 10:15:43.360 [info] request done: requestId: [559f8e88-7e62-4f0d-8974-c3d1c6cacff5] model deployment ID: []

Window output shows the following message after receiving an agent mode prompt

2025-06-21 10:20:46.921 [error] [Window] Cannot read properties of undefined (reading 'variableData'): TypeError: Cannot read properties of undefined (reading 'variableData')
    at vscode-file://vscode-app/c:/Users/jared/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2027:41452

jared-alesian avatar Jun 21 '25 16:06 jared-alesian

Thanks for the error. I'm pushing a change for that, but unfortunately that's an error while handling a different error and is not the real underlying issue.

roblourens avatar Jun 23 '25 05:06 roblourens

I am experiencing the same issue on Visual Studio Code on macOS. When I submit a prompt to a large language model in agent mode, the text vanishes and is neither processed nor recorded.

jgamblin avatar Jun 26 '25 23:06 jgamblin

Have to report the same issue on Debian 12. The funny thing here is that on my work laptop running Windows 11 with WSL and Debian 12 its working just fine, but i have to admit that i don't really know which part of VSCode is been run on Windows and which is run in WSL with such a setup. Dont know to much about VSCode internally.

4rs3n avatar Jul 29 '25 22:07 4rs3n

Please check for any errors you see in the Window output channel. Also, it may be fixed in Insiders.

roblourens avatar Jul 31 '25 00:07 roblourens

Ahh thanks. Im getting an error that the agent is currently disabled.

2025-08-09 01:17:59.822 [error] [Window] Error while handling chat request: Agent is currently disabled: Error: Agent is currently disabled at XSe.eb (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:2047:72206) at async vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:2047:68949

I checked my settings and it states that "chat.agent.enabled" is true.

4rs3n avatar Aug 08 '25 23:08 4rs3n

ok the insider build worked.

4rs3n avatar Aug 08 '25 23:08 4rs3n

Now running 1.103.2 and I'm getting response in agent mode again.

audunru avatar Aug 23 '25 06:08 audunru

Was having similar/same (*) issue inversion 1.372.0 and an extension restart solved it:

  • Disable the extension
  • Restart the extension (you'll see the button to restart once you disable the extension)
  • Enable the extension

(*) My problem was that I submitted my request and saw no response in the chat. Still, the agent was working in the background as I saw the files being modified, but I had no clue when it was done.

whoan avatar Oct 18 '25 07:10 whoan