Refs: #334250, #335008, #335247, #335253, #335255, #335337
Complexity: 5
Authors: Sandeep Somavarapu (@sandy081)
Create Issue
Set up
- Open the Agents Window and start a workspace-less Quick Chat using the Codex Agent Host harness.
- Use Interactive mode with Default Permissions.
- Have at least two local project folders available.
Convert a Codex Quick Chat into a workspace session
- Start with a useful request so the workspace-less Codex chat has conversation history. For example:
Add a short welcome paragraph to the README in my vscode-tools project.
- Verify Codex asks for the workspace and isolation choices using the structured question UI.
- Select the target workspace and choose whether the work should use isolation.
- Approve the workspace change when prompted.
- Verify the same chat and native Codex thread become workspace-backed without losing the title, history, current request, selected model, or permission mode.
- Verify Codex continues the original request after conversion and can inspect and modify files in the selected workspace.
Applied workspace and isolation
- Repeat the conversion with isolation disabled and verify the session uses the selected project folder.
- Repeat with isolation enabled and verify the session uses the created worktree rather than the original project folder.
- Verify the UI and session metadata show the workspace that Codex actually applied, without temporarily reverting to the scratch directory or another folder.
- Verify scratch ownership is released only after Codex confirms that the workspace update was applied.
Failure, cancellation, and unsupported states
- Start another workspace-less Codex chat and cancel the workspace/isolation question or deny the workspace change.
- Verify the chat remains workspace-less and usable, with its original history and permissions intact.
- Try conversion while the Codex chat is busy, resuming, or otherwise not eligible.
- Verify the conversion is rejected clearly without changing the working directory or losing the conversation.
- If available, try a multi-root or unsupported target and verify it fails explicitly rather than reporting a successful conversion.
Switching, reload, and exploratory testing
- Switch away from a converted Codex session and return, then reload the Agents Window.
- Verify the selected workspace, isolation/worktree, title, history, permission mode, and model remain correct.
- Try conversion before and after the Quick Chat has produced files, attachments, or tool results.
- Exploratorily test different local projects, repeated conversion attempts, timeouts, and cancellation during the workspace update.
- Verify ordinary Codex workspace sessions and Codex Quick Chats that are never converted continue to behave normally.
Refs: #334250, #335008, #335247, #335253, #335255, #335337
Complexity: 5
Authors: Sandeep Somavarapu (@sandy081)
Create Issue
Set up
Convert a Codex Quick Chat into a workspace session
Add a short welcome paragraph to the README in my vscode-tools project.Applied workspace and isolation
Failure, cancellation, and unsupported states
Switching, reload, and exploratory testing