{"record":{"id":"a4f3767a8d718a4c","repo":"zed-industries/zed","slug":"missing-command-after-extraction","errorCode":null,"errorMessage":"Missing command {} after extraction","messagePattern":"Missing command (.+?) after extraction","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/agent_server_store.rs","lineNumber":1293,"sourceCode":"                            &file_name,\n                        )\n                        .await?;\n                    }\n                }\n            }\n\n            let cmd = &target_config.cmd;\n\n            let cmd_path = if cmd == \"node\" {\n                node_runtime.binary_path().await?\n            } else {\n                if cmd.contains(\"..\") {\n                    anyhow::bail!(\"command path cannot contain '..': {}\", cmd);\n                }\n\n                if cmd.starts_with(\"./\") || cmd.starts_with(\".\\\\\") {\n                    let cmd_path = version_dir.join(&cmd[2..]);\n                    anyhow::ensure!(\n                        fs.is_file(&cmd_path).await,\n                        \"Missing command {} after extraction\",\n                        cmd_path.to_string_lossy()\n                    );\n                    cmd_path\n                } else {\n                    anyhow::bail!(\"command must be relative (start with './'): {}\", cmd);\n                }\n            };\n\n            cx.background_spawn({\n                let fs = fs.clone();\n                let dir = dir.clone();\n                let version_dir = version_dir.clone();\n                async move {\n                    remove_stale_versioned_archive_cache_dirs(fs, &dir, &version_dir)\n                        .await\n                        .log_err();","sourceCodeStart":1275,"sourceCodeEnd":1311,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/project/src/agent_server_store.rs#L1275-L1311","documentation":"After an agent server archive was downloaded and extracted, the configured `cmd` executable was not present at its expected location under the version directory. The artifact is incomplete, the cmd path in the registry config is wrong, or extraction laid files out differently.","triggerScenarios":"Thrown at crates/project/src/agent_server_store.rs:1293 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the `cmd` field in the registry/server configuration matches the artifact's actual layout","Re-download the artifact in case extraction was incomplete","Check that the archive's internal directory structure matches what the extractor expects"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9d272b036335401f339d024ea94968fd51016c40","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}