Add Dev Container terminal sessions#10808
Conversation
Add feature-flagged Dev Container entrypoints from the repository open prompt, new-session menu, and /dev-container command. Reuse the local TTY shell starter path so Warp can bring up the selected devcontainer config and start an in-container bash session with the usual prompt chip and session metadata. Co-Authored-By: Warp <agent@warp.dev>
|
This PR is not linked to an issue that is marked with Issue-state enforcement details:
Readiness check:
To continue, link this PR to a same-repo issue such as Powered by Oz |
There was a problem hiding this comment.
This PR is not linked to an issue that is marked with ready-to-implement.
Issue-state enforcement details:
-
Associated same-repo issues checked: #4460
-
Required readiness label:
ready-to-implement
Readiness check:
- #4460: missing
ready-to-implement; readiness labels present: none
To continue, link this PR to a same-repo issue such as Closes #123 in the PR description, and make sure that issue has ready-to-implement.
Powered by Oz
…arp-for-devcontainers # Conflicts: # app/src/workspace/view.rs
Description
Adds feature-flagged Dev Container terminal sessions.
This lets users open a repository with a Dev Container config and launch Warp inside that
container from:
/dev-containerslash commandThe implementation reuses Warp's local TTY shell starter path. Warp resolves the
devcontainerCLI from the user's shell PATH, runs
devcontainer up, then enters the selected config withdevcontainer execand starts the normal Warp bash bootstrap.Dev Container sessions also show a Docker-styled prompt chip and sidebar/session indicators.
Linked Issue
Closes #4460
Related:
Support container workflows #6129
Add devcontainers feature so it can easily be included in remote dev envs #6164
Add a devcontainer for Warp repository development #9413
more visual cue for ssh/docker/native tab #7709
The linked issue is labeled
ready-to-specorready-to-implement.Where appropriate, screenshots or a short video of the implementation are included below
(especially for user-visible or UI changes).
Testing
git diff --checkcargo fmt --checkcargo clippy -p warp --lib --tests -- -D warningscargo test -p warp dev_container --libcargo test -p warp test_open_repository_with_devcontainer_shows_open_prompt_toast --libManual:
Built and opened
WarpLocal.appOpened a repository with a Dev Container config
Verified the Dev Container prompt appears
Verified
Open in Dev Containerlaunches an in-container terminal sessionVerified the left sidebar uses the Docker icon for the Dev Container session
I have manually tested my changes locally with
./script/runScreenshots / Videos
warp-devcontainer.mp4
Agent Mode
Changelog Entries for Stable
CHANGELOG-NEW-FEATURE: Added Dev Container terminal sessions that let users open repositories with
Dev Container configs directly in Warp.