The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed app/src/lib/userErrors/classify.ts,app/src/lib/userErrors/report.ts
Steven Enamakel5d35ae25b0ee
diff --git a/app/src/lib/userErrors/classify.ts b/app/src/lib/userErrors/classify.tsindex 82f95a04a3..22d7da0b21 100644--- a/app/src/lib/userErrors/classify.ts+++ b/app/src/lib/userErrors/classify.ts@@ -34,65 +34,6 @@ export interface RuntimeErrorSignal {provider?: string;}-/**- * The durable form of the corrupt-store notice (openhuman#5820).- *- * Same kind, scope and therefore the same descriptor id as the live- * `memory_store_corrupt` socket broadcast, so the two paths collapse into- * one NoticeCenter entry: the socket reaches a connected renderer instantly,- * and the status poll replays it for a renderer that was not connected when- * the quarantine happened (a boot-time integrity check). `null` once the- * user has re-synced — the caller resolves the entry then.- */-export function classifyMemoryQuarantine(- quarantine: { resynced: boolean } | null | undefined-): UserErrorDescriptor | null {- if (!quarantine || quarantine.resynced) return null;- return {- id: userErrorId('memory_store_corrupt', 'memory'),- kind: 'memory_store_corrupt',- severity: 'error',- scope: 'memory',- sourceDomain: 'memory',- titleKey: 'userErrors.memoryStoreCorrupt.title',- bodyKey: 'userErrors.memoryStoreCorrupt.body',- action: 'open_memory_sync',- };-}--/**- * #5324: the memory pipeline's typed `budget_exhausted` cause, promoted to a- * first-class user-actionable error.- *- * Unlike the classifiers below this takes the core's stable `FailureCode`- * directly rather than pattern-matching prose — the memory pipeline already- * emits a typed cause on `first_blocking_cause`, so there is nothing to guess.- * That is the end state the text matchers below are migrating toward.- *- * Scoped to `workspace` (not `chat`) so a memory outage and a chat outage- * dedupe as separate entries. They have different fixes, and a user can hit- * both at once off the same exhausted budget.- *- * @param failureCode The `first_blocking_cause.code` from- * `memory_tree_pipeline_status`.- * @returns A descriptor when the cause is user-actionable, else `null`.- */-export function classifyMemoryPipelineFailure(- failureCode: string | null | undefined-): UserErrorDescriptor | null {- if (failureCode !== 'budget_exhausted') return null;- return {- id: userErrorId('memory_budget_exhausted', 'workspace'),- kind: 'memory_budget_exhausted',- severity: 'warning',- scope: 'workspace',- sourceDomain: 'memory_tree',- titleKey: 'userErrors.memoryBudgetExhausted.title',- bodyKey: 'userErrors.memoryBudgetExhausted.body',- action: 'open_embeddings_settings',- };-}-/*** A third-party integration is failing, so the connection state on screen is* stale (#composio).@@ -243,28 +184,6 @@ export function classifyUserActionableError(};}- // The memory-tree store was corrupt and has been quarantined + rebuilt- // empty (openhuman#5820). Token-only on purpose: the only producer is the- // core's `STORE_CORRUPT_KIND` broadcast, and the underlying SQLite prose- // ("database disk image is malformed") also appears in raw logs other- // domains relay — promoting prose here could turn an unrelated relay into- // a "your memory was quarantined" panel entry.- if (text.includes('memory_store_corrupt')) {- return {- id: userErrorId('memory_store_corrupt', scope, signal.provider),- kind: 'memory_store_corrupt',- severity: 'error',- scope,- sourceDomain: signal.sourceDomain,- provider: signal.provider,- titleKey: 'userErrors.memoryStoreCorrupt.title',- bodyKey: 'userErrors.memoryStoreCorrupt.body',- // Re-syncing sources is the remediation — the rebuilt store is empty- // and repopulates from there.- action: 'open_memory_sync',- };- }-// The local model runtime a workload depends on is unusable — Ollama is not// running, or the configured model was never pulled (#5354). Emitted by core// as the stable `local_model_unavailable` kind token (memory embedder healthdiff --git a/app/src/lib/userErrors/report.ts b/app/src/lib/userErrors/report.tsindex d59d06d9a6..f897a8f772 100644--- a/app/src/lib/userErrors/report.ts+++ b/app/src/lib/userErrors/report.ts@@ -12,8 +12,6 @@ import debug from 'debug';import type { AppDispatch } from '../../store';import { reportUserError, resolveUserError } from '../../store/userErrorsSlice';import {- classifyMemoryPipelineFailure,- classifyMemoryQuarantine,classifyUserActionableError,type RuntimeErrorSignal,userErrorId,@@ -48,59 +46,3 @@ export function ingestRuntimeErrorSignal(}}-/**- * #5324: promote the memory pipeline's typed blocking cause into the panel.- *- * Called from the Memory Tree status poll. The store dedupes on the- * descriptor id, so re-reporting the same cause on every poll bumps the- * recurrence count instead of stacking duplicate entries — which is what- * makes it safe to call unconditionally from a polling loop.- *- * Same defensive contract as {@link ingestRuntimeErrorSignal}: never throws,- * returns `false` for causes that are not user-actionable.- *- * @param failureCode `first_blocking_cause.code` from the status payload.- */-export function reportMemoryPipelineFailure(- dispatch: AppDispatch,- failureCode: string | null | undefined-): boolean {- try {- const descriptor = classifyMemoryPipelineFailure(failureCode);- if (!descriptor) return false;- log('memory pipeline actionable kind=%s', descriptor.kind);- dispatch(reportUserError({ descriptor, at: Date.now() }));- return true;- } catch (err) {- log('memory pipeline ingest failed: %o', err);- return false;- }-}--/**- * Replay a quarantine from the pipeline-status poll into the durable- * NoticeCenter, and retire it once the store has been re-synced- * (openhuman#5820). Never throws; returns whether a notice is active.- */-export function reportMemoryQuarantine(- dispatch: AppDispatch,- quarantine: { resynced: boolean } | null | undefined-): boolean {- try {- const descriptor = classifyMemoryQuarantine(quarantine);- if (descriptor) {- log('memory quarantine active kind=%s', descriptor.kind);- dispatch(reportUserError({ descriptor, at: Date.now() }));- return true;- }- if (quarantine?.resynced) {- dispatch(- resolveUserError({ id: userErrorId('memory_store_corrupt', 'memory'), at: Date.now() })- );- }- return false;- } catch (err) {- log('memory quarantine ingest failed: %o', err);- return false;- }-}