Skip to content

fix: support current Codex subagent activity events - #42

Draft
yunhungo wants to merge 1 commit into
langfuse:mainfrom
yunhungo:agent/support-sub-agent-activity
Draft

fix: support current Codex subagent activity events#42
yunhungo wants to merge 1 commit into
langfuse:mainfrom
yunhungo:agent/support-sub-agent-activity

Conversation

@yunhungo

@yunhungo yunhungo commented Aug 7, 2026

Copy link
Copy Markdown

Summary

  • recognize current Codex sub_agent_activity events with kind: started and agent_thread_id
  • preserve the legacy collab_agent_spawn_end schema and deduplicate child thread IDs
  • add regression coverage proving a child rollout and its exec_command action are nested under the parent trace

Root cause

Codex now emits successful subagent starts as sub_agent_activity, while the resolver only recognized collab_agent_spawn_end. The child rollout existed on disk but its thread ID was never collected, so it was not resolved into the parent trace.

Validation

  • pnpm exec vitest run plugins/tracing/test/parse.test.ts plugins/tracing/test/trace.test.ts (20 passed)
  • NODE_OPTIONS=--no-warnings pnpm test (37 passed)
  • NODE_OPTIONS=--no-warnings pnpm lint

Fixes #41

@CLAassistant

CLAassistant commented Aug 7, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

Support new sub_agent_activity events when resolving subagent traces

2 participants