From 24787caf343e1f92d04d4bf74d640b78ceee79e5 Mon Sep 17 00:00:00 2001 From: HarshitPal25 Date: Sat, 9 May 2026 22:35:59 +0530 Subject: [PATCH] fix: add missing workloadName for CodeInterpreter sandboxes In buildSandboxByCodeInterpreter, the buildSandboxParams never set the workloadName field, causing the WorkloadNameLabelKey label to be empty on all CodeInterpreter Sandbox objects. The AgentRuntime path (buildSandboxByAgentRuntime) correctly sets workloadName. This fix ensures CodeInterpreter sandboxes carry the same WorkloadNameLabelKey label as AgentRuntime sandboxes, which is used for label-based queries and debugging. Signed-off-by: Mahil Patel --- pkg/workloadmanager/workload_builder.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/workloadmanager/workload_builder.go b/pkg/workloadmanager/workload_builder.go index 86956e04..4abe59de 100644 --- a/pkg/workloadmanager/workload_builder.go +++ b/pkg/workloadmanager/workload_builder.go @@ -425,6 +425,7 @@ func buildSandboxByCodeInterpreter(namespace string, codeInterpreterName string, buildParams := &buildSandboxParams{ sandboxName: sandboxName, namespace: namespace, + workloadName: codeInterpreterName, sessionID: sessionID, podSpec: podSpec, podLabels: codeInterpreterObj.Spec.Template.Labels,