anomalyco / anomalyco/opencode

Workspace terminals are torn down when switching session routes

Open
#48,531 0 comments 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Sep 11, 2026.

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

Description

Description

Workspace terminals are torn down when navigating between chat routes.

The terminal cache is created per route inside TerminalProvider, which lives in the session page. Switching sessions (or moving between a draft and a session) destroys the previous terminal cache and disposes all terminal sessions, so an open bottom terminal disappears instead of persisting for the same workspace directory.

Plugins

n/a

OpenCode version

latest dev

Steps to reproduce
  1. Open a workspace terminal in a chat.
  2. Navigate to another chat in the same workspace directory (or open a new draft).
  3. The bottom terminal is gone instead of persisting.
Screenshot and/or share link

n/a

Operating System

n/a (all)

Terminal

n/a

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.