{"record":{"id":"5c0dd1663ec39a04","repo":"n8n-io/n8n","slug":"instance-ai-runtime-sandbox-does-not-support-comma","errorCode":null,"errorMessage":"Instance AI runtime sandbox does not support command execution.","messagePattern":"Instance AI runtime sandbox does not support command execution\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@n8n/instance-ai/src/workspace/lazy-runtime-workspace.ts","lineNumber":334,"sourceCode":"\t\tthis.syncStatus(sandbox);\n\t}\n\n\toverride async destroy(): Promise<void> {\n\t\tawait this.resolver.destroyResolvedWorkspace();\n\t}\n\n\tgetDefaultCommandEnv(): NodeJS.ProcessEnv {\n\t\treturn this.resolver.current?.sandbox?.getDefaultCommandEnv?.() ?? {};\n\t}\n\n\toverride async executeCommand(\n\t\tcommand: string,\n\t\targs: string[] = [],\n\t\toptions?: ExecuteCommandOptions,\n\t): Promise<CommandResult> {\n\t\tconst sandbox = await this.getSandbox(options?.abortSignal);\n\t\tif (!sandbox.executeCommand) {\n\t\t\tthrow new Error('Instance AI runtime sandbox does not support command execution.');\n\t\t}\n\n\t\tconst defaultEnv = sandbox.getDefaultCommandEnv?.();\n\t\ttry {\n\t\t\treturn await sandbox.executeCommand(command, args, {\n\t\t\t\t...options,\n\t\t\t\t...(defaultEnv ? { env: { ...defaultEnv, ...options?.env } } : {}),\n\t\t\t});\n\t\t} finally {\n\t\t\tthis.syncStatus(sandbox);\n\t\t}\n\t}\n\n\toverride getInstructions(): string {\n\t\t// Prefer the caller-provided stable text: it is returned regardless of\n\t\t// resolution state so the agent's cached prompt prefix stays byte-stable\n\t\t// across rebuilds/resumes. Branching on the live sandbox (which is only\n\t\t// resolved once a workspace tool runs in this rebuilt instance) would","sourceCodeStart":316,"sourceCodeEnd":352,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/instance-ai/src/workspace/lazy-runtime-workspace.ts#L316-L352","documentation":"Error \"Instance AI runtime sandbox does not support command execution.\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/instance-ai/src/workspace/lazy-runtime-workspace.ts:334 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}