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
Huge number of mystery files in a system folder? #5807
I just noticed that on my system, this folder: /private/var/folders/21/jfcl6xvd31547_0brmr5hgx80000gn/T/ contains 52,000+ subdirectories with names similar to opencode-test-22nlhdyc9rj.
It seems like opencode is generating several thousand of these directories every day.
What are these directories? Why is opencode generating so many of them, and why aren't they collecting instead of being cleaned up?
OpenCode version
1.0.168
Steps to reproduce
Look in directories following a similar naming scheme to the one described to find these opencode-test-* directories.
The core issue appears to be that OpenCode generates temporary directories and files that are not properly cleaned up, accumulating over time and consuming significant disk space. Your observation about 52,000+ opencode-test-* directories aligns with the broader pattern of temp file accumulation reported in these other issues.
Feel free to ignore if none of these address your specific case.
@rekram1-node That could definitely be where they're coming from, but why are there so many and why isn't something cleaning them up? Generating 52,000+ files in a handful of days and just leaving them laying around seems like it's a bit much.
idk ill aee if i have the problem cant speak to ur dev environment or what u do but im fairly confient this isnt an issue w opencode maybe its a local dev issue but shouldnt be a prod one
Activity
github-actions commentedon Dec 19, 2025
This issue might be a duplicate of existing issues. Please check:
/private/tmp/temp directory issues)The core issue appears to be that OpenCode generates temporary directories and files that are not properly cleaned up, accumulating over time and consuming significant disk space. Your observation about 52,000+
opencode-test-*directories aligns with the broader pattern of temp file accumulation reported in these other issues.Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Dec 19, 2025
isnt this just the tests in opencode repo? arent u running tests or somethjng
ariane-emory commentedon Dec 19, 2025
@rekram1-node That could definitely be where they're coming from, but why are there so many and why isn't something cleaning them up? Generating 52,000+ files in a handful of days and just leaving them laying around seems like it's a bit much.
rekram1-node commentedon Dec 19, 2025
idk ill aee if i have the problem cant speak to ur dev environment or what u do but im fairly confient this isnt an issue w opencode maybe its a local dev issue but shouldnt be a prod one
rekram1-node commentedon Dec 19, 2025
Yeah it's just opencode tests, ig somehting is't being cleaned up
rekram1-node commentedon Dec 19, 2025
think this is fix:
dae0168