fix: detect and abort stalled tool executions; upgrade SDK to 0.1.29#484
Merged
idofrizler merged 1 commit intostagingfrom Feb 28, 2026
Merged
fix: detect and abort stalled tool executions; upgrade SDK to 0.1.29#484idofrizler merged 1 commit intostagingfrom
idofrizler merged 1 commit intostagingfrom
Conversation
- Add 5-minute stall detection for hung tool executions across all 4 session event handler paths. Auto-calls session.abort() and shows an error in the UI when a tool takes too long (e.g. backend drops connection mid-turn, which SDK 0.1.25 silently hangs on forever). - Upgrade @github/copilot-sdk from 0.1.25 to 0.1.29 which may include improved connection error handling. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When the Copilot backend drops the connection mid-turn (during tool execution), SDK 0.1.25 hangs silently forever — the session shows \ ool.execution_start\ but never \ ool.execution_complete. The UI is permanently stuck and the user has no way to recover without closing the tab.
Changes
Stall detection (\src/main/main.ts)
Added a 5-minute stall detector across all 4 session event handler paths:
This catches both truly hung commands and the backend-disconnect case.
SDK upgrade (\package.json)
Upgraded @github/copilot-sdk\ from \