豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

fix: #2798 avoid stale hydrated input ids in server conversation tracker#2800

Merged
seratch merged 1 commit intomainfrom
fix/hydrate-initial-input-dedupe
Mar 28, 2026
Merged

fix: #2798 avoid stale hydrated input ids in server conversation tracker#2800
seratch merged 1 commit intomainfrom
fix/hydrate-initial-input-dedupe

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented Mar 28, 2026

This pull request fixes #2798 a resumed server-managed conversation bug where OpenAIServerConversationTracker.hydrate_from_state() could record id() values for reconstructed initial input items and later misclassify unrelated freshly allocated items as already sent. In the failure case, a new function_call_output could be dropped from the next payload, leading to "No tool output found for function call <call_id>."

The change updates src/agents/run_internal/oai_conversation.py so hydrated initial input is deduplicated only through stable identifiers and content fingerprints, not Python object identity. It also adds regression coverage in tests/test_server_conversation_tracker.py for both string and list initial inputs to lock in the resume behavior and prevent stale identity tracking from returning.

@seratch seratch added this to the 0.13.x milestone Mar 28, 2026
@github-actions github-actions bot added bug Something isn't working feature:core labels Mar 28, 2026
@seratch seratch merged commit 9f5575a into main Mar 28, 2026
9 checks passed
@seratch seratch deleted the fix/hydrate-initial-input-dedupe branch March 28, 2026 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature:core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hydrate_from_state stores id() of ephemeral objects in sent_items, causing false-positive dedup after GC

1 participant