anomalyco / anomalyco/opencode

Two independent OpenCode tabs unexpectedly share state/session

Open
#46,824 2 comments 0 reactions 1 assignee View on GitHub

@jlongster is already working on this.

Since Sep 2, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

I had two separate OpenCode tabs open, intended to operate independently. However, actions and state from one tab appeared to synchronize with the other tab. The two tabs behave as though they were connected to the same underlying session/state.

This is unexpected because each tab should maintain its own independent UI/session context.

Expected behavior: Two OpenCode tabs should operate independently, with actions, prompts, and session state isolated per tab/session.

Actual behavior: The tabs appear to share or synchronize state, causing activity in one tab to affect the other.

Plugins

none

OpenCode version

1.18.25

Steps to reproduce
  1. Close every OpenCode instance.
  2. Confirm no OpenCode processes remain.
  3. Open Terminal 1.
  4. Start OpenCode.
  5. Create/open Session A.
  6. Send a distinctive message:
    "THIS IS SESSION A TEST 12345"
  7. Open Terminal 2.
  8. Start a completely separate OpenCode instance.
  9. Create/open Session B.
  10. Send:
    "THIS IS SESSION B TEST 67890"
  11. Observe whether Session A and Session B remain independent.
Screenshot and/or share link

No response

Operating System

fedora linux 44

Terminal

Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.