{"record":{"id":"90ce86eda70ccc50","repo":"zed-industries/zed","slug":"build-ids-may-only-contain-lowercase-letters-numb","errorCode":null,"errorMessage":"build ids may only contain lowercase letters, numbers, '.', '_', and '-'","messagePattern":"build ids may only contain lowercase letters, numbers, '\\.', '_', and '-'","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"warning","filePath":"crates/eval_cli/zed_eval/builds.py","lineNumber":11,"sourceCode":"from __future__ import annotations\n\nimport argparse\nfrom typing import Any\n\nfrom . import source\n\n\ndef validate_build_id(build_id: str | None) -> None:\n    if build_id and source.sanitize_namespace(build_id) != build_id:\n        raise ValueError(\n            \"build ids may only contain lowercase letters, numbers, '.', '_', and '-'\"\n        )\n\n\ndef prepare_build_request(\n    *,\n    base_sha: str | None,\n    patch_path: str | None,\n    build_id: str | None,\n    allow_untracked: bool,\n    require_clean: bool,\n    repo_url: str | None,\n    clean_source: bool = False,\n    source_label: str | None = None,\n    pre_resolved_base_sha: str | None = None,\n) -> dict[str, Any]:\n    validate_build_id(build_id)\n    source_info, patch = source.prepare_build_source(","sourceCodeStart":1,"sourceCodeEnd":29,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/eval_cli/zed_eval/builds.py#L1-L29","documentation":"add_terminal_task bails when is_enabled_in_workspace returns false, i.e. the active workspace is a remote project (SSH, WSL, dev container) where running tasks in the terminal panel is not supported by this Zed build. The check runs before any terminal is created, so the failure is cheap and immediate.","triggerScenarios":"Invoking task spawning through the terminal panel (add_terminal_task) while the workspace is a remote project: is_enabled_in_workspace(workspace, cx) is false, e.g. an SSH or dev-container project in a build without remote task support.","commonSituations":"A keybinding or extension triggers 'run task in terminal' while an SSH/remote project is focused; workflows that were built around local projects moved onto remote dev boxes.","solutions":["Open the project locally instead of through the remote connection when you need terminal tasks","Update Zed — remote terminal support varies by version and is tracked upstream","Rebind task-related keybindings so they only apply to local workspaces"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// Gate task-in-terminal affordances on workspace capability:\nif !is_enabled_in_workspace(workspace, cx) {\n    disable_action(crate::actions::SpawnTerminalTask);\n    return; // never reach add_terminal_task\n}","typeGuard":"fn terminal_tasks_supported(workspace: &Workspace, cx: &App) -> bool {\n    is_enabled_in_workspace(workspace, cx)\n}","tryCatchPattern":null,"preventionTips":["Check is_enabled_in_workspace before showing task/terminal actions so remote workspaces never surface them","Scope task keybindings to local projects via context predicates"],"tags":["terminal","remote","ssh","task"],"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"}