Skip to content

Preserve reasoning signatures through the AI gateway#156

Merged
msullivan merged 1 commit into
mainfrom
thinking-persist
May 29, 2026
Merged

Preserve reasoning signatures through the AI gateway#156
msullivan merged 1 commit into
mainfrom
thinking-persist

Conversation

@msullivan
Copy link
Copy Markdown
Contributor

The gateway adapter dropped the thinking-block signature on both the
inbound and outbound paths, so reasoning blocks could not be replayed to
the provider and persistence across turns silently failed (the model
re-derived its answer instead of recalling it).

Adds an end-to-end round-trip test (parse -> aggregate -> serialize),
inbound/outbound unit tests, and a replay round-trip test.

The gateway adapter dropped the thinking-block signature on both the
inbound and outbound paths, so reasoning blocks could not be replayed to
the provider and persistence across turns silently failed (the model
re-derived its answer instead of recalling it).

Adds an end-to-end round-trip test (parse -> aggregate -> serialize),
inbound/outbound unit tests, and a replay round-trip test.
@msullivan msullivan requested a review from anbuzin May 29, 2026 02:31
@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-python Ready Ready Preview, Comment May 29, 2026 2:32am

@msullivan msullivan merged commit 278d82a into main May 29, 2026
7 checks passed
@msullivan msullivan deleted the thinking-persist branch May 29, 2026 17:45
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