{"record":{"id":"3bfff467c7999529","repo":"zed-industries/zed","slug":"unknown-judge-preset-name-valid-valid","errorCode":null,"errorMessage":"unknown judge preset '{name}' (valid: {valid})","messagePattern":"unknown judge preset '(.+?)' \\(valid: (.+?)\\)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"crates/eval_cli/zed_eval/config.py","lineNumber":152,"sourceCode":"    \"baseten:deepseek-v4-pro\": \"baseten/deepseek-ai/DeepSeek-V4-Pro\",\n    \"baseten:deepseek\": \"baseten/deepseek-ai/DeepSeek-V4-Pro\",\n}\n\n\ndef orchestration_info() -> dict[str, str]:\n    return {\n        \"controller_image_recipe_version\": CONTROLLER_IMAGE_RECIPE_VERSION,\n        \"harbor_version\": HARBOR_VERSION,\n        \"modal_client_version\": MODAL_VERSION,\n    }\n\n\ndef get_judge(name: str) -> JudgeConfig:\n    try:\n        return JUDGES[name]\n    except KeyError as error:\n        valid = \", \".join(sorted(JUDGES))\n        raise ValueError(f\"unknown judge preset '{name}' (valid: {valid})\") from error\n\n\ndef canonical_part(part: str) -> str:\n    normalized = part.strip().lower()\n    if normalized in (\"qna\", \"rf\", \"tw\"):\n        return normalized\n    valid = \", \".join((\"qna\", \"rf\", \"tw\"))\n    raise ValueError(f\"unknown SWE-Atlas part '{part}' (valid: {valid})\")\n\n\ndef resolve_model_preset(model: str) -> str:\n    return MODEL_PRESETS.get(model, model)\n","sourceCodeStart":134,"sourceCodeEnd":165,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/eval_cli/zed_eval/config.py#L134-L165","documentation":"While establishing a collaboration call, Zed polls the client's status broadcast until it reaches Connected. If that stream ends (recv() returns None) before a terminal status arrives — the client was dropped, replaced, or torn down mid-connect — it bails with 'error connecting'. This is distinct from SignedOut/AuthenticationError, which return a typed ErrorCode::SignedOut.","triggerScenarios":"client_status.recv().await yields None while the loop is still in Connecting/Authenticating/Reconnecting states: the status channel closed because the call client was dropped or restarted concurrently, or the session tore down during connect.","commonSituations":"Network drop right at sign-in; the collab client being re-created (re-auth) while a call setup is in flight; app shutdown racing an incoming call.","solutions":["Retry the action that initiated the connection — a fresh client usually resolves it","Check network stability and firewall rules toward the collaboration server","Sign in again if the session was interrupted mid-authentication","If it persists across retries, capture logs and report upstream — the status channel ending early is abnormal"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"match ensure_connected(&workspace, cx).await {\n    Err(err) if err.to_string() == \"error connecting\" => {\n        // Status stream closed mid-connect: rebuild the client and retry once.\n        refresh_call_client(cx);\n        ensure_connected(&workspace, cx).await\n    }\n    Err(err) if matches!(err.downcast_ref(), Some(ErrorCode::SignedOut)) => {\n        prompt_sign_in(); // typed error — different recovery path\n        Err(err)\n    }\n    result => result,\n}","preventionTips":["Treat 'error connecting' as transient: recreate the client and retry rather than surfacing it raw","Distinguish ErrorCode::SignedOut from stream closure — they need different user actions","Bound retries with the client's CONNECTION_TIMEOUT so a dead network cannot hang the UI"],"tags":["collab","connection","status-stream"],"backgroundTag":"connection-closed","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"}