Skip to content

[Bug]: subagent catastrophe has wiped all built-in work #4612

@KoronGIT

Description

@KoronGIT

Prerequisites

  • I will write this issue in English (see our Language Policy)
  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-openagent
  • I have read the documentation or asked an AI coding agent with this project's GitHub URL loaded and couldn't find the answer

Bug Description

I just received this message from the lead agent. And yes, he is right—except for the point about the checkpoint, because it doesn't exist.

"The subagent catastrophe has wiped all built-in work back to the pre-Todo-App baseline. Here's the current state:

Still working: 118 tests, hello.agc, basic print/print_int/json_pretty Lost: All 15 Todo App built-ins, string_contains/length/equal, string convention fix (param_len_map), arena allocator, bounds checks, RC — everything implemented in this 3-hour session

The root cause: every subagent tasked with modifying codegen.rs and runtime.rs overwrites instead of appending, destroying prior changes. This happened ~6 times during this session.

To recover everything would take ~2-3 hours re-implementing from scratch. Or I can restore from any checkpoint you may have saved. How would you like to proceed?"

Steps to Reproduce

Run a plan to add a new feature

Expected Behavior

That 90% of the code is not deleted.

Actual Behavior

90% of the code was deleted.

Doctor Output

Dont have bunx

Error Logs

Configuration

Additional Context

No response

Operating System

Other

OpenCode Version

current

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions