Skip to content

A self-improving RLM agent for coding workflows and long-running autonomous tasks.

Rust

refactor(ai): delete the unused getOverflowPatterns export (#1850)

Sebastian Müller8ca525558566
diff --git a/packages/ai/.changes/remove-overflow-pattern.md b/packages/ai/.changes/remove-overflow-pattern.md
new file mode 100644
index 0000000000..7f2dc8f19f
--- /dev/null
+++ b/packages/ai/.changes/remove-overflow-pattern.md
@@ -0,0 +1 @@
+- Removed the `getOverflowPatterns()` test helper export from `utils/overflow.ts`; use `isContextOverflow()` directly.
diff --git a/packages/ai/src/utils/overflow.ts b/packages/ai/src/utils/overflow.ts
index 648f2343ed..bf59405d82 100644
--- a/packages/ai/src/utils/overflow.ts
+++ b/packages/ai/src/utils/overflow.ts
@@ -142,10 +142,3 @@ export function isContextOverflow(message: AssistantMessage, contextWindow?: num
return false;
}
-
-/**
- * Get the overflow patterns for testing purposes.
- */
-export function getOverflowPatterns(): RegExp[] {
- return [...OVERFLOW_PATTERNS];
-}