You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 Fix symlink preservation when editing files (#464)
When editing a file through a symlink, both `LocalRuntime` and
`SSHRuntime` were replacing the symlink with a regular file instead of
writing through it.
## Changes
**SSHRuntime**: Changed from `mv temp target` to `cat temp > target &&
rm temp` which writes through symlinks naturally.
**LocalRuntime**: Added `fs.realpath()` resolution to write to the
actual target file instead of replacing the symlink.
## Testing
Added integration test verifying symlinks are preserved when editing
files through them. All 90 runtime integration tests pass.
_Generated with `cmux`_
0 commit comments