microsoft / microsoft/vscode

Codex Agent Host fails in workspaces using only an extension-registered filesystem

Open
#335,034 0 comments 0 reactions 1 assignee Claimed by @DonJayamanne View on GitHub
stale triage-needed
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

### Description

Our extension registers a custom filesystem provider. When a VS Code workspace contains only resources from this extension-contributed filesystem, Codex Agent Host fails to start a turn with:

`Error: (CodexTurnError) Invalid request: AbsolutePathBuf deserialized without a base path`

The regular Codex extension handles the same workspace successfully.

**Steps to Reproduce**

- Create a new VS Code workspace.
- Add a file from an extension-registered filesystem provider.
- Ensure the workspace contains only resources from that filesystem.
- Enable: `"chat.editor.codex.preferAgentHost": true`
- Start a Codex Agent Host session and send Hello.
- Start a session using the regular Codex extension and send the same message.

**Actual Result**

Codex Agent Host fails with:
`Error: (CodexTurnError) Invalid request: AbsolutePathBuf deserialized without a base path`

The regular Codex extension starts and processes the request successfully.

**Expected Result**

Codex Agent Host should support workspaces backed by extension-registered filesystem providers, or gracefully handle non-native workspace URIs without passing an invalid or missing absolute path to Codex.

### Issue Details

Item|Value
---|---
Issue Category|Bug
Target|Visual Studio Code - Insiders
VS Code Version|Code - Insiders 1.137.0-insider (773da685a20213ce5755a80f523101669b145702, 2026-09-07T22:35:28Z)
OS Version|Windows_NT x64 10.0.26200

### Additional Issue Data

[issue-data.md](https://github.com/user-attachments/files/31952108/issue-data.md)

### Attachments

![screenshot-1.png](https://github.com/user-attachments/assets/fe2820e3-5f81-467b-8dc7-8218e26773b9)

![screenshot-2.png](https://github.com/user-attachments/assets/dc7f5587-d133-42d6-a43d-70658c75ede8)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.