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
refactor(tauriCommands): inline single-element test array and regex pattern
Steven Enamakel33743f2d3a55
diff --git a/app/src/utils/tauriCommands/common.test.ts b/app/src/utils/tauriCommands/common.test.tsindex 2186bcdd8f..1c6c2c19d3 100644--- a/app/src/utils/tauriCommands/common.test.ts+++ b/app/src/utils/tauriCommands/common.test.ts@@ -278,9 +278,7 @@ describe('safeInvoke (tauriCommands/common)', () => {// `{ message }` object instead of letting a `TypeError` escape. That shape// is not a `TypeError`, so the classifier must recognise it by message or// every `instanceof IpcUnavailableError` degradation branch goes dead.- it.each([- 'IPC postMessage interface is unavailable on this platform',- ])(+ it.each(['IPC postMessage interface is unavailable on this platform'])('classifies the guarded IPC-unavailable rejection %j as IpcUnavailableError',async message => {coreInvokeMock.mockRejectedValue({ message });diff --git a/app/src/utils/tauriCommands/common.ts b/app/src/utils/tauriCommands/common.tsindex ed4914820f..6e35c0bb55 100644--- a/app/src/utils/tauriCommands/common.ts+++ b/app/src/utils/tauriCommands/common.ts@@ -166,8 +166,7 @@ function looksLikePostMessageThrow(err: unknown): boolean {* keep getting `IpcUnavailableError` and their graceful-degradation branches* keep firing.*/-const IPC_UNAVAILABLE_MESSAGE_PATTERN =- /IPC postMessage interface is unavailable/;+const IPC_UNAVAILABLE_MESSAGE_PATTERN = /IPC postMessage interface is unavailable/;function looksLikeGuardedIpcUnavailable(err: unknown): boolean {if (err === null || err === undefined) return false;