Skip to content

fix(copilot): abort in-progress tools when stream ends#3641

Draft
waleedlatif1 wants to merge 1 commit intostagingfrom
improvement/loading-chat
Draft

fix(copilot): abort in-progress tools when stream ends#3641
waleedlatif1 wants to merge 1 commit intostagingfrom
improvement/loading-chat

Conversation

@waleedlatif1
Copy link
Collaborator

Calls abortAllInProgressTools in the stream_end handler so tools
stuck in generating/executing state are resolved when the stream
closes, regardless of whether a done event was received.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

Summary

Brief description of what this PR does and why.

Fixes #(issue)

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Other: ___________

Testing

How has this been tested? What should reviewers focus on?

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Screenshots/Videos

Calls abortAllInProgressTools in the stream_end handler so tools
stuck in generating/executing state are resolved when the stream
closes, regardless of whether a done event was received.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Mar 17, 2026 11:06pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant