zed-industries/zed · warning · ValueError

archive links are not supported

Error message

archive links are not supported: {member.name}

What it means

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.

Solutions

  1. Leave the collaborative session or open the project solo to use the terminal
  2. Update Zed, since terminal support in collab/remote sessions is version-dependent
  3. Disable or rebind terminal keybindings while participating as a guest
Defensive patterns

Strategy: validation

Validate before calling

// Hide 'new terminal' UI while collab terminal support is off:
if !is_enabled_in_workspace(workspace, cx) {
    window.disable_action(zed_actions::terminal::NewTerminal);
    return;
}

Type guard

fn shell_terminal_supported(workspace: &Workspace, cx: &App) -> bool {
    is_enabled_in_workspace(workspace, cx)
}

Prevention

When it happens

Trigger: Calling add_terminal_shell (new terminal / split terminal) while the workspace is a collaborative project where is_enabled_in_workspace is false.

Common situations: A guest in a shared Zed room presses the new-terminal keybinding; collaborative sessions over remote projects where terminal support is disabled.

Related errors


AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20). Data as JSON: /api/errors/a4d807a0e8a7e71a. Report an issue: GitHub.

Appendix: source

Thrown at crates/eval_cli/zed_eval/common.py:48

def write_json(path: pathlib.Path, data: dict[str, Any]) -> None:
    path.parent.mkdir(parents=True, exist_ok=True)
    path.write_text(json.dumps(data, indent=2, sort_keys=True) + "\n")


def load_json(path: pathlib.Path) -> dict[str, Any] | None:
    try:
        data = json.loads(path.read_text())
    except (OSError, json.JSONDecodeError):
        return None
    return data if isinstance(data, dict) else None


def safe_extract_archive(archive: tarfile.TarFile, destination: pathlib.Path) -> None:
    destination = destination.resolve()
    members = archive.getmembers()
    for member in members:
        if member.issym() or member.islnk():
            raise ValueError(f"archive links are not supported: {member.name}")
        target = (destination / member.name).resolve()
        if destination != target and destination not in target.parents:
            raise ValueError(f"archive member escapes destination: {member.name}")
    archive.extractall(destination, members=members)


def command_exists(name: str) -> bool:
    return shutil.which(name) is not None


def run_command(
    command: list[str], *, capture: bool = False
) -> subprocess.CompletedProcess[str]:
    return subprocess.run(command, check=True, text=True, capture_output=capture)


def dedupe_preserving_order(values: list[str]) -> list[str]:
    seen = set()

View on GitHub (pinned to f4178619ac)