anomalyco / anomalyco/opencode
[BUG]: Forking long sessions takes several seconds
Open
@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
- Create a session with roughly 1,000 messages, 5,600 parts, and one large message summary.
- Fork the complete session with
/forkor the session fork API. - 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
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.