Skip to content

fix(memory): skip conversation creation on empty add_items - #4190

Merged
seratch merged 1 commit into
mainfrom
fix/openai-conversations-empty-add-items
Aug 5, 2026
Merged

fix(memory): skip conversation creation on empty add_items#4190
seratch merged 1 commit into
mainfrom
fix/openai-conversations-empty-add-items

Conversation

@seratch

@seratch seratch commented Aug 5, 2026

Copy link
Copy Markdown
Member

This pull request incorporates and supersedes #4162. It fixes OpenAIConversationsSession.add_items([]) so an empty persistence batch no longer creates a durable OpenAI Conversation.

It preserves the original fix while addressing review feedback by updating the public session_id guidance and adding regression coverage for both uninitialized and existing-ID sessions. The original contributor is credited as a co-author.

Return before resolving a conversation ID when there are no items to persist, and keep the public session_id guidance aligned with lazy initialization semantics.

Co-authored-by: LeSingh1 <sshaurya914@gmail.com>
@seratch seratch added this to the 0.19.x milestone Aug 5, 2026
@seratch
seratch enabled auto-merge (squash) August 5, 2026 01:05
@seratch
seratch merged commit 6972c14 into main Aug 5, 2026
9 checks passed
@seratch
seratch deleted the fix/openai-conversations-empty-add-items branch August 5, 2026 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant