Skip to content

fix: catch OSError in streaming dispatch_command() - #3925

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

fix: catch OSError in streaming dispatch_command()#3925
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/streaming-oserror-handler

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Problem

The streaming branch only caught KeyboardInterrupt but not OSError. If the binary is removed between shutil.which() and subprocess.run() (TOCTOU race), an OSError propagates unhandled.

Fix

Added except OSError handler in both base and copilot streaming dispatch.

…utable binaries
The streaming branch only caught KeyboardInterrupt but not OSError.
If the binary is removed between shutil.which() and subprocess.run()
(a TOCTOU race), an OSError propagates unhandled.
Sign up for freeto 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

@Quratulain-bilal