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 e1d6b6c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(write-to-file): release what a late open() completed after an abort
A cancellation that lands while open() is pending runs the TaskAborted teardown
while the call is still in flight, so it can only release what existed at that
instant. open() then finished: it created the directories and the empty
placeholder and set isEditing + relPath on the provider. This stream's entry was
already gone by then, so nothing owned those artifacts any more - they stayed on
disk and on the session until a later write to the same path found a session that
task never opened.
The liveness bail now releases what the late open completed before returning, so
the placeholder, the created directories, and the editing session a cancelled
stream re-set are cleaned up by the code that observed the late completion.
0 commit comments