Skip to content

[codex] Stream Codex sub-agents as tool calls#672

Merged
boudra merged 1 commit intomainfrom
codex-subagent-toolcall-streaming
May 2, 2026
Merged

[codex] Stream Codex sub-agents as tool calls#672
boudra merged 1 commit intomainfrom
codex-subagent-toolcall-streaming

Conversation

@boudra
Copy link
Copy Markdown
Collaborator

@boudra boudra commented May 2, 2026

Summary

  • Map Codex collabAgentToolCall items into canonical sub-agent tool_call timeline items.
  • Correlate child Codex thread notifications back to the parent sub-agent tool call.
  • Build sub-agent log and actions from the existing activity curator format so live child activity appears inside the parent tool call detail.

Why

Codex app-server already emits sub-agent lifecycle items and child-thread events, but Paseo was not projecting them as canonical tool calls. That made Codex sub-agent work less visible than Claude task/sub-agent work and caused the parent agent to look idle without a visible in-progress sub-agent call.

Validation

  • npx vitest run packages/server/src/server/agent/activity-curator.test.ts packages/server/src/server/agent/providers/codex/tool-call-mapper.test.ts packages/server/src/server/agent/providers/codex-app-server-agent.test.ts --bail=1
  • npm run lint
  • npm run build --workspace @getpaseo/highlight && npm run typecheck --workspace @getpaseo/server

Note: after rebasing, npm install refreshed dependencies but its prepare hook failed because global core.hooksPath is set to /dev/null. Building the highlight workspace made server typecheck pass.

@boudra boudra marked this pull request as ready for review May 2, 2026 09:08
@boudra boudra merged commit 771f164 into main May 2, 2026
14 checks passed
@boudra boudra deleted the codex-subagent-toolcall-streaming branch May 2, 2026 09:08
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.

1 participant