Skip to content

Facing issues with reasoning items when using gpt-5.1 with store=False. #2265

Closed

Description

@HailTheLotusJewel

Please read this first

  • Have you read the docs?Agents SDK docs - yes
  • Have you searched for related issues? Others may have faced similar issues. - yes

Describe the bug

Getting an error when using gpt-5.1 with the latest version (0.6.5) of agents-sdk.
openai.NotFoundError: Error code: 404 - {'error': {'message': "Item with id 'rs_0c248120afa4205101695e04db35c481909a9dd12c3f4d8a89' not found. Items are not persisted when storeis set to false. Try again withstore set to true, or remove this item from your input.", 'type': 'invalid_request_error', 'param': 'input', 'code': None}}

Debug information

  • Agents SDK version: 0.6.5
  • Python version - 3.12.11

Repro steps

This is the agent configuration:

some_agent = Agent(
            name="some agent",
            handoff_description="instructions",
            instructions=dynamic_agent_prompt,
            model="gpt-5.1",
            model_settings=ModelSettings(
                reasoning=Reasoning(effort="low", summary="auto"), 
                verbosity="low", 
                parallel_tool_calls=True,
                max_tokens=10000,
                store=False
            ),
            tools=[tools]
        )

Expected behavior

The reasoning should work as this issue has already been resolved as of #919

I am using state=False due to another issue referenced here and here

Activity

  1. added
    bug
    on Jan 7, 2026
  2. added
    question
    and removed
    bug
    on Jan 7, 2026
  3. seratch commented on Jan 7, 2026

    @seratch
    Member

    When you turn store option off, your model settings need to have response_include=["reasoning.encrypted_content"]. This SDK does not automatically set it under the hood because non-reasoning models such as gpt-4.1 do not work with the option. Please pass the additional option to your ModelSettings.

  4. HailTheLotusJewel commented on Jan 7, 2026

    @HailTheLotusJewel
    Author

    @seratch yes that solved the issue, I just found it as well. Thanks!

    some_agent = Agent(
                name="some agent",
                handoff_description="instructions",
                instructions=dynamic_agent_prompt,
                model="gpt-5.1",
                model_settings=ModelSettings(
                    reasoning=Reasoning(effort="low", summary="auto"), 
                    verbosity="low", 
                    parallel_tool_calls=True,
                    max_tokens=10000,
                    store=False,
                   extra_body={
                        "include": ["reasoning.encrypted_content"]
                   }
                ),
                tools=[tools]
            )
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:corequestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions