Skip to content

fix(workspace): add terminal.integrated.defaultProfile.linux override to devcontainer.json - #207

Merged
gerchowl merged 3 commits into
feature/70-remote-devc-orchestrationfrom
bugfix/206-cursor-agent-forkpty-terminal-override
Feb 26, 2026
Merged

gerchowl merged 3 commits into
feature/70-remote-devc-orchestrationfrom
bugfix/206-cursor-agent-forkpty-terminal-override

Conversation

@gerchowl

Copy link
Copy Markdown
Contributor

Description

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 adds a "terminal.integrated.defaultProfile.linux": "bash" setting to the devcontainer.json template so the container always overrides the user's host-side preference.

Type of Change

  • fix -- Bug fix

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • Add "terminal.integrated.defaultProfile.linux": "bash" to assets/workspace/.devcontainer/devcontainer.json settings
  • Add BATS test verifying the setting is present in the template
  • Update CHANGELOG.md

Changelog Entry

Fixed

  • Cursor Agent shell fails with forkpty(3) when host sets zsh as default terminal profile (#206)
    • Add terminal.integrated.defaultProfile.linux: "bash" to devcontainer.json template settings
    • Prevents user's host-side shell preference from leaking into the container

Testing

  • Tests pass locally (npx bats tests/bats/init-workspace.bats)
  • Manual testing performed (describe below)

Manual Testing Details

  • Verified the devcontainer.json template is valid JSON after the change
  • Confirmed the new BATS test fails before the fix (RED) and passes after (GREEN)

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Additional Notes

The container image ships bash but not zsh. Users with "terminal.integrated.defaultProfile.linux": "zsh" in their global Cursor settings hit this silently. The devcontainer.json customizations.vscode.settings override ensures the container always uses bash regardless of the host-side preference.

Refs: #206

@gerchowl
gerchowl requested a review from c-vigo as a code owner February 26, 2026 11:20
@gerchowl
gerchowl changed the base branch from dev to feature/70-remote-devc-orchestration February 26, 2026 11:43
@gerchowl gerchowl self-assigned this Feb 26, 2026
@gerchowl
gerchowl merged commit 835ed30 into feature/70-remote-devc-orchestration Feb 26, 2026
1 check passed
@gerchowl
gerchowl deleted the bugfix/206-cursor-agent-forkpty-terminal-override branch February 26, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant