feat: gate code agent runs server side

This commit is contained in:
John
2026-07-02 07:25:16 +08:00
parent 304a9eaea2
commit e989526886
7 changed files with 73 additions and 2 deletions
+3
View File
@@ -912,6 +912,9 @@ export function createTkmindProxy({
defaultMode: 'chat',
codeToolMode: 'code',
chatInjectsCodeTools: false,
codeRunsEnabled: ['1', 'true', 'yes', 'on'].includes(
String(process.env.MEMIND_AGENT_CODE_RUNS_ENABLED ?? '').trim().toLowerCase(),
),
aiderTimeoutMs: Number(process.env.MEMIND_AIDER_TIMEOUT_MS ?? 600_000),
openhandsTimeoutMs: Number(process.env.MEMIND_OPENHANDS_TIMEOUT_MS ?? 900_000),
},