docs(agents): clarify which prompts fold to unmatchable

The unmatchable set is any prompt with no letters or digits (punctuation,
whitespace, or symbol/emoji-only) — not just punctuation/whitespace. Comment
only; no behavior change.

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
brennanb2025
2026-07-08 16:46:23 -07:00
co-authored by Orca
parent e7acc6db10
commit dbbb8b6186
+4 -3
View File
@@ -51,9 +51,10 @@ export function createPromptEchoScanner(pastedContent: string): PromptEchoScanne
const folded = foldTerminalTextForEchoMatch(pastedContent)
const head = folded.slice(0, SAMPLE_LENGTH)
const tail = folded.length > SAMPLE_LENGTH ? folded.slice(-SAMPLE_LENGTH) : ''
// Why: only content that folds to nothing (punctuation/whitespace-only
// prompts) is genuinely impossible to match — treat any post-paste render as
// echo there rather than blocking delivery forever. Short-but-nonempty
// Why: only content that folds to nothing (no letters or digits — e.g.
// punctuation, whitespace, or symbol/emoji-only prompts) is genuinely
// impossible to match, so treat any post-paste render as echo there rather
// than blocking delivery forever. Short-but-nonempty
// prompts (e.g. "fix ci") must still match on the head sample below so a
// swallow screen that renders none of their characters withholds the submit
// (#7466); firing on an arbitrary redraw would resubmit the exact bug.