diff --git a/api/server/services/ToolService.js b/api/server/services/ToolService.js index 6994c106d3a..3afc2ba13ef 100644 --- a/api/server/services/ToolService.js +++ b/api/server/services/ToolService.js @@ -2280,6 +2280,7 @@ async function loadToolsForExecution({ authHeaders, baseUrl: codeExecutionContext.baseUrl, workspaceId: codeExecutionContext.codeWorkspace.workspaceId, + environment: codeExecutionContext.codeWorkspace.environment, gitIdentity: agent?.git_identity, maxTimeoutMs: resolveAttachedWorkspaceCommandTimeoutMax( codeExecutionContext.codeEnvironmentConfigSchema, diff --git a/client/src/components/Chat/Input/CodeWorkspaceMenu.tsx b/client/src/components/Chat/Input/CodeWorkspaceMenu.tsx index d71265f96c8..783f1f00a2e 100644 --- a/client/src/components/Chat/Input/CodeWorkspaceMenu.tsx +++ b/client/src/components/Chat/Input/CodeWorkspaceMenu.tsx @@ -123,6 +123,13 @@ function EnvironmentWorkspaces({ {descriptor.name && (

{descriptor.id}

)} + {(descriptor.environment?.repo || descriptor.environment?.ref) && ( +

+ {[descriptor.environment.repo, descriptor.environment.ref] + .filter(Boolean) + .join(' · ')} +

+ )} {selected && (