Skip to content

fix(ai): preserve tool argument replay stability to avoid prompt caching misses#627

Merged
GCWing merged 1 commit into
GCWing:mainfrom
wsp1911:main
May 9, 2026
Merged

fix(ai): preserve tool argument replay stability to avoid prompt caching misses#627
GCWing merged 1 commit into
GCWing:mainfrom
wsp1911:main

Conversation

@wsp1911
Copy link
Copy Markdown
Collaborator

@wsp1911 wsp1911 commented May 9, 2026

  • keep tool call arguments as serde_json::Value across core and adapter boundaries
  • preserve raw tool arguments for valid streamed tool calls during replay
  • prefer raw arguments for OpenAI-compatible message serialization when JSON is valid
  • fall back to stable serialization when raw arguments are missing or invalid
  • align token estimation and stream tests with the new tool argument replay behavior

…ing misses

- keep tool call arguments as serde_json::Value across core and adapter boundaries
- preserve raw tool arguments for valid streamed tool calls during replay
- prefer raw arguments for OpenAI-compatible message serialization when JSON is valid
- fall back to stable serialization when raw arguments are missing or invalid
- align token estimation and stream tests with the new tool argument replay behavior
@GCWing GCWing merged commit 84b7b71 into GCWing:main May 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants