anomalyco / anomalyco/opencode
Workspace terminals are torn down when switching session routes
Open
@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
- Open a workspace terminal in a chat.
- Navigate to another chat in the same workspace directory (or open a new draft).
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.