mirror of
https://github.com/openai/codex.git
synced 2026-09-09 15:58:47 +00:00
## Why Subagent-start facts can arrive before their parent's connection context is recorded, leaving later analytics events without client metadata. ## What changed - Resolve a thread's connection by walking its parent-thread chain when the connection was not captured directly. - Use the resolved connection for subagent setup, tool-call analytics, and completed turn events. ## Testing Extend the subagent analytics test to start the child before the parent context arrives and verify both command-execution and dynamic-tool-call events. GitOrigin-RevId: c4d74a22de34abd6c6c5df1717a49ae0e1a9445d