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:
Vincent Koc
2026-04-12 18:26:32 +01:00
committed by GitHub
parent 0513374752
commit 969a6c5414

View File

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