Repository navigation
Conversation
Use the resolved container workspace folder as the default for successful up results when workspaceFolder is omitted. Preserve explicit folder, Git subpath, and CLI override precedence. This makes remoteWorkspaceFolder useful to scripts alongside the resolved containerId and remoteUser. Cover default/custom mount folders and precedence with unit tests and Docker JSON/openvscode E2E assertions. CLI lint, race tests, and both focused E2E cases pass. Co-authored-by: Codex <noreply@openai.com>
✅ Deploy Preview for images-devsy-sh canceled.
|
✅ Deploy Preview for devsydev canceled.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
All contributors have signed the CLA. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The JSON result now reports the resolved workspace folder when no workdir is supplied, without changing SSH or tunnel behavior. No material merge risk is evident. Security Architecture Review
Pre-merge checks |
|
|
I have read the CLA Document and I hereby sign the CLA |
Fill an empty remoteWorkspaceFolder from the substitution context only while emitting the success result. Restore the shared workdir resolver default so SSH configuration and tunnels keep their previous behavior. Verify JSON output and unchanged SSH workdir for default, custom and literal mount paths, and preserve explicit-folder/subpath/CLI override precedence. Cover absent result or substitution context. CLI lint, race tests and two focused Docker E2E specs pass. Co-authored-by: Codex <noreply@openai.com>
|
Tick the box to add this pull request to the merge queue (same as
|
I’m integrating Devsy with an external tool that starts a workspace and then connects over SSH to run commands in the project directory. I want to obtain the container-side workspace folder from the successful
workspace up --result-format jsonresult, alongside the container ID and remote user.Currently,
remoteWorkspaceFoldercan be empty whenworkspaceFolderis omitted, even though Devsy has already resolved the folder. The integration must then discover the path separately or reproduce Devsy’s default-path logic.Return the already-resolved folder so integrations can use Devsy’s result directly. This fits the existing success output:
containerIdidentifies the actual container,remoteUseris the resolved user, andworkspace buildalready reports the resolved workspace folder.When emitting the success JSON, use
SubstitutionContext.ContainerWorkspaceFolderonly if the existing workdir is empty. Preserve explicitworkspaceFolder, Git subpath, and CLI override results. Keep the shared resolver and the workdir passed to SSH configuration and tunnels unchanged.This intentionally changes the previously accepted empty-folder behavior when the folder is unspecified.
Validation:
cmd/workspace/upandpkg/devcontainer/config.Summary by CodeRabbit