agy's output-cap retry writes three lines of its own into the reply (the
cut-off notice, its instruction to continue, "Retries remaining: N"); the
bridge now drops them where they start a line, held across chunks, and
keeps a mid-line quote of them. By ump45nose (#892).
The three strings were checked against the agy binary on this Mac
(strings: "Your previous response was cut off because it exceeded the
output token limit", "Please continue from where you left off, keeping
your response shorter", "Retries remaining: %d" and "%d.").
Run at e95ee1d5 (mote, HOME=$(mktemp -d)):
- bun test agy-cli.test.mjs: 20 pass, 0 fail.
- node --test repeat-batch.mjs smoke.mjs: 66 pass.
- bun scripts/check.mjs agy-cli: ok.
Broken by hand: origin/main's index.mjs with this PR's tests: "#892:
agy's output-cap notice never reaches the client" fails.
Not tried: a real turn that hits agy's output cap (the local agy account
answers 403).