Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
|
Size Change: 0 B Total Size: 1.74 MB ℹ️ View Unchanged
|
This branch has not been deployed
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.
LangGraph Platform's V3 run endpoint copies transport configuration into runtime context when no application context was supplied. The standard
CopilotKitMiddlewarethen serializes__event_streaming_v2and the transportthread_idinto the model's App Context system prompt.Filter these two fields at the production runtime-context fallback before either model-call path builds the prompt. Explicit CopilotKit context retains precedence, application context survives, and ordinary dictionaries without the Platform marker retain their
thread_id. Runtime and message state are not mutated.Validation: eight regression cases exercise the public middleware import through sync and async model handlers (four failed before the fix). Full Python SDK suite: 250 passed, 11 skipped. Built the wheel, installed it to an isolated target, and ran all 99 middleware tests against that distribution. Repository commit hooks passed.
Companion to ag-ui-protocol/ag-ui#2830. AG-UI's transformer compatibility lane must test this production package commit; ordinary PyPI installations remain affected until this fix is merged and a Python SDK release is published. No release or merge is included in this PR.