Files
hyperframes/packages
Ular Kimsanov ac33c1f2bc fix(media-use): write local generator output into private per-run folders (#8030)
* fix(media-use): write local generator output into private per-run folders

The codex image provider ran `codex exec` with the shared temp folder as its
project root and accepted any non-empty file at a guessable name there
(media-use-codex-<pid>-<ms>.png). On a host where the temp folder is shared
(/tmp on Linux), another account could plant AGENTS.md (and a .git marker)
for Codex to follow, or create the output file first and have it taken as
the generated image.

Codex now works in a fresh mode-0700 folder under the per-user HyperFrames
cache, with project_root_markers=[] so current Codex reads instructions only
from that folder; the folder is removed once the image is copied out. The
mflux, ltx and local Kokoro providers, which used the same guessable names,
now write into a fresh mkdtemp folder too.

* fix(media-use): remove a local generator's private output folder after resolve

Once resolve has copied a generated file into the project, the private folder
it was written in is no longer needed. Only folders privateOutputPath made are
removed; files a provider does not own, such as a bundled SFX library sound,
are left alone.

* fix(media-use): run Codex in the private temp folder too, and drop empty ones

Codex now works in the same mkdtemp folder under the system temp folder as
the other generators, with project_root_markers=[]. Every Codex release with
the image tool honours that setting for AGENTS.md (the image tool landed
months after it), so a per-user cache folder is not needed, and the cache
path no longer has to be built outside hyperframesCacheDir. A provider that
returns nothing now removes the folder it made. The helper test no longer
writes a fixed-name file in the temp folder.
2026-11-17 19:25:07 +00:00
..
2026-11-17 18:25:31 +00:00
2026-11-17 18:25:31 +00:00
2026-11-17 18:25:31 +00:00
2026-11-17 18:25:31 +00:00
2026-11-17 18:25:31 +00:00
2026-11-17 18:25:31 +00:00
2026-11-17 18:25:31 +00:00
2026-11-17 18:25:31 +00:00
2026-11-17 18:25:31 +00:00