fix(session): strip reasoning item ids from session history#3514
fix(session): strip reasoning item ids from session history#3514Epochex wants to merge 2 commits into
Conversation
|
Hi Epochex: Could you add this check in the _strip_reasoning_item_ids_from_history_item for this case?
` ] |
|
Done in 13e004c. I changed the session-history sanitizer to drop replayed reasoning items when Ran: |
|
This PR is stale because it has been open for 10 days with no activity. |
|
Still relevant. The requested empty-summary case was added in 13e004c with a focused regression test; this is waiting for maintainer review now. |
Fixes #2020
Session-backed runs can end up replaying
reasoningitems with server-assignedrs_...IDs from prior turns. Those IDs are not guaranteed to be stable across turns, and replaying them can trigger a 404 ("Item with id 'rs_...' not found") in a subsequentresponses.createcall.This change strips the
idfield fromreasoningitems loaded from non-Conversations sessions before building model input, so the reasoning payload can still be replayed without relying on server-side item retention.Tests: