Skip to content

Agent writes tmp files to /tmp instead of /tmp/opencode #44644

Closed as not planned

Description

@ptandler

Description

@rekram1-node told me here #28173 (comment) that opencode instructs agents to always use /tmp/opencode. It blocks the workflow if I need to give permission to access /tmp.

Plugins

only default internal ones

OpenCode version

1.18.18

Steps to reproduce

Happens from time to time, no idea how to reproduce...

Screenshot and/or share link

Image

Operating System

Kubuntu 22.04.5

Terminal

kitty + herdr

Activity

  1. ptandler commented on Aug 24, 2026

    @ptandler
    Author

    happened again today

  2. ptandler commented on Aug 25, 2026

    @ptandler
    Author

    it's really rather random: sometimes it takes /tmp/opencode as it should, but at leaset 2, 3 times per day also /tmp directly

  3. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions