Skip to content

Conversation

@uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Jan 23, 2026

Description

When on a windows machine but cn runs inside WSL, terminal commands should also run inside WSL and not using windows powershell.

closes #9736
closes #9731

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-review

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screen recording or screenshot

[ When applicable, please include a short screen recording or screenshot - this makes it much easier for us as contributors to review and understand your changes. See this PR as a good example. ]

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Continue Tasks: ▶️ 2 queued — View all


Summary by cubic

Terminal commands now run inside WSL when the CLI is used from WSL on Windows. This avoids PowerShell and ensures commands run in the correct Linux environment.

  • New Features
    • Detect WSL via WSL_DISTRO_NAME and /proc/version.
    • Use bash as a login shell in WSL instead of PowerShell.
    • Added tests for WSL detection and non-Linux behavior.

Written for commit a9ae420. Summary will update on new commits.

@uinstinct uinstinct requested a review from a team as a code owner January 23, 2026 06:30
@uinstinct uinstinct requested review from Patrick-Erichsen and removed request for a team January 23, 2026 06:30
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jan 23, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Jan 23, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 23, 2026
@RomneyDa RomneyDa merged commit 62235c1 into continuedev:main Jan 26, 2026
58 of 59 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Jan 26, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2026
@sestinj
Copy link
Contributor

sestinj commented Jan 26, 2026

🎉 This PR is included in version 1.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@uinstinct uinstinct deleted the cli-terminal-wsl branch January 26, 2026 15:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm This PR has been approved by a maintainer released size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

CLI: runTerminalCommand has no remote/WSL detection Terminal output not captured when Windows VS Code connects to WSL (follow-up to #9679)

3 participants