zed-industries/zed · error · ValueError
unknown judge preset
Error message
unknown judge preset '{name}' (valid: {valid}) What it means
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.
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
Defensive patterns
Strategy: retry
Try / catch
match ensure_connected(&workspace, cx).await {
Err(err) if err.to_string() == "error connecting" => {
// Status stream closed mid-connect: rebuild the client and retry once.
refresh_call_client(cx);
ensure_connected(&workspace, cx).await
}
Err(err) if matches!(err.downcast_ref(), Some(ErrorCode::SignedOut)) => {
prompt_sign_in(); // typed error — different recovery path
Err(err)
}
result => result,
} Prevention
- 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
When it happens
Trigger: 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.
Common situations: 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.
Related errors
- already subscribed to entity
- archive links are not supported
- can't reconnect to room: client failed to re-establish…
- connecting to host timed out
- failed to connect
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/3bfff467c7999529.
Report an issue: GitHub.
Appendix: source
Thrown at crates/eval_cli/zed_eval/config.py:152
"baseten:deepseek-v4-pro": "baseten/deepseek-ai/DeepSeek-V4-Pro",
"baseten:deepseek": "baseten/deepseek-ai/DeepSeek-V4-Pro",
}
def orchestration_info() -> dict[str, str]:
return {
"controller_image_recipe_version": CONTROLLER_IMAGE_RECIPE_VERSION,
"harbor_version": HARBOR_VERSION,
"modal_client_version": MODAL_VERSION,
}
def get_judge(name: str) -> JudgeConfig:
try:
return JUDGES[name]
except KeyError as error:
valid = ", ".join(sorted(JUDGES))
raise ValueError(f"unknown judge preset '{name}' (valid: {valid})") from error
def canonical_part(part: str) -> str:
normalized = part.strip().lower()
if normalized in ("qna", "rf", "tw"):
return normalized
valid = ", ".join(("qna", "rf", "tw"))
raise ValueError(f"unknown SWE-Atlas part '{part}' (valid: {valid})")
def resolve_model_preset(model: str) -> str:
return MODEL_PRESETS.get(model, model)
View on GitHub (pinned to f4178619ac)