From 3afc59728721ea8f7276db8bd433c5ee371280a5 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 28 Apr 2026 16:31:51 +0100 Subject: [PATCH] fix(release): complete qa lab harness runtime --- extensions/qa-lab/src/harness-runtime.ts | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/extensions/qa-lab/src/harness-runtime.ts b/extensions/qa-lab/src/harness-runtime.ts index a1d228702ca..a6afc2ed1fe 100644 --- a/extensions/qa-lab/src/harness-runtime.ts +++ b/extensions/qa-lab/src/harness-runtime.ts @@ -1,3 +1,4 @@ +import { resolveInboundMentionDecision } from "openclaw/plugin-sdk/channel-inbound"; import type { PluginRuntime } from "openclaw/plugin-sdk/runtime-store"; type SessionRecord = { @@ -48,6 +49,30 @@ export function createQaRunnerRuntime(): PluginRuntime { }); }, }, + text: { + hasControlCommand() { + return false; + }, + }, + mentions: { + buildMentionRegexes() { + return [/\b@?openclaw\b/i]; + }, + matchesMentionPatterns(text: string, regexes: RegExp[]) { + return regexes.some((regex) => regex.test(text)); + }, + resolveInboundMentionDecision, + }, + groups: { + resolveRequireMention() { + return false; + }, + }, + commands: { + shouldHandleTextCommands() { + return true; + }, + }, reply: { resolveEnvelopeFormatOptions() { return {};