fix(office): preserve cache split, cost provenance, and turn_id on cost events (#2606)

Co-authored-by: nova28 <17953305+nova28@users.noreply.github.com>
Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
This commit is contained in:
nova28
2026-08-16 02:33:52 +08:00
committed by GitHub
parent e372b3535c
commit 00994cf406
41 changed files with 3016 additions and 170 deletions
@@ -344,6 +344,7 @@ type ExecutorCreateRequest struct {
TaskEnvironmentID string // Env this execution belongs to (shared across sessions in same task)
AgentProfileID string
OfficeAgentProfileID string
PromptTurnID string
WorkspacePath string
WorkspaceSourceRoots []string
Protocol string
@@ -446,6 +447,7 @@ func (ri *ExecutorInstance) ToAgentExecution(req *ExecutorCreateRequest) *AgentE
TaskEnvironmentID: req.TaskEnvironmentID,
AgentProfileID: req.AgentProfileID,
OfficeAgentProfileID: req.OfficeAgentProfileID,
promptTurnID: req.PromptTurnID,
AgentID: agentID,
ContainerID: ri.ContainerID,
ContainerIP: ri.ContainerIP,