You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Cursor Agent shell fails with forkpty(3) in devcontainer — missing terminal.integrated.defaultProfile.linux override #206
When a user's Cursor/VS Code settings configure terminal.integrated.defaultProfile.linux to a shell not present in the container image (e.g. zsh), the Agent chat shell fails with forkpty(3) failed and the extension host times out. This is because init-workspace.sh does not set a terminal.integrated.defaultProfile.linux override in the generated devcontainer.json, so the user's host-side preference leaks into the container.
The container image ships bash but not zsh. Users with "terminal.integrated.defaultProfile.linux": "zsh" in their global settings hit this silently.
Steps to Reproduce
Set "terminal.integrated.defaultProfile.linux": "zsh" in Cursor user settings (common for macOS users)
Open any project using the devcontainer image (ghcr.io/vig-os/devcontainer:dev)
Open Agent chat and run any shell command (e.g. pwd)
Expected Behavior
Agent shell executes commands and displays output.
Actual Behavior
The terminal process failed to launch: A native exception occurred during launch (forkpty(3) failed.)
The agent execution provider did not respond within 30 seconds.
Regular terminal may also fail or fall back silently
agent CLI inside the container works (it spawns bash directly)
init-workspace.sh — add "terminal.integrated.defaultProfile.linux": "bash" to the generated devcontainer.json settings, so the container always overrides the user's host shell preference.
Container image (optional) — install zsh so users with that preference don't break. Adds ~2MB.
Activity
test: add failing test for terminal.integrated.defaultProfile.linux i…
fix(workspace): add terminal.integrated.defaultProfile.linux override…
docs: update CHANGELOG for terminal profile override fix
fix(workspace): add terminal.integrated.defaultProfile.linux override…
feat: set default terminal profile to bash in devcontainer.json