Skip to content

fix: keep deferred subagent results in timeline order - #30

Merged
tt-a1i merged 1 commit into
mainfrom
codex/fix-subagent-result-timeline
Aug 20, 2026
Merged

fix: keep deferred subagent results in timeline order#30
tt-a1i merged 1 commit into
mainfrom
codex/fix-subagent-result-timeline

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

问题

Subagent 在主 Agent 忙碌期间完成时,结果通过 nextTurn 延迟到下一轮。由于消息同时设置了 display: true,报告会出现在下一条用户消息之后,看起来像是在回应新消息。

修改

  • flush 时先把结果写入可见 transcript,保留真实完成顺序
  • 给模型的 nextTurn / followUp 注入改为 display: false
  • transcript entry 复用现有的 compact/full 渲染逻辑
  • 增加投递顺序和 entry 渲染回归测试

验证

  • bun run check
  • Node tests: 717 passed
  • Vitest: 29 passed

Closes #29

@tt-a1i
tt-a1i merged commit 0820623 into main Aug 20, 2026
4 checks passed
@tt-a1i
tt-a1i deleted the codex/fix-subagent-result-timeline branch August 20, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subagent 延迟结果显示在下一条用户消息之后,造成时间线错位

1 participant