Add early return in WriteToFileToolHandler catch block when tool has already failed once during streaming when enableParallelToolCalling is not enabled. This prevents the same error message from being repeatedly added to userMessages array on each new streaming chunk received.
Core Architecture
Extension entry point (extension.ts) -> webview -> controller -> task
core/
├── webview/ # Manages webview lifecycle
├── controller/ # Handles webview messages and task management
├── task/ # Executes API requests and tool operations
└── ... # Additional components to help with context, parsing user/assistant messages, etc.