Skip to content

OpenCode harness: deployed tests exceed the Durable Object memory limit #3565

Todo

Description

@mattzcarey

What happens

Three of the nightly's deployed OpenCode tests fail on main. In each, the agent's Durable Object is reset by the platform for using too much memory during the first submission:

Error: probeSubmit: Error: Durable Object's isolate exceeded its memory limit and was reset.

Failing tests, all in nightly/harnesses/opencode.test.ts:

  • holds a real conversation with a tool through a reset
  • replays a run cut off by a code update mid-call
  • replays a run cut off by a reset mid-call, woken by its own alarm

The other tests in the same job pass, including all of the Pi harness's.

Where it was seen

  • The nightly run on 2 December (main at 6201c11ea).
  • Reproduced from a clean checkout of main by deploying the same test Worker.

What we know and don't know

  • The failure is at the first submit, before any reset the test makes itself, so it is the harness's own memory use on a deployed Worker, not the test's fault injection.
  • The OpenCode harness was upgraded to opencode 2.4.3 on 1 December (fix(agents): upgrade opencode to 2.4.3 #3509). That is the most likely cause, but it is not confirmed yet. A run of the same three tests on the commit before that upgrade is in progress and the result will be added here.
  • If the tests also fail before the upgrade, the cause is elsewhere in agents and this issue will be updated with the first commit where they fail.

What is being done now

The three tests will be marked as a known failure in the nightly, pointing at this issue, so the rest of the nightly can be read. No product code changes with that.

What would fix it

Someone who owns the OpenCode harness needs to look at its memory use at startup on 2.4.3 (what it loads before the first model call) and either reduce it or document a limit.

Activity

  1. added
    bug
    priority: high
    on Dec 2, 2026
  2. mattzcarey commented on Dec 2, 2026

    @mattzcarey
    MemberAuthor

    One data point on when this started. I ran the nightly's deployed harness tests (cd nightly && pnpm run harnesses) from a clean checkout of two commits on the same account, the same day:

    So the OpenCode 2.4.3 upgrade (bb20240) brought it. One run on each commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpriority: high

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions