Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: Ensure _meta object is not lost when onprogress option is passed
When the onprogress option is passed, the _meta object in the request
params was being overwritten, causing any existing _meta content to be lost.
  • Loading branch information
daidi authored May 29, 2025
commit 49777d565265424726af6b653adc99b592dbfd9b
5 changes: 4 additions & 1 deletion src/shared/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,10 @@
this._progressHandlers.set(messageId, options.onprogress);
jsonrpcRequest.params = {
...request.params,
_meta: { progressToken: messageId },
_meta: {
...(request.params._meta || {}),

Check failure on line 545 in src/shared/protocol.ts

View workflow job for this annotation

GitHub Actions / build

'request.params' is possibly 'undefined'.
progressToken: messageId
},
};
}

Expand Down
Loading