Skip to content

Copilot fails to create files in a workspace path that contains 8.3 names #278527

@waldekmastykarz

Description

@waldekmastykarz
  • Copilot Chat Extension Version: 0.33.2
  • VS Code Version: 1.106.1
  • OS Version: Windows 11
  • Feature (e.g. agent/edit/ask mode): agent
  • Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): gpt-4.1
  • Logs: available on demand, ping me on Teams/mail @ MSFT

Steps to Reproduce:

  1. Get a path with a segment longer than 8 chars
  2. Shorten the long segment to 8.3 convention, eg. somelongsegment > somelo~1
  3. Open the path in VSCode: code c:\...
  4. Configure GHCP to agent mode with gpt-4.1
  5. Use a prompt similar to the following:
Create a simple web chat application using Node.js for the backend and any web frontend technology. The app should allow users to send messages and receive responses from a large language model (LLM). The chat interface should display a conversation history and allow users to type and send messages. Use a publicly available LLM API for generating responses.

create_file tool calling fails with:

ERROR while calling tool: Path appears to use short filename format (8.3 names): c:\\SOMELO~1\\HAjWPM\\server.js. Please use the full path.\nPlease check your input and try again.

Same issue occurs in the list_dir tool:

ERROR while calling tool: Directory c:\\SOMELO~1\\HAjWPM is outside of the workspace and can't be read\nPlease check your input and try again.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugchat

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions