mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-27 09:02:15 +00:00
perf(runtime): trim hot-path allocations and cache channel plugin lookups
This commit is contained in:
@@ -96,6 +96,15 @@ export function parseInlineDirectives(
|
||||
hasReplyTag: false,
|
||||
};
|
||||
}
|
||||
if (!text.includes("[[")) {
|
||||
return {
|
||||
text: normalizeDirectiveWhitespace(text),
|
||||
audioAsVoice: false,
|
||||
replyToCurrent: false,
|
||||
hasAudioTag: false,
|
||||
hasReplyTag: false,
|
||||
};
|
||||
}
|
||||
|
||||
let cleaned = text;
|
||||
let audioAsVoice = false;
|
||||
|
||||
Reference in New Issue
Block a user