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
{{ message }}
Repository navigation
Executable bits are lost on mount(), also after a binary export() #2186
Executable bits don't survive mount(). A file mounted from a FileSystemTree is always mode 644, and the tree has no field for a mode. After chmod 755 inside the container, export(".", { format: "binary" }) and then mount() of that export gives the file back as 644.
Any script in package.json that runs the file directly then fails with jsh: permission denied. A snapshot of node_modules loses every .bin target this way, so the first npm run after mounting it fails.
Symlinks are fine: they survive both the JSON and the binary export.
./tool.js exits 126 with jsh: permission denied: ./tool.js.
chmod 755 tool.js (or fs.chmodSync from Node). Now ./tool.js runs.
const data = await wc.export(".", { format: "binary" }), then await wc.mount(data, { mountPoint: "copy" }).
copy/tool.js is mode 644 again, and ./copy/tool.js exits 126.
In the repro: npm install && npm run verify (exits 1 while the bug is there).
Expected behavior
The binary export keeps the mode, so the copy is 755. A FileSystemTree file can also say it is executable, for example { file: { contents, executable: true } } or a mode.
Parity with Local
I have run the project in my local machine and I could not reproduce the issue.
Activity
github-actions commentedon Nov 17, 2026
We noticed that you did not provide a StackBlitz or Bolt reproduction link. Please update the issue and add a link to a public project.