anomalyco / anomalyco/opencode

todowrite crash with double subagent

Open
#40,020 1 comment 0 reactions 1 assignee View on GitHub

@jlongster is already working on this.

Since Aug 1, 2026.

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

Description

Description

todowrite tool crashes (Effect.orDie on SQLITE_BUSY) for one of two subagents
when both are launched in parallel via task and both call todowrite
as their first action.
I can't find error in log opencode, but glm says that it is.
And it happens every time it’s run

Plugins

No response

OpenCode version

v1.18.8

Steps to reproduce
  1. Define two subagents with todowrite: allow in permission
  2. Primary agent launches both via task in parallel (background:true)
  3. Both subagents call todowrite as first action
  4. One succeeds, the other crashes with SQLITE_BUSY
Screenshot and/or share link

No response

Operating System

macOS 15.7.8

Terminal

Ghostty

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.