{"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":"The sandbox object resolved by the runtime workspace has no executeCommand method, so this deployment's sandbox backend does not support shell command execution. The guard fires in executeCommand before any command runs; filesystem-based APIs are the only supported I/O path here.","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":["Use filesystem read/write APIs instead of shell commands","Enable a command-execution-capable sandbox backend on the instance"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","contentChangedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}