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 {};