-
Notifications
You must be signed in to change notification settings - Fork 64
fix: remove stdout stream handling for share #167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cc18d8d
to
5c4e6ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes POSIX-specific non-blocking stream handling (fcntl
/select
) to improve Windows compatibility in the share command.
- Deleted
make_non_blocking
and related tests. - Simplified loops to read only
stderr
and removedselect
calls. - Adjusted error message dispatch in the router to send raw errors.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
tests/test_share.py | Removed make_non_blocking test and its import |
src/mcpm/router/transport.py | Changed await writer.send(SessionMessage(message=err)) to raw send |
src/mcpm/commands/share.py | Dropped fcntl /select usage, removed non-blocking setup, and simplified I/O loops |
Comments suppressed due to low confidence (1)
src/mcpm/router/transport.py:223
- The router protocol likely expects a
SessionMessage
object. Sending the rawerr
may break the consumer; restore or replace the wrapper so the message format matches the API contract.
await writer.send(err)
## [1.13.3](v1.13.2...v1.13.3) (2025-06-05) ### Bug Fixes * remove stdout stream handling for share ([#167](#167)) ([11fddcc](11fddcc))
🎉 This PR is included in version 1.13.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
remove
fcntl
and select for windows compatible