Skip to content

Python: [Bug]: Thread State Serialization Breaks Multi-Turn Tool Calls #4672

@sphenry

Description

@sphenry

Description

agent.deserialize_thread() loses fc_id ↔ call_id mapping, causing "No tool call found" errors on restored sessions. very multi-turn conversation creates a new thread per turn, increasing token usage and losing native thread continuity.

A workaround is to have a built in-memory ConversationStore that injects history as prompt text prefix instead of restoring thread state

Code Sample

Error Messages / Stack Traces

Package Versions

1.0.0rc4

Python Version

No response

Additional Context

No response

Metadata

Metadata

Labels

bugSomething isn't workingpython

Type

Projects

Status

In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions