feat(sandbox): default Network Sandbox to off and add settings toggle switch (#304)

This commit is contained in:
Yiling-J
2026-08-13 20:50:34 +08:00
committed by GitHub
parent 7f185ca23c
commit 9d50301a43
28 changed files with 372 additions and 39 deletions
+2 -2
View File
@@ -896,7 +896,7 @@ export async function getAgentChatContextActivity(params: {
const sandbox = await prisma.sandbox.findUnique({
where: { teamId: params.teamId },
})
const allowedDomains = sandbox?.allowedDomains || []
const allowedDomains = sandbox?.networkSandboxEnabled ? sandbox.allowedDomains : ['*']
return {
agent,
@@ -980,7 +980,7 @@ export async function getAgentAutofillContextActivity(params: {
const sandbox = await prisma.sandbox.findUnique({
where: { teamId: params.teamId },
})
const allowedDomains = sandbox?.allowedDomains || []
const allowedDomains = sandbox?.networkSandboxEnabled ? sandbox.allowedDomains : ['*']
return {
agent: agentWithDetails,