#1644·adk-go

agenttool: 子状态更新未到达父级会话

作者: ktsoator创建于 2026年9月25日更新于 2026年9月25日
标签bug

Describe the Bug

An agent called through agenttool can read the parent's state, but its state updates do not reach the parent. I reproduced this with both OutputKey and a callback calling ctx.State().Set(...).

Steps to Reproduce

  1. Give the child agent an OutputKey of child_result.
  2. Call it through agenttool and let it return "done".
  3. Read child_result from the parent tool context.