From 969a6c5414c9b04754ffa217463b60f572758de2 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 12 Apr 2026 18:26:32 +0100 Subject: [PATCH] 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> --- src/agents/pi-embedded-runner/run/attempt.prompt-helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/pi-embedded-runner/run/attempt.prompt-helpers.ts b/src/agents/pi-embedded-runner/run/attempt.prompt-helpers.ts index 9a3159e5af3..767f496ff24 100644 --- a/src/agents/pi-embedded-runner/run/attempt.prompt-helpers.ts +++ b/src/agents/pi-embedded-runner/run/attempt.prompt-helpers.ts @@ -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 }; }