Skip to content

fix(feeder): tracked arm stops the stdin stream on a parse error (Fixes #950) - #952

Merged
caomengxuan666 merged 2 commits into
masterfrom
fix/950-tracked-arm-parse-error
Nov 6, 2026
Merged

caomengxuan666 merged 2 commits into
masterfrom
fix/950-tracked-arm-parse-error

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Fixes #950

fix(feeder): tracked arm stops the stdin stream on a parse error (Refs #950)

The stdin feeder's tracked (history/alias) arm recorded its stop
verdict from the run classification's unwind alone. A syntax error
produces no unwind, and Session::run has already drained the
executor pendings, so the feeder saw no stop record and read past
a bad batch, exiting 0 where GNU stops the stream with status 2.
The fold now also takes classification.parse_error — the same
parse-error term the unclosed/stray arms fold.

Pins: tests/issue950_tracked_arm_parse_error.rs drives the filed
stream end to end through the real binary (alias-live batch pairs
an alias call with a stray close; feeder stops, rc 2, nothing
after the bad batch runs), plus a clean-tracked-batch companion.

本 PR 删除了什么: nothing deleted — one fold condition widened.

…#950)

The stdin feeder's tracked (history/alias) arm recorded its stop
verdict from the run classification's unwind alone. A syntax error
produces no unwind, and Session::run has already drained the
executor pendings, so the feeder saw no stop record and read past
a bad batch, exiting 0 where GNU stops the stream with status 2.
The fold now also takes `classification.parse_error` — the same
parse-error term the unclosed/stray arms fold.

Pins: tests/issue950_tracked_arm_parse_error.rs drives the filed
stream end to end through the real binary (alias-live batch pairs
an alias call with a stray close; feeder stops, rc 2, nothing
after the bad batch runs), plus a clean-tracked-batch companion.

本 PR 删除了什么: nothing deleted — one fold condition widened.
@caomengxuan666
caomengxuan666 marked this pull request as ready for review November 6, 2026 09:58
@caomengxuan666
caomengxuan666 merged commit 4d6b614 into master Nov 6, 2026
9 of 10 checks passed
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.

stdin feeder: tracked (history/alias) arm does not stop on a parse error — reads past the batch and exits 0

1 participant