Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(chat): correct error message for network timeout

Steven Enamakel7064d2583557
diff --git a/app/src/lib/chatErrorCopy.test.ts b/app/src/lib/chatErrorCopy.test.ts
index 72b1b47cbf..d98af93642 100644
--- a/app/src/lib/chatErrorCopy.test.ts
+++ b/app/src/lib/chatErrorCopy.test.ts
@@ -1,4 +1,5 @@
import { readFileSync } from 'node:fs';
+import { resolve } from 'node:path';
import { describe, expect, it } from 'vitest';
import { chatErrorCopyText } from './chatErrorCopy';
@@ -65,9 +66,9 @@ describe('chatErrorCopyText', () => {
});
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 tablePath = resolve(
+ process.cwd(),
+ '../crates/openhuman-core/src/inference/failure_copy/table.rs'
);
const keys = [...readFileSync(tablePath, 'utf8').matchAll(/"(chat_error\.[a-z_]+)"/g)].map(
m => m[1]