opencode icon indicating copy to clipboard operation
opencode copied to clipboard

opencode creates identical temp files everytime it runs

Open khwong-c opened this issue 2 weeks ago • 3 comments

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

  1. Run watch opencode stats
  2. Wait for a while
  3. run ls -lah /tmp

Screenshot and/or share link

Image

Operating System

Ubuntu 24.04

Terminal

Bash

khwong-c avatar Dec 31 '25 12:12 khwong-c