Repository navigation
Conversation
This was referenced Sep 23, 2026
Merged
This was referenced Oct 9, 2026
Draft
3 of 4 tasks
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.
Description
Fixes #827.
Backwards calls reject object-valued replay state and corrupt some JSON values, while ordinary plugin dispatch and Agent responses round integers above
2^53.Preserve JSON through both directions of invocation so a tool argument such as
9007199254740993reaches the tool unchanged and survives saved Agent history.Keep backwards request values as
json.RawMessageuntil typed dispatch, then decode withUseNumberand the existing validator across all 17 invocation types.Apply number-preserving decoding to
InvokePluginRequestandToolResponseChunkas well.Agent blob assembly reads the resulting numeric length and rejects negative, fractional, overflowing, or oversized values before allocation.
Trusted tenant/user/type injection still overrides case-folded input aliases.
Null or omitted message content is accepted where the SDK permits it, including tool-only responses, while invalid content types remain rejected.
The serverless missing-session path reads only the request ID to preserve error correlation.
Type of Change
Essential Checklist
Validation
go test -timeout 1m ./cmd/... ./internal/... ./pkg/...passed with isolated PostgreSQL/Redis instances and temporary CI test keys.go vetpassed.go vetstill reports the existingstopRenewcontext leak in unchangedinternal/core/control_panel/launcher_local.go.This is part of the joint next-version upgrade with SDK #390, official plugins #4034, and #4035.
The host work is Dify #44502.
Final release versions and its Graphon dependency publication remain pending.
Live vendor APIs and production deployment were not tested.