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
V2 deduplication cleanup can delete unrelated files through a temporary-directory symlink #145
OpenCode V2 plugin coordinate alerts through a predictable directory in shared temporary storage. If that directory is a symlink, marker cleanup follows it and can delete files older than an hour in the target directory (if OpenCode process’s filesystem permissions allowed).
Reproduction (Linux)
Create a target directory A containing a disposable file B with a modification time older than one hour.
Assuming TMPDIR is /tmp.
In /tmp/opencode-notifier-<uid>, create a symlink to the target directory A.
Invoke the V2 delivery-claim function to run its cleanup pass.
The disposable file B is removed.
Expected behavior
Claim cleanup must not follow a directory symlink into unrelated storage. If claim storage cannot be trusted, alerts should still be delivered.
Activity