anomalyco / anomalyco/opencode

[BUG]: Forking long sessions takes several seconds

Open
#41,698 0 comments 1 reaction 1 assignee View on GitHub

@rekram1-node is already working on this.

Since Aug 11, 2026.

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

Description

Description

Forking a long session can block for several seconds. A synthetic fixture with 986 messages, 5,657 parts, and a 25 MiB message summary takes about 5.3 seconds to fork on the current dev branch. The fork should preserve the same history while completing promptly.

This reproduces #16311, which was closed automatically after 60 days of inactivity.

Plugins

None

OpenCode version

dev at d041eee55c

Steps to reproduce
  1. Create a session with roughly 1,000 messages, 5,600 parts, and one large message summary.
  2. Fork the complete session with /fork or the session fork API.
  3. Measure the time until the new session is returned.
Screenshot and/or share link

N/A

Operating System

macOS 26.5.2 (arm64)

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.