feat: Add Windows WSL [Ubuntu] Agent Shell Support for Intellij -- Code and Generic Terminal/Bash Execution#12442
Open
GabeChurch wants to merge 5 commits into
Open
feat: Add Windows WSL [Ubuntu] Agent Shell Support for Intellij -- Code and Generic Terminal/Bash Execution#12442GabeChurch wants to merge 5 commits into
GabeChurch wants to merge 5 commits into
Conversation
… Subsystem For Linux (WSL) and add user facing test(s) supporting multiple Intellij version ranges
Contributor
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
Contributor
There was a problem hiding this comment.
2 issues found across 5 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
Author
I have read the CLA Document and I hereby sign the CLA |
…lization, re-include sample test.kt at test launch
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for Intellij on Windows Agents using Windows Subsystem For Linux (WSL) and add user facing test(s) supporting multiple Intellij version ranges
Description
The Problem
The current IntelliJ continue plugin fails to support agent code execution -- happening via the runTerminalCommand -- when opening a notebook in the Windows Subsystem for Linux (Ubuntu) filesystem. This prevents agents from doing almost anything useful when using IntelliJ on WSL. IntelliJ itself supports WSL based projects, and even changes the terminal to use Ubuntu instead of windows which is incredibly useful for engineers who preferer require multiple isolated environments, use separate WSL backends to manage dependencies, or even want a separate isolated development environment to run agents on. The current behavior for agents used in WSL notebooks is to default to powershell commands, which means agents cannot execute code in the same isolated environment as the user and code -- making them quite less useful.
The Solution
User Info
If you stumbled across this as an IntelliJ user, you don't need to set anything for this change to work for you. To debug any issues with the continue plugin on WSL with Intellij yourself I suggest launching like this from a windows command prompt -- this forces legacy "wsl$" instead of default "wsl.localhost" in the path which may resolve some bugs you could experience.
"C:\Program Files\JetBrains\IntelliJ IDEA 2026.2\bin\idea64.exe" \\wsl$\Ubuntu\home\<yourusername>\<YourIntellijProject>AI Code Review
@continue-reviewChecklist
Screen recording or screenshot
This example shows the new tests being used to run the new Ubuntu agent execution feature as well as the existing Powershell agent and each respectively running bash and powershell code depending on whether they are in standard windows or WSL Ubuntu.
Continue_Plugin_Ubuntu_WSL_Support_Tests.mp4
Tests
I created a new "Run Continue WSL" configuration/test, added for both CE and Ultimate distributions of IntelliJ, that allows any standard windows user to launch the existing manual-testing-sandbox testing Intellij sample project and select a WSL backend in addition to the standard test (which can be any WSL custom name in the "Run Continue WSL (use TCP).run.xml file -- defaults to "Ubuntu", the base/standard WSL distribution). This can be used as a future test to validate any WSL related functionality in Intellij.
Detailed Test Breakdown
I identified a slightly frustrating behavior with the current gradle.properties Intellij 2024.1, where it cannot directly launch notebooks using WSL backend(s) with files located in standard windows C path, which makes testing more painful. To solve for this I added a gradle.properties check that will automatically do this "optimal path" in 2025 and newer major versions (same physical test files used to launch). With the current 2024 major version test I solved for this by copying the test files to a WSL "tmp" location at test launch (before the actual launch happens). I also added and validated a "postLaunch/shutdown" hook that cleans these temp files no matter how shutdown is called. In this way nothing appears no different to users testing -- although it is recommended to them to setup the continue config.yaml file in standard windows before running the WSL test.
Dependencies
If you want to run this test you need to have a windows subsystem for linux installed and enabled + IntelliJ.
Suggested is to install Ubuntu from the Microsoft Store which is the default

Configuration [Only required for TESTING]
If you use something other than "Vanilla" Ubuntu in your Windows Subsystem for Linux, you can change the test to use it instead of the default.
The change is an environment variable matching your WSL distribution name.

If you are unsure you can find it in the file browser under "Linux"
Related
I have read the CLA Document and I hereby sign the CLA