Skip to content

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

fix(timeline): simplify integration action name validation

Steven Enamakelde8a58e38110
diff --git a/app/src/utils/toolTimelineFormatting.ts b/app/src/utils/toolTimelineFormatting.ts
index 667a1640a1..0392a37b43 100644
--- a/app/src/utils/toolTimelineFormatting.ts
+++ b/app/src/utils/toolTimelineFormatting.ts
@@ -650,8 +650,7 @@ function inferIntegrationName(input?: string): string | undefined {
function inferIntegrationActionName(
name: string
): { provider: string; action: string } | undefined {
- const match = name.match(/^([A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*?)_([A-Z0-9_]+)$/);
- if (!match) return undefined;
+ if (!/^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)+$/.test(name)) return undefined;
// Try the longest toolkit prefix first (`GOOGLE_CALENDAR_...`), then the
// shortest (`GMAIL_...`).
const parts = name.split('_');