Uh oh!
There was an error while loading. Please reload this page.
feat: keep internal error in worker's quit reason - #372
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR enhances error handling in the transport worker system by making the WorkerQuitReason generic over error types, allowing workers to preserve their specific error types rather than converting them to strings. It also fixes spelling errors in StreamableHttpError variants.
Key changes:
- Made
WorkerQuitReasongeneric over error types to preserve internal error information - Updated all worker implementations to use specific error types instead of generic string errors
- Fixed typos in
StreamableHttpErrorenum variants (Sever→Server)
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
crates/rmcp/src/transport/worker.rs | Made WorkerQuitReason generic over error type E and updated method signatures |
crates/rmcp/src/transport/streamable_http_server/session/local.rs | Introduced LocalSessionWorkerError enum and updated worker implementation to use specific error types |
crates/rmcp/src/transport/streamable_http_client.rs | Fixed spelling errors and updated to use generic error types in method calls |
crates/rmcp/src/transport/common/reqwest/streamable_http_client.rs | Fixed spelling error in error variant name |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
4t145
commented
Aug 15, 2025
Just adopted copilot's suggestion. |
Uh oh!
There was an error while loading. Please reload this page.
…ol#372) * feat: support downcast WorkerQuitReason::Fatal * feat(transport): expose internal worker error in fatal * Update crates/rmcp/src/transport/streamable_http_client.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update crates/rmcp/src/transport/streamable_http_client.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
fix#345
Motivation and Context
How Has This Been Tested?
Breaking Changes
QuitReasonStreamableHttpErrorTypes of changes
Checklist
Additional context