From d8b25506bbda641b96b175a5a82e77d636d8390c Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 29 Apr 2026 14:37:24 +0100 Subject: [PATCH] test: tolerate opencl live stt transcript variant --- src/plugin-sdk/test-helpers/stt-live-audio.ts | 2 +- test/helpers/stt-live-audio.test.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugin-sdk/test-helpers/stt-live-audio.ts b/src/plugin-sdk/test-helpers/stt-live-audio.ts index 530cccdcb23..a9161206de3 100644 --- a/src/plugin-sdk/test-helpers/stt-live-audio.ts +++ b/src/plugin-sdk/test-helpers/stt-live-audio.ts @@ -14,7 +14,7 @@ export function normalizeTranscriptForMatch(value: string): string { type ExpectedTranscriptMatch = RegExp | string; -export const OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE = /open(?:claw|flaw|clar|core)/; +export const OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE = /open(?:claw|cl|flaw|clar|core)/; export function expectOpenClawLiveTranscriptMarker(value: string): void { expect(normalizeTranscriptForMatch(value)).toMatch(OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE); diff --git a/test/helpers/stt-live-audio.test.ts b/test/helpers/stt-live-audio.test.ts index 6a42950b6c1..a30de379eb2 100644 --- a/test/helpers/stt-live-audio.test.ts +++ b/test/helpers/stt-live-audio.test.ts @@ -14,6 +14,9 @@ describe("normalizeTranscriptForMatch", () => { expect(normalizeTranscriptForMatch("OpenCore xAI realtime transcription")).toMatch( OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE, ); + expect(normalizeTranscriptForMatch("OpenCL xAI realtime transcription")).toMatch( + OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE, + ); expectOpenClawLiveTranscriptMarker("OpenClar integration OK"); }); });