Skip to content

opencode creates identical temp files everytime it runs #6523

@khwong-c

Description

@khwong-c

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions