Skip to content

fix: add timeout to streaming subprocess.run() in copilot dispatch_command - #3968

Open
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/copilot-streaming-timeout
Open

fix: add timeout to streaming subprocess.run() in copilot dispatch_command#3968
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/copilot-streaming-timeout

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Problem

The streaming branch of copilot's dispatch_command() called subprocess.run() without timeout, which could hang indefinitely if the child process stalls.

Fix

Apply the same timeout parameter as the non-streaming branch, with proper TimeoutExpired handling.

…mmand

The streaming branch called subprocess.run() without timeout, which could
hang indefinitely. Now uses the same timeout parameter as the non-streaming
branch with proper TimeoutExpired handling.
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