{"record":{"id":"a4d807a0e8a7e71a","repo":"zed-industries/zed","slug":"archive-links-are-not-supported-member-name","errorCode":null,"errorMessage":"archive links are not supported: {member.name}","messagePattern":"archive links are not supported: (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"warning","filePath":"crates/eval_cli/zed_eval/common.py","lineNumber":48,"sourceCode":"def write_json(path: pathlib.Path, data: dict[str, Any]) -> None:\n    path.parent.mkdir(parents=True, exist_ok=True)\n    path.write_text(json.dumps(data, indent=2, sort_keys=True) + \"\\n\")\n\n\ndef load_json(path: pathlib.Path) -> dict[str, Any] | None:\n    try:\n        data = json.loads(path.read_text())\n    except (OSError, json.JSONDecodeError):\n        return None\n    return data if isinstance(data, dict) else None\n\n\ndef safe_extract_archive(archive: tarfile.TarFile, destination: pathlib.Path) -> None:\n    destination = destination.resolve()\n    members = archive.getmembers()\n    for member in members:\n        if member.issym() or member.islnk():\n            raise ValueError(f\"archive links are not supported: {member.name}\")\n        target = (destination / member.name).resolve()\n        if destination != target and destination not in target.parents:\n            raise ValueError(f\"archive member escapes destination: {member.name}\")\n    archive.extractall(destination, members=members)\n\n\ndef command_exists(name: str) -> bool:\n    return shutil.which(name) is not None\n\n\ndef run_command(\n    command: list[str], *, capture: bool = False\n) -> subprocess.CompletedProcess[str]:\n    return subprocess.run(command, check=True, text=True, capture_output=capture)\n\n\ndef dedupe_preserving_order(values: list[str]) -> list[str]:\n    seen = set()","sourceCodeStart":30,"sourceCodeEnd":66,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/eval_cli/zed_eval/common.py#L30-L66","documentation":"add_terminal_shell_internal bails when is_enabled_in_workspace returns false for a collaborative (multiplayer) workspace: creating a new terminal shell is not supported while the project is shared. The guard runs at the start of the spawned task, before the terminal is created.","triggerScenarios":"Calling add_terminal_shell (new terminal / split terminal) while the workspace is a collaborative project where is_enabled_in_workspace is false.","commonSituations":"A guest in a shared Zed room presses the new-terminal keybinding; collaborative sessions over remote projects where terminal support is disabled.","solutions":["Leave the collaborative session or open the project solo to use the terminal","Update Zed, since terminal support in collab/remote sessions is version-dependent","Disable or rebind terminal keybindings while participating as a guest"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// Hide 'new terminal' UI while collab terminal support is off:\nif !is_enabled_in_workspace(workspace, cx) {\n    window.disable_action(zed_actions::terminal::NewTerminal);\n    return;\n}","typeGuard":"fn shell_terminal_supported(workspace: &Workspace, cx: &App) -> bool {\n    is_enabled_in_workspace(workspace, cx)\n}","tryCatchPattern":null,"preventionTips":["Evaluate is_enabled_in_workspace when the panel renders, not only at spawn time","In collab sessions, communicate the restriction in the panel empty state instead of an error toast"],"tags":["terminal","collab","remote"],"backgroundTag":"feature-unsupported-remote","analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}