{"record":{"id":"a0dbf3803db298c3","repo":"tinyhumansai/openhuman","slug":"unsupported-runtime-kind-other","errorCode":null,"errorMessage":"Unsupported runtime kind: {other}","messagePattern":"Unsupported runtime kind: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/host_runtime.rs","lineNumber":207,"sourceCode":"        // No `pipefail` wrapper here (unlike NativeRuntime): the in-container\n        // shell is image-dependent (busybox/dash/bash) so we can't assume\n        // `set -o pipefail` is supported. Container commands keep POSIX `sh`.\n        cmd.arg(\"sh\").arg(\"-lc\").arg(command);\n        Ok(cmd)\n    }\n}\n\n/// Build the runtime adapter for the configured `kind`. `hide_window` comes\n/// from `[shell] hide_window` and only affects the native runtime on Windows\n/// (the docker runtime spawns the `docker` client, out of scope here).\npub fn create_runtime(\n    config: &RuntimeConfig,\n    hide_window: bool,\n) -> anyhow::Result<Box<dyn RuntimeAdapter>> {\n    match config.kind.as_str() {\n        \"native\" => Ok(Box::new(NativeRuntime::with_hide_window(hide_window))),\n        \"docker\" => Ok(Box::new(DockerRuntime::new(config.docker.clone()))),\n        other => anyhow::bail!(\"Unsupported runtime kind: {other}\"),\n    }\n}\n\n#[cfg(test)]\nmod tests {\n    use super::*;\n    use crate::openhuman::config::{DockerRuntimeConfig, RuntimeConfig};\n\n    #[test]\n    fn native_runtime_reports_capabilities_and_shell_command() {\n        let runtime = NativeRuntime::new();\n        assert_eq!(runtime.name(), \"native\");\n        assert!(runtime.has_shell_access());\n        assert!(runtime.has_filesystem_access());\n        assert!(runtime.supports_long_running());\n        assert_eq!(runtime.memory_budget(), 0);\n        assert!(runtime.storage_path().ends_with(\"openhuman/runtime\"));\n","sourceCodeStart":189,"sourceCodeEnd":225,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/a221052e0df5b1f7598fceba7329fd1af95d6699/src/openhuman/agent/host_runtime.rs#L189-L225","documentation":"Error \"Unsupported runtime kind: {other}\" thrown in tinyhumansai/openhuman.","triggerScenarios":"Thrown at src/openhuman/agent/host_runtime.rs:207 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":"a221052e0df5b1f7598fceba7329fd1af95d6699","analyzedAt":"2026-08-16T12:47:06.542Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}