Conversation
e5d7bc1 to
ac8bfd1
Compare
chaitanyapotti
approved these changes
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Jira Link:
Description
How has this been tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Note
Medium Risk
Adds a substantial new JSON-RPC execution path and error/coercion behavior (engine + server + legacy bridge), which could affect request handling semantics and error propagation even though the legacy engine remains available.
Overview
Introduces
JRPCEngineV2undersrc/jrpc/v2, a new JSON-RPC middleware engine with a new middleware signature, immutable (deep-frozen) requests/results, typedcontextviaMiddlewareContext, explicit request-vs-notification handling, and lifecycle support (destroy,asMiddleware, factorycreate()).Adds
JRPCServerto coerce raw inputs into well-formed JSON-RPC calls, return non-throwing responses for requests, and serialize errors, plusasLegacyMiddleware+ compatibility utilities to run V2 engines/middleware inside the legacyJRPCEnginewhile propagating request/context changes. Also updates JRPC exports and utilities (e.g.,isRequest/isNotification,getUniqueId, stablestringify) and enhancesJsonRpcErrorserialization to better preserve/serializecause, with comprehensive new V2-focused tests and docs.Written by Cursor Bugbot for commit 7ff19da. This will update automatically on new commits. Configure here.