Skip to content

Intermittent ...\\Microsoft VS Code\\NUL access-denied dialog when Copilot Chat is triggered via voice-command workflow on Windows #4864

@Mark-Phillipson

Description

@Mark-Phillipson

Type: Bug

I am intermittently getting this error on Windows when sending voice commands via Bob that bring VS Code / Copilot Chat into focus:

There was an error while Opening file handle:
C:\Users<user>\AppData\Local\Programs\Microsoft VS Code\NUL
Failed to create file handle: Access is denied.
Please verify there are no Visual Studio Code processes still executing.

This looks related to:

Why I am filing this:
I understand there was already a fix for a Windows NUL null-sink issue in Copilot Chat, but I am still seeing a very similar error intermittently in a voice-command workflow.

My setup:

  • Windows
  • VS Code
  • GitHub Copilot Chat
  • A local assistant app ("Bob") that can trigger/focus VS Code and send voice-command-driven prompts

Important detail:
My local app is not constructing a ...\Microsoft VS Code\NUL path itself. On my side it is only launching VS Code / interacting with Copilot Chat. The NUL path appears in the VS Code error dialog.

Observed behavior:

  • The issue is intermittent
  • It appeared while sending voice commands through Bob
  • A full machine restart helped with some broader VS Code/Copilot UI oddities, but this NUL access-denied issue has still occurred intermittently
  • It seems related to VS Code / Copilot Chat activity rather than my app logic

Expected behavior:

  • No attempt to open or create a literal NUL path in the VS Code install directory
  • No access-denied dialog during Copilot Chat / voice-command workflows

Actual behavior:

  • VS Code shows an error dialog referencing:
    C:\Users<user>\AppData\Local\Programs\Microsoft VS Code\NUL

Notes:

  • I can provide screenshots
  • I can also provide exact VS Code and Copilot Chat versions if needed
  • If this should instead be tracked in microsoft/vscode again, please redirect me and I will repost there

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions