opencode
opencode copied to clipboard
opencode creates identical temp files everytime it runs
Description
I run opencode stats periodically to monitor my token and tool usage.
However, I found a new Library file .*-00000000.so is created under /tmp directory whenever I run opencode. The file is not removed after opencode is terminated.
Each file is sized ~4.1MB. These behaviours consumed 60+ GB just over a night.
OpenCode version
1.0.218
Steps to reproduce
- Run
watch opencode stats - Wait for a while
- run
ls -lah /tmp
Screenshot and/or share link
Operating System
Ubuntu 24.04
Terminal
Bash