mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-08 08:04:32 +00:00
Sidechain (subagent) session cost never reached the by-PR view, so a session orchestrated on one model with subagent lanes on another showed only the parent model on every PR row. Fold each sidechain's cost, calls, models, and categories into the parent turn that spawned it, so it inherits that turn's PR set under the existing turn-level state machine. Linkage, in priority order: the spawn result's toolUseResult.agentId pairs the child's agent id with the Agent/Task tool_use id that launched it (recorded per turn), which is the true launch point and wins even when the child's first activity landed during a later turn; else the child's first-activity timestamp is bucketed into the containing turn span; else the child folds into the parent's unattributed spend. Children of parents that referenced no PR, and orphans whose parent is absent from the scan, contribute nothing, unchanged. Cache v6 to v7 (neither shipped, so one combined bump from v5): per-turn spawnToolUseIds, per-file parentSessionId and agentSpawnLinks; the validator and the append/compact paths thread them like prRefs. By-PR footers now count parents plus folded subagent runs and the payload gains an additive subagentSessions field. distinctCost now includes folded subagent spend, documented in the payload comment. |
||
|---|---|---|
| .. | ||
| budget.ts | ||
| build.ts | ||
| format.test.ts | ||
| format.ts | ||
| ipc.ts | ||
| modelSeries.ts | ||
| motion.test.tsx | ||
| motion.ts | ||
| pageVisibility.test.ts | ||
| pageVisibility.ts | ||
| period.test.ts | ||
| period.ts | ||
| refreshCadence.test.ts | ||
| refreshCadence.tsx | ||
| testMatchMedia.ts | ||
| toast.ts | ||
| types.ts | ||