Skip to content

fix(server): allow file read/write for absolute paths outside workspace - #186

Merged
jeonghun-jj-lee merged 1 commit into
local/amicodefrom
fix/preview-absolute-paths
Aug 11, 2026
Merged

fix(server): allow file read/write for absolute paths outside workspace#186
jeonghun-jj-lee merged 1 commit into
local/amicodefrom
fix/preview-absolute-paths

Conversation

@jeonghun-jj-lee

Copy link
Copy Markdown
Contributor

The Preview tab needs to read and save files that live outside the project directory (e.g. files in ~/.julia/dev/Altissimo that the session edited). The traversal guard now only blocks relative-path escapes; absolute paths are served directly from disk via fs/promises.

Without this, sdk().client.file.read({ path }) fails with "Path escapes the location" for any absolute path outside the workspace root — meaning the Preview tab can't render files it touched in other directories.

The Preview tab's raw editor needs to read and save files that live outside
the project directory (e.g. files in ~/.julia/dev/Altissimo that the session
edited). The traversal guard now only blocks relative-path escapes; absolute
paths are served directly from disk via fs/promises.
@jeonghun-jj-lee
jeonghun-jj-lee merged commit 5ecbf03 into local/amicode Aug 11, 2026
1 of 4 checks passed
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