Repository navigation
Append handlers in-situ. - #118
Conversation
|
Would love to see this merged... Is this repo still maintained? |
|
@DePasqualeOrg just saw this—thanks for taking care of this! |
|
Maintainer triage on February 24, 2026: low-risk merge candidate (tiny handler append behavior change, mergeable, no failing checks). |
Issue titles are now bare 'Upstream PR#<n>'; the merge/investigate/decline label carries the decision, so the title does not duplicate it. Two places named the old convention and are updated. The investigate count was also stale: it said twelve, which was true at triage on 2026-09-10. Four were declined since (modelcontextprotocol#280, modelcontextprotocol#226, modelcontextprotocol#118, modelcontextprotocol#204) and two were promoted and merged (modelcontextprotocol#266 as entries 9/9a, modelcontextprotocol#275 as 10/10a/10b), leaving six — modelcontextprotocol#178, modelcontextprotocol#213, modelcontextprotocol#216, modelcontextprotocol#257, modelcontextprotocol#258, modelcontextprotocol#259 — now listed by number rather than by count, so the sentence cannot drift again. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Eb9yGSXH1TVkg5Afsu9phk
|
Hi @plx, thanks for this PR! I've reviewed it and it looks good to merge. Could you please rebase it onto the latest If you're no longer able to work on this, no problem: just let us know. If we don't hear back in about two weeks, we may carry the change forward in a new PR, with credit to you. |
|
Actually going to update and merge. this is simple fix and can land as it is. |
While starting to read the code I noticed some code like this:
I changed those sites to look like this:
Motivation and Context
The updated code may sometimes perform an in-situ append on the underlying storage; the original would always construct a new array.
In a worst-case scenario the original code could exhibit accidentally-quadratic behavior while, say, registering a large number of "handlers".
How Has This Been Tested?
I re-ran the unit tests and they still passed.
I also ran this test to double-check that the setter for
subscript(key:default:)existed and worked as I thought:I didn't include that test in the PR because it's a one-off experiment to re-confirm my understanding of a standard-library method, but I'm happy to put it back in if you'd like.
Breaking Changes
No.
Types of changes
Checklist
Additional context
Glad there's an official sdk!
Update 8/12/2025
Remembered this PR is still open and checked the un-checked boxes on the checklist—they're all (trivially) true.