Skip to content

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
magpie-community:mainfrom
wangbingnan136:codex/agy-cli-stream-interrupted-banner
Open

wangbingnan136 wants to merge 2 commits into
magpie-community:mainfrom
wangbingnan136:codex/agy-cli-stream-interrupted-banner

Conversation

@wangbingnan136

Copy link
Copy Markdown

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.

 dropRetryBanner
-  fixed one-line banners: RETRY_CORE
+  fixed one-line banners: RETRY_CORE, STREAM_CORE
 nextBanner / LINE_CORES / heldFrom
+  STREAM_CORE / STREAM_MARKER

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:

"\n⚠ The stream was interrupted. Please continue the task you were working on.\n"

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:

  • Before (upstream index.mjs via AGY_BRIDGE_TEST_INDEX): plugins#1052: agy's stream-interrupted banner never reaches the client fails, and the banner is in the reply
    After: 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: pass

Merge 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants