Skip to content

fix: devbox code Remote SSH fixes + nix-ld + docs#3

Merged
ethannortharc merged 6 commits intomainfrom
fix/devbox-code-remote-arg
Mar 10, 2026
Merged

fix: devbox code Remote SSH fixes + nix-ld + docs#3
ethannortharc merged 6 commits intomainfrom
fix/devbox-code-remote-arg

Conversation

@ethannortharc
Copy link
Copy Markdown
Owner

Summary

  • Fix VS Code --remote argument format (path as separate arg, not concatenated)
  • Rewrite Lima SSH Host line to match devbox host alias (was lima-devbox-<name>, needs devbox-<name>)
  • Enable nix-ld on NixOS for VS Code Server / Cursor compatibility
  • Auto-refresh overlay before opening editor to avoid stale file handles
  • Add IDE Integration section to README

Usage

devbox code                       # Open VS Code into the sandbox
devbox code --editor cursor       # Use Cursor instead
devbox code myapp                 # Open a specific sandbox
devbox code --path /workspace/src # Open a specific directory

Test plan

  • devbox code opens VS Code into a running sandbox without hostname errors
  • VS Code Server installs and runs on NixOS (nix-ld)
  • No stale file handle errors on open
  • SSH config written with correct Host devbox-<name> line
  • Works with Cursor (--editor cursor)

🤖 Generated with Claude Code

ethan and others added 6 commits March 10, 2026 15:14
…nto sandbox via Remote SSH' (#1) from feat/devbox-code into main

Reviewed-on: https://git.giomni.com/ethan/devbox/pulls/1
The path must be a separate argument, not concatenated with the host.
`code --remote ssh-remote+HOST /path` instead of `--remote=ssh-remote+HOST/path`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Lima outputs `Host lima-devbox-<name>` but VS Code connects to `devbox-<name>`.
The mismatch caused "Could not resolve hostname" errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
NixOS can't run dynamically linked executables out of the box.
programs.nix-ld provides the ld-linux shim so VS Code Remote SSH,
Cursor, and similar tools can download and run their server binaries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…handles

Host-side changes cause stale inodes in the overlay cache. Refreshing
before launching VS Code/Cursor ensures a clean view of the workspace.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Documents VS Code, Cursor, and Windsurf support via Remote SSH.
Adds devbox code to the commands table.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ethannortharc ethannortharc merged commit 4c5470a into main Mar 10, 2026
ethannortharc pushed a commit that referenced this pull request Mar 10, 2026
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