Source
ChatGPT security review feedback
Problem
Blocking std::fs and std::io operations inside async fn execute in tools/file.rs and agent execution/checkpointing. This causes:
- Unstable multi-agent concurrency
- Potential deadlocks
- "It hangs sometimes" reputation damage
Fix
- For filesystem ops requiring sync-only crates (atomic tempfiles), wrap in
tokio::task::spawn_blocking
- For everything else, move to
tokio::fs and tokio::io
- Audit all
async fn in src/tools/ and src/agent/ for blocking calls
Note: Some blocking I/O in context_management.rs and interactive.rs was already converted to tokio::fs in recent work. This issue tracks completing the job across all remaining call sites.
Priority
P0 — unlocks stable multi-agent concurrency
Labels
performance, P0
Source
ChatGPT security review feedback
Problem
Blocking
std::fsandstd::iooperations insideasync fn executeintools/file.rsand agent execution/checkpointing. This causes:Fix
tokio::task::spawn_blockingtokio::fsandtokio::ioasync fninsrc/tools/andsrc/agent/for blocking callsNote: Some blocking I/O in
context_management.rsandinteractive.rswas already converted totokio::fsin recent work. This issue tracks completing the job across all remaining call sites.Priority
P0 — unlocks stable multi-agent concurrency
Labels
performance, P0