{"record":{"id":"dc64b80f12aef5c9","repo":"BigPizzaV3/CodexPlusPlus","slug":"watcher-install-is-only-supported-on-windows","errorCode":null,"errorMessage":"watcher install is only supported on Windows","messagePattern":"watcher install is only supported on Windows","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/codex-plus-core/src/watcher.rs","lineNumber":171,"sourceCode":"        .collect()\n}\n\n#[cfg(windows)]\npub fn install_watcher(launcher_path: &Path, debug_port: u16) -> anyhow::Result<()> {\n    let plan = build_watcher_install_plan(launcher_path.to_path_buf(), debug_port);\n    crate::windows_integration::set_current_user_string_value(\n        WATCHER_RUN_KEY,\n        &plan.run_value_name,\n        &plan.run_value,\n    )?;\n    create_startup_shortcut(launcher_path, &plan.shortcut_arguments)?;\n    spawn_launcher(launcher_path, debug_port);\n    Ok(())\n}\n\n#[cfg(not(windows))]\npub fn install_watcher(_launcher_path: &Path, _debug_port: u16) -> anyhow::Result<()> {\n    anyhow::bail!(\"watcher install is only supported on Windows\")\n}\n\n#[cfg(windows)]\npub fn uninstall_watcher() -> anyhow::Result<()> {\n    let _ =\n        crate::windows_integration::delete_current_user_value(WATCHER_RUN_KEY, WATCHER_RUN_NAME);\n    if let Some(shortcut) = startup_shortcut_path() {\n        let _ = std::fs::remove_file(shortcut);\n    }\n    stop_launcher_processes();\n    Ok(())\n}\n\n#[cfg(not(windows))]\npub fn uninstall_watcher() -> anyhow::Result<()> {\n    Ok(())\n}\n","sourceCodeStart":153,"sourceCodeEnd":189,"githubUrl":"https://github.com/BigPizzaV3/CodexPlusPlus/blob/1f431ae49b57b3055e0e6845ba6156c6b4232b4d/crates/codex-plus-core/src/watcher.rs#L153-L189","documentation":"Error \"watcher install is only supported on Windows\" thrown in BigPizzaV3/CodexPlusPlus.","triggerScenarios":"Thrown at crates/codex-plus-core/src/watcher.rs:171 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":"1f431ae49b57b3055e0e6845ba6156c6b4232b4d","analyzedAt":"2026-08-16T20:54:18.598Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}