Prerequisites
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
Error Logs
Configuration
Additional Context
No response
Operating System
Other
OpenCode Version
current
Prerequisites
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
Error Logs
Configuration
Additional Context
No response
Operating System
Other
OpenCode Version
current