9823761e03
Add `cancelStream` method to allow aborting active requests. Store the current `AbortController` on the client instance and reset it when the stream completes or is cancelled. Update `ChatView` to call `cancelStream` on close. Add comprehensive tests for stream cancellation scenarios, including aborting active requests, handling cancellation when no stream is active, clearing the controller after normal completion, and allowing new streams after cancellation.
40 lines
329 B
Plaintext
Executable File
40 lines
329 B
Plaintext
Executable File
# Dependencies
|
|
node_modules/
|
|
|
|
# Built files
|
|
lib/
|
|
dist/
|
|
out/
|
|
build/
|
|
coverage/
|
|
|
|
# IDE files
|
|
.idea/
|
|
.vscode/
|
|
*.suo
|
|
*.ntvs*
|
|
*.njsproj
|
|
*.sln
|
|
|
|
# Backup files
|
|
*.backup
|
|
|
|
# Log files
|
|
*.log
|
|
npm-debug.log*
|
|
|
|
# Runtime data
|
|
.pnp.*
|
|
.yarn/
|
|
|
|
# Editor settings
|
|
.DS_Store
|
|
*.swp
|
|
*.swo
|
|
|
|
# Test cache
|
|
.jest-cache/
|
|
|
|
# review agents
|
|
agent_loop_gemma4/
|