Repository navigation
agy-cli 0.1.114: agy's "The stream was interrupted" retry line is dropped, not sent as the reply (#1052) - #1466
Open
wangbingnan136 wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1052 (the retry banner half that was left open for want of evidence).
Summary
agy writes
⚠ The stream was interrupted. Please continue the task you were working on.into the reply when its upstream stream breaks, then asks the model again in the same turn. It is now dropped as⚠ Model produced invalid output.is: a whole line where it starts a line, with its newlines, held while split across chunks. The model quoting it mid-line keeps it.Evidence
The bytes reached the client. On one machine (Codex → magpie → agy-cli, agy 1.5.x), Codex rollouts stored this exact assistant message 10 times in 3 conversations on 2026-11-18 and 11-20, with one or two leading newlines and sometimes a trailing one:
The same response then went on, with reasoning, text and tool calls after it. The string is in the agy binary, and not in magpie or this package. Kept in history, it also ended the client's next request as an assistant "prefill" after a tool result, which got the 400 of #1319 (#1461).
New tests in
test/repeat-batch.mjs:index.mjsviaAGY_BRIDGE_TEST_INDEX):plugins#1052: agy's stream-interrupted banner never reaches the clientfails, and the banner is in the replyAfter: pass. It covers the line mid-reply, at the start, split three ways, and followed by an attempt banner. The quoted-mid-line test passes on both.
bun test ./agy-cli.test.mjs,bun scripts/check.mjs,bun scripts/bumped.mjs upstream/main: passMerge Danger
Door: two-way.
Blast Radius: narrow. Only a line that is exactly agy's sentence, at the start of a line, is removed. A reply ending right after it with nothing else said goes to the existing empty-ending ask.
Version: 0.1.113 → 0.1.114.