延续的原生子智能体
此夹具记录 Codex 从稍后的父回合(turn)继续一个原生子智能体。
text
Parent app thread / Codex thread A
Turn 1: spawn one subagent
|
+-- spawnAgent
|
v
Child app thread / Codex thread B
Turn 1: initial prompt
Assistant: initial subagent response
Turn 2: @hooke continue the same subagent
|
+-- resumeAgent + sendInput
|
v
Child app thread / Codex thread B
Turn 2: continuation prompt
Assistant: continued subagent response原来的父级 subagent 条目只代表派生这一段生命周期。它必须 保持已完成,并保留第一次的结果,同时子对话线程(thread)继续累积后续的 对话回合。