Previously, clicking cancel would break out of the stream loop but leave the HTTP connection open. Ollama would continue generating in the background, keeping the GPU busy and blocking subsequent requests until completion. Now we call the Ollama SDK's abort() method to immediately close the connection. Fixes #7468
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.