Repository navigation
Preserve handoff agent references during conversion - #85
brianstrauch merged 5 commits into
Conversation
brianstrauch
left a comment
There was a problem hiding this comment.
One P2 regression found in run-state restoration.
brianstrauch
left a comment
There was a problem hiding this comment.
Two P2 regressions reproduced in normal and streaming runs. All four reproductions pass on the PR's base and fail on this commit.
|
@brianstrauch Both P2 regressions are fixed in df0eb1e and the review threads are resolved. Could you take another look? Added normal/streaming regressions for shared handoff and agent-as-tool targets, nested tool approval/resume, and callback changes to instructions/tools. All 318 tests, lint/type checks, and the package build pass locally. GitHub denied this account permission to submit a formal review request, so requesting re-review here. |
brianstrauch
left a comment
There was a problem hiding this comment.
One remaining P2 regression reproduced in normal and streaming runs. Both reproductions pass on the PR base and fail on df0eb1e. The existing 318 plugin tests and make lint pass.
What was changed
Preserve the target agent reference (
_agent_ref) when copying aHandoffduring Temporal model conversion.Why?
dataclasses.replacedrops thisinit=Falsefield, so the Agents SDK cannot find the target agent when restoring a run or its tool-use history. This can cause resume failures or incorrectly require another tool call after tools have already been used.Checklist
make sync,make lint,make test(306 passed), andmake buildpassed. Regression coverage checks object and direct-agent handoffs in normal and streaming resumes; both object-handoff cases fail before the fix and pass afterward.