mirror of
https://fastgit.cc/github.com/openclaw/openclaw
synced 2026-04-30 22:12:32 +08:00
Update src/agents/pi-embedded-runner/run/attempt.prompt-helpers.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
@@ -150,7 +150,7 @@ export function mergeOrphanedTrailingUserPrompt(params: {
|
||||
}
|
||||
|
||||
const orphanText = extractUserMessagePlainText(params.leafMessage.content);
|
||||
if (!orphanText || params.prompt.includes(orphanText)) {
|
||||
if (!orphanText || orphanText.length < 4 || params.prompt.includes(orphanText)) {
|
||||
return { prompt: params.prompt, merged: false };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user