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
fix(chat): correct error message for network timeout
Steven Enamakel95bebe0dd938
diff --git a/app/src/lib/chatErrorCopy.test.ts b/app/src/lib/chatErrorCopy.test.tsindex a1e9f34146..72b1b47cbf 100644--- a/app/src/lib/chatErrorCopy.test.ts+++ b/app/src/lib/chatErrorCopy.test.ts@@ -1,3 +1,4 @@+import { readFileSync } from 'node:fs';import { describe, expect, it } from 'vitest';import { chatErrorCopyText } from './chatErrorCopy';@@ -62,4 +63,17 @@ describe('chatErrorCopyText', () => {it('falls back to message when there is no key', () => {expect(chatErrorCopyText({ message: 'english' }, t)).toBe('english');});++ it('has an English string for every key in the core failure-copy table', () => {+ const tablePath = new URL(+ '../../../crates/openhuman-core/src/inference/failure_copy/table.rs',+ import.meta.url+ );+ const keys = [...readFileSync(tablePath, 'utf8').matchAll(/"(chat_error\.[a-z_]+)"/g)].map(+ m => m[1]+ );+ expect(keys.length).toBeGreaterThanOrEqual(28);+ const missing = keys.filter(key => !(key in (en as Record<string, string>)));+ expect(missing).toEqual([]);+ });});