Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
Merge remote-tracking branch 'origin/dev' into fix/codex-tool-call-limit-taxonomy
Alfredo Lopez89161a66ce8c
diff --cc desktop-app/ui/src/constants/agents.tsindex 4563d195f,bcb1127bb..b5a58ade5--- a/desktop-app/ui/src/constants/agents.ts+++ b/desktop-app/ui/src/constants/agents.ts@@@ -14,6 -14,9 +14,11 @@@ export const AGENT_ERROR_CODE_LABELS: RLLM_MODEL_NOT_AVAILABLE: 'Model Not Available',LLM_CONTENT_FILTERED: 'Content Filtered',LLM_API_CALL_FAILED: 'Connection Error',+ LLM_TOOL_CALL_LIMIT_EXCEEDED: 'Too Many Tool Calls',+ LLM_CONTEXT_LENGTH_EXCEEDED: 'Conversation Too Long',+ LLM_IMAGE_INPUT_UNSUPPORTED: 'Image Input Unsupported',+ LLM_IMAGE_INPUT_UNKNOWN: 'Image Input Unverified',+ LLM_INVALID_ATTACHMENT: 'Invalid Attachment',+ LLM_MODEL_SELECTION_CONFLICT: 'Model Selection Changed',+ LLM_MODEL_NOT_ALLOWED: 'Model Not Allowed',}diff --cc mcp-host/src/core/errors.tsindex 2452ddba4,644b7634d..a5ca599e2--- a/mcp-host/src/core/errors.ts+++ b/mcp-host/src/core/errors.ts@@@ -30,8 -31,34 +31,36 @@@ export enum LlmErrorCodeRateLimited = 'LLM_RATE_LIMITED',AuthenticationFailed = 'LLM_AUTHENTICATION_FAILED',ModelOverloaded = 'LLM_MODEL_OVERLOADED',+ /** One model response asked for more tool calls than the provider contract allows. */+ ToolCallLimitExceeded = 'LLM_TOOL_CALL_LIMIT_EXCEEDED',+ /**+ * Issue #654 — the selected (provider, model) is known NOT to accept the+ * image carried by this attempt (model evidence `unsupported`, selection+ * policy denial, or a transport path whose serializer would drop it).+ * Terminal: never retryable, never failover-eligible+ * (`classifyFailoverClass` returns null for it).+ */+ ImageInputUnsupported = 'LLM_IMAGE_INPUT_UNSUPPORTED',+ /**+ * Issue #654 — a required datum for the image decision is missing, stale or+ * not yet valid (no evidence, malformed metadata, expired `validUntil`).+ * Terminal for the same reasons as {@link LlmErrorCode.ImageInputUnsupported};+ * text-only requests are unaffected and are never classified with this code.+ */+ ImageInputUnknown = 'LLM_IMAGE_INPUT_UNKNOWN',+ /**+ * Issue #654 — a piggybacked per-session model selection lost the+ * compare-and-swap against the persisted revision, or carried a revision the+ * Host cannot interpret. It says nothing about image capability: the client+ * re-reads the current selection and sends again, so it is RETRYABLE.+ */+ ModelSelectionConflict = 'LLM_MODEL_SELECTION_CONFLICT',+ /**+ * Issue #654 — a piggybacked per-session model selection names a model this+ * Host's allowlist no longer admits. Terminal: retrying the same pick cannot+ * succeed, the user must choose another model.+ */+ ModelNotAllowed = 'LLM_MODEL_NOT_ALLOWED',}export class LlmError extends AgentError {