Skip to content

fix(session): prevent GPT-5.2 resume reasoning crash#6114

Open
lifeiscontent wants to merge 2 commits intoanomalyco:devfrom
lifeiscontent:fix/gpt-5-2-resume-reasoning
Open

fix(session): prevent GPT-5.2 resume reasoning crash#6114
lifeiscontent wants to merge 2 commits intoanomalyco:devfrom
lifeiscontent:fix/gpt-5-2-resume-reasoning

Conversation

@lifeiscontent
Copy link

Summary

  • Prevent resume failures on GPT-5.2 by dropping assistant messages that contain only reasoning/step-start parts when rebuilding the prompt.
  • Add unit coverage for the filtering behavior.

Context

Force-quitting mid-stream can persist an assistant message with only reasoning parts; on GPT-5.2 this can violate OpenAI Responses item sequencing and error on restore.

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.

1 participant