save_todos uses whole-list replace pattern (load → modify → write_json_fast). If 2 agents/todos complete at the same time, the second save overwrites the first changes.
Files:
crates/jcode-base/src/todo.rs
crates/jcode-app-core/src/agent/orchestrator.rs
Related bead: jcode-h6j
save_todosuses whole-list replace pattern (load → modify → write_json_fast). If 2 agents/todos complete at the same time, the second save overwrites the first changes.Files:
crates/jcode-base/src/todo.rscrates/jcode-app-core/src/agent/orchestrator.rsRelated bead: jcode-h6j