fix: associate computer use recordings with chats (#24471)

Fixes
[CODAGT-195](https://linear.app/codercom/issue/CODAGT-195/agent-uploaded-recordings-are-missing-chat-file-links-entries).
This commit is contained in:
Hugo Dutka
2026-04-17 13:47:59 +02:00
committed by GitHub
parent 73b5058923
commit db8191277b
3 changed files with 284 additions and 42 deletions
+1 -1
View File
@@ -373,7 +373,7 @@ func (p *Server) subagentTools(
stopCtx, stopCancel := context.WithTimeout(context.WithoutCancel(ctx), 90*time.Second)
defer stopCancel()
recResult = p.stopAndStoreRecording(stopCtx, agentConn,
recordingID, parent.OwnerID, parent.WorkspaceID)
recordingID, parent.OwnerID, parent.WorkspaceID, parent.ID)
}
resp := map[string]any{
"chat_id": targetChatID.String(),