Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(desktop): witness the grant classifier in the case that rejects an id

Alfredo Lopezfc02525f9c7c
diff --git a/desktop-app/ui/src/lib/__tests__/gfsGrantErrors.test.ts b/desktop-app/ui/src/lib/__tests__/gfsGrantErrors.test.ts
index 282e9e94c..258e2e5f1 100644
--- a/desktop-app/ui/src/lib/__tests__/gfsGrantErrors.test.ts
+++ b/desktop-app/ui/src/lib/__tests__/gfsGrantErrors.test.ts
@@ -103,6 +103,14 @@ describe('describeGfsGrantError', () => {
message: 'resource res-4290 not found',
severity: 'error',
})
+ // Witness, matching the read-plane cases below: the grant classifier is
+ // live and still recognises a delimited status token in the very same
+ // message, so the null above is a rejected embedding rather than a matcher
+ // that stopped firing. Without it, deleting `isRateLimited` outright leaves
+ // this test green.
+ expect(describeGfsGrantError(new Error('resource res-4290 not found 429')).code).toBe(
+ 'rate_limited'
+ )
})
it.each([