{"record":{"id":"347be00825eb082e","repo":"block/buzz","slug":"pi-launch-overrides-are-unsupported-on-this-platfo","errorCode":null,"errorMessage":"Pi launch overrides are unsupported on this platform","messagePattern":"Pi launch overrides are unsupported on this platform","errorType":"exception","errorClass":"io::Error (Unsupported)","httpStatus":null,"severity":"error","filePath":"crates/buzz-acp/src/pi_launcher.rs","lineNumber":232,"sourceCode":"        \"@echo off\\r\\n\\\"{}\\\"{} --skill \\\"{}\\\" %*\\r\\nexit /b %ERRORLEVEL%\\r\\n\",\n        batch_escape(pi_command),\n        system_prompt_arg,\n        batch_escape(managed_skills_dir),\n    ))\n}\n\n#[cfg(windows)]\nfn batch_escape(value: &str) -> String {\n    value.replace('%', \"%%\").replace('\"', \"\\\"\\\"\")\n}\n\n#[cfg(not(any(unix, windows)))]\nfn launcher_script(\n    _pi_command: &str,\n    _prompt_path: Option<&Path>,\n    _managed_skills_dir: &Path,\n) -> io::Result<String> {\n    Err(io::Error::new(\n        io::ErrorKind::Unsupported,\n        \"Pi launch overrides are unsupported on this platform\",\n    ))\n}\n\n#[cfg(test)]\nmod tests {\n    use super::*;\n\n    #[test]\n    fn non_pi_adapter_keeps_base_prompt_for_acp_delivery() {\n        let base = Some(\"Buzz base\".to_string());\n        let (prepared, remaining) =\n            PiLaunchOverride::prepare(\"goose\", base.clone(), Path::new(\"/unused/skills\"), true)\n                .expect(\"prepare\");\n        assert!(prepared.is_none());\n        assert_eq!(remaining, base);\n    }","sourceCodeStart":214,"sourceCodeEnd":250,"githubUrl":"https://github.com/block/buzz/blob/dad5a33865fc81a2e55b3b60746632f615ec1e3a/crates/buzz-acp/src/pi_launcher.rs#L214-L250","documentation":"Raised in launcher_script's cfg(not(any(unix, windows))) fallback: the host platform is neither Unix nor Windows, so no launcher-script backend (POSIX sh script or Windows batch file) exists for Pi launch overrides. This is a compile-time-selected sentinel returning io::ErrorKind::Unsupported — it fires on exotic targets (e.g. wasm, other embedded OSes) when a Pi agent launch override is requested.","triggerScenarios":"Thrown at crates/buzz-acp/src/pi_launcher.rs:232 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the managed Pi agent on a supported platform (Unix or Windows)","Remove/disable the Pi launch override (adapter) on unsupported targets so the plain ACP launch path is used","Contribute a launcher backend for the target platform in crates/buzz-acp/src/pi_launcher.rs"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"dad5a33865fc81a2e55b3b60746632f615ec1e3a","analyzedAt":"2026-09-05T18:13:50.666Z","contentChangedAt":"2026-09-05T18:13:50.666Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}