Skip to content

Permission denied, open '/tmp/message.json' fatal when using multiple MacOS user accounts #359

Closed

Description

@roman-causalens

Reproduction steps:

  • Run opencode on 1 MacOS account and send a message
  • Switch to a different MacOS account
  • Run opencode again
  • See error 400 when sending a message, logs below

/tmp/message.json is owned by the other user account, so opencode can't read/write it.

❯ opencode run hello --print-logs
INFO  2025-06-24T12:55:15 +21ms service=default version=0.1.126 args=run,hello,--print-logs opencode
INFO  2025-06-24T12:55:15 +0ms service=app cwd=/Users/ark/work/redacted creating
INFO  2025-06-24T12:55:15 +1ms service=app git=/Users/ark/work/redacted git
INFO  2025-06-24T12:55:15 +4ms service=app name=share registering service
INFO  2025-06-24T12:55:15 +0ms service=bus type=storage.write subscribing
INFO  2025-06-24T12:55:15 +0ms service=app name=bus registering service
INFO  2025-06-24T12:55:15 +0ms service=session id=ses_85dfe35ffffeXPf2Nt1UXa8j1R version=0.1.126 title=New Session - 2025-06-24T12:55:15.712Z time=[object Object] created
INFO  2025-06-24T12:55:15 +0ms service=app name=session registering service
INFO  2025-06-24T12:55:15 +0ms service=app name=storage registering service
INFO  2025-06-24T12:55:15 +0ms service=storage path=/Users/ark/.local/share/opencode/project/Users-ark-work-redacted/storage init
INFO  2025-06-24T12:55:15 +1ms service=bus type=storage.write publishing
INFO  2025-06-24T12:55:15 +0ms service=app name=config registering service
INFO  2025-06-24T12:55:15 +1ms service=config loaded
INFO  2025-06-24T12:55:15 +0ms service=bus type=session.updated publishing

█▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀
█░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀
▀▀▀▀ █▀▀▀ ▀▀▀ ▀  ▀ ▀▀▀ ▀▀▀▀ ▀▀▀  ▀▀▀

>  hello

INFO  2025-06-24T12:55:15 +0ms service=app name=provider registering service
INFO  2025-06-24T12:55:15 +1ms service=models.dev refreshing
INFO  2025-06-24T12:55:15 +1ms service=provider init
INFO  2025-06-24T12:55:15 +0ms service=provider providerID=openai found
INFO  2025-06-24T12:55:15 +0ms service=provider providerID=anthropic found
INFO  2025-06-24T12:55:15 +0ms service=provider providerID=openrouter found
@  openai/codex-mini-latest

INFO  2025-06-24T12:55:15 +1ms service=bus type=message.part.updated subscribing
INFO  2025-06-24T12:55:15 +0ms service=session session=ses_85dfe35ffffeXPf2Nt1UXa8j1R chatting
INFO  2025-06-24T12:55:15 +0ms service=provider providerID=openai modelID=codex-mini-latest getModel
INFO  2025-06-24T12:55:15 +0ms service=provider status=started providerID=openai getSDK
INFO  2025-06-24T12:55:15 +1ms service=bun cmd=/Users/ark/.opencode/bin/opencode,install,--registry,https://registry.npmjs.org/ options=[object Object] running
INFO  2025-06-24T12:55:15 +229ms service=provider status=completed duration=230 providerID=openai getSDK
INFO  2025-06-24T12:55:15 +0ms service=provider providerID=openai modelID=codex-mini-latest found
INFO  2025-06-24T12:55:15 +1ms service=session sessionID=ses_85dfe35ffffeXPf2Nt1UXa8j1R locking
INFO  2025-06-24T12:55:15 +4ms service=bus type=storage.write publishing
INFO  2025-06-24T12:55:15 +0ms service=bus type=message.updated publishing
INFO  2025-06-24T12:55:15 +2ms service=bus type=storage.write publishing
INFO  2025-06-24T12:55:15 +0ms service=bus type=message.updated publishing
INFO  2025-06-24T12:55:15 +0ms service=app name=mcp registering service
INFO  2025-06-24T12:55:15 +0ms service=session sessionID=ses_85dfe35ffffeXPf2Nt1UXa8j1R unlocking
ERROR 2025-06-24T12:55:15 +2ms service=default name=Error message=EACCES: permission denied, open '/tmp/message.json' fatal
Error: Unexpected error, check log file at  for more details

Activity

  1. thdxr commented on Jun 24, 2025

    @thdxr
    Member

    oops this is debug code let me remove it

  2. self-assigned this
    on Jun 24, 2025
  3. roman-causalens commented on Jun 26, 2025

    @roman-causalens
    Author

    Thanks for fixing this!

  4. added a commit that references this issue on Apr 7, 2026
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