{"record":{"id":"e10cebf09ded608d","repo":"Hmbown/CodeWhale","slug":"unknown-runtime-backend-other-use-tmux-inline","errorCode":null,"errorMessage":"unknown runtime backend `{other}` (use tmux|inline|vm|ci)","messagePattern":"unknown runtime backend `(.+?)` \\(use tmux\\|inline\\|vm\\|ci\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/lane/src/runtime.rs","lineNumber":44,"sourceCode":"}\n\nimpl RuntimeBackendKind {\n    pub fn as_str(self) -> &'static str {\n        match self {\n            Self::Tmux => \"tmux\",\n            Self::Inline => \"inline\",\n            Self::Vm => \"vm\",\n            Self::Ci => \"ci\",\n        }\n    }\n\n    pub fn parse(raw: &str) -> Result<Self> {\n        match raw.trim().to_ascii_lowercase().as_str() {\n            \"tmux\" => Ok(Self::Tmux),\n            \"inline\" => Ok(Self::Inline),\n            \"vm\" => Ok(Self::Vm),\n            \"ci\" => Ok(Self::Ci),\n            other => bail!(\"unknown runtime backend `{other}` (use tmux|inline|vm|ci)\"),\n        }\n    }\n}\n\n/// Inputs for starting a lane under a runtime backend.\n#[derive(Clone)]\npub struct LaneStartSpec {\n    /// Command argv to run inside the backend (e.g. `codewhale exec …`).\n    pub command: Vec<String>,\n    /// Working directory for the command (defaults to worktree or cwd).\n    pub cwd: Option<PathBuf>,\n    /// Process-local runtime overrides. Values are never written into the\n    /// Lane record or command argv; tmux bridges them through a private 0600\n    /// environment file that the detached shell removes before execution.\n    pub environment: Vec<(String, String)>,\n    /// Executable that exposes Codewhale's hidden `lane-log-proxy` command.\n    /// Required by tmux so arbitrary/binary child output is framed as valid\n    /// NDJSON without trusting a shell pipeline.","sourceCodeStart":26,"sourceCodeEnd":62,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/lane/src/runtime.rs#L26-L62","documentation":"RuntimeBackend::parse validates a user-supplied backend name against the four supported backends: tmux, inline, vm, and ci. Any other (case-insensitively trimmed) string is rejected with this error so configuration typos fail fast instead of silently defaulting.","triggerScenarios":"Calling RuntimeBackend::parse with a string that is not tmux/inline/vm/ci, e.g. from a config file value, CLI flag, or environment variable selecting the lane runtime backend.","commonSituations":"Typos in config such as \"tmuxx\", \"TMUX \" with unusual whitespace handled elsewhere, \"docker\" or \"process\" backends that this library does not support; stale config written for an older/other tool version.","solutions":["Set the backend to one of: tmux, inline, vm, ci (case-insensitive).","Fix the typo in the config file, CLI flag, or env var feeding the value into parse().","If you need a backend not in the list, that backend is unsupported by this library; use tmux or inline as a substitute."],"exampleFix":"// before\nlet backend = RuntimeBackend::parse(\"docker\")?;\n// after\nlet backend = RuntimeBackend::parse(\"tmux\")?;","handlingStrategy":"validation","validationCode":"const BACKENDS: [&str; 4] = [\"tmux\", \"inline\", \"vm\", \"ci\"];\nif !BACKENDS.contains(&raw.trim().to_ascii_lowercase().as_str()) { return Err(format!(\"backend {raw:?} not in tmux|inline|vm|ci\")); }","typeGuard":null,"tryCatchPattern":"match RuntimeBackend::parse(raw) { Err(e) => { eprintln!(\"bad backend in config: {e}; falling back to inline\"); RuntimeBackend::Inline } Ok(b) => b }","preventionTips":["Validate the backend string at config-load time, before constructing lanes.","Keep the backend value in one shared constant, not scattered literals.","Surface the allowed values in CLI help/config docs."],"tags":["config","enum-parse","runtime-backend"],"backgroundTag":"invalid-enum-value","analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}