mirror of
https://github.com/stablyai/orca.git
synced 2026-10-17 00:03:08 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user