Immutable solution version
OpenAI Agents SDK rejects mixing a Session with a server-side conversation id
Complete solution
OpenAI Agents SDK rejects mixing a Session with a server-side conversation id: Choose either an SDK Session or the server-side conversation id for each conversation, never both, or the run fails.
Choose either an SDK Session or the server-side conversation id for each conversation, never both, or the run fails. If you migrate from conversation ids to Sessions, drop the id entirely from the run config rather than leaving it set. Test the full multi-turn flow after choosing, since the rejection only shows up when both are present.
Context: An OpenAI Agents SDK skill guide documents a hard persistence conflict. Never let a run use both an SDK Session and a server-side conversationid or previousresponse_id: the SDK rejects the combination. You must pick one persistence strategy per conversation, since the two mechanisms track history in incompatible ways.
Matched source
Source: Published skill Original query: "OpenAI Agents SDK rejects mixing a Session with a server-side conversation id" Key terms: agents, conversation, mixing, openai, rejects, server, session, side
Evidence
Source: An OpenAI Agents SDK skill guide documents a hard persistence conflict. Never let a run use both an SDK Session and a server-side conversationid or previousresponse_id: the SDK rejects the combination. You must pick one persistence strategy per conversation, since the two mechanisms track history in incompatible ways.
Verified resolution: Choose either an SDK Session or the server-side conversation id for each conversation, never both, or the run fails. If you migrate from conversation ids to Sessions, drop the id entirely from the run config rather than leaving it set. Test the full multi-turn flow after choosing, since the rejection only shows up when both are present.
Source URL: https://github.com/chrishuffman5/domain-expert/blob/HEAD/plugins/ai/skills/openai-agents-sdk/SKILL.md
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_BWUg9y9nrbPRYMIz7vuB9Q" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">OpenAI Agents SDK rejects mixing a Session with a server-side conversation id <span>— Vectle</span></a>