mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 08:01:40 +00:00
fix(slack): guard against undefined text in includes calls during mention handling
This commit is contained in:
committed by
Peter Steinberger
parent
ce4faedad6
commit
2a98fd3d0b
@@ -111,6 +111,9 @@ export function matchesMentionWithExplicit(params: {
|
||||
}
|
||||
|
||||
export function stripStructuralPrefixes(text: string): string {
|
||||
if (!text) {
|
||||
return "";
|
||||
}
|
||||
// Ignore wrapper labels, timestamps, and sender prefixes so directive-only
|
||||
// detection still works in group batches that include history/context.
|
||||
const afterMarker = text.includes(CURRENT_MESSAGE_MARKER)
|
||||
|
||||
Reference in New Issue
Block a user