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
Commit 08e774f
Browse filesBrowse the repository at this point in the historyBrowse files
🐛 fix: close File containment, cleanup, and disclosure gaps
Eight corrections from review, none changing the component's API.
The write form now resolves its destination after its children finish. A
child can replace a directory with a symlink out of the workspace, and
resolving first validated a destination the write no longer used.
Temporary-file removal is registered before the temporary is written.
`writeTextFile` is where an interruption is likeliest to land, and a
cleanup on the far side of it did not cover the one failure it exists
for.
Containment diagnostics no longer carry the resolved workspace path, the
destination a symlink pointed at, or a rejected absolute path — §1.2
keeps absolute paths out of diagnostics, and naming where an escape led
performs the disclosure the refusal prevents.
Content is written exactly as `useContent()` returns it, per #190's
exact-content contract; `framed()` is gone.
Only a complete `..` segment escapes, so `..notes.md` is an ordinary
file rather than a rejected traversal.
The replay contract distinguishes a completed-root replay, which
restores without running `<File>`, from a partial replay that reaches it
and repeats the read or write.
`errorCode()` narrows instead of asserting `NodeJS.ErrnoException`.
Tier FL grows to 22 cases; FL17–FL20 each fail against the code they
replace.
0 commit comments