Skip to content

Restore reasoningId and reasoningSummary when rehydrating ToolCall from database#478

Closed
sumaiazaman wants to merge 1 commit into
laravel:0.xfrom
sumaiazaman:fix/toolcall-reasoning-rehydration
Closed

Restore reasoningId and reasoningSummary when rehydrating ToolCall from database#478
sumaiazaman wants to merge 1 commit into
laravel:0.xfrom
sumaiazaman:fix/toolcall-reasoning-rehydration

Conversation

@sumaiazaman

Copy link
Copy Markdown
Contributor

Fixes #361.

DatabaseConversationStore::getLatestConversationMessages() was not restoring reasoningId and reasoningSummary when reconstructing ToolCall objects from the database, even though both fields are correctly serialized via ToolCall::toArray().

This caused reasoning models to fail with HTTP 400 on follow-up turns because the rehydrated ToolCall had reasoningId = null, so no reasoning items were emitted — but the API expected them to be present.

@pushpak1300

Copy link
Copy Markdown
Member

Duplicate of #301

@pushpak1300 pushpak1300 marked this as a duplicate of #301 Apr 30, 2026
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.

DatabaseConversationStore loses reasoningId/reasoningSummary when rehydrating ToolCall from DB

2 participants