mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8944] [MERGED] fix(dottore): resend a Claude stream that ends before message_start, and trace failures #8900
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8900
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8944
Author: @SpicyMarinara
Created: 11/7/2026
Status: ✅ Merged
Merged: 11/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/dottore-assertion-trace📝 Commits (1)
9b3bcc7fix(dottore): resend a Claude stream that ends before message_start📊 Changes
3 files changed (+90 additions, -6 deletions)
View changed files
📝
.github/dottore-review/README.md(+4 -0)📝
.github/dottore-review/dottore_review.py(+26 -2)📝
scripts/regressions/dottore-stream-progress.regression.mjs(+60 -4)📄 Description
Linked issue
Closes #8918
Why this change
Dottore Review failed on #8844's full reviews with "Dottore Review could not complete: AssertionError:" and nothing else. There was no traceback and no hint of where it came from. A packet's finder received an HTTP 200 stream that ended before its first event,
message_start. The pinned Anthropic SDK (anthropic==2.1.0,lib/streaming/_messages.py:101) then fails a bareassertinget_final_message. That isn't an errorchatretries, so the review ended.error_textprinted the empty message and nothing printed the traceback. Reproduced with the pinned SDK and a mocked empty 200 stream: exactlyAssertionError:.What changed
.github/dottore-review/dottore_review.py:claude_replyrecords the events that arrive beforemessage_start: their type, and their error message if any.message_startnever arrives, it raises the existing stall error, whichchatalready resends once. The message carries what the gateway sent, for examplethe reply stream ended before Claude started (content-type application/json, request-id req_123, events before message_start: none).error_textnames where an error without a message was raised, for exampleAssertionError: raised at anthropic/lib/streaming/_messages.py:101 in get_final_message.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run by the agents (not a substitute for the boxes above):
message_startand a JSON error body all become the descriptive stall and resend. A normal stream ending intool_useis unchanged.dottore-stream-progress.regression.mjsis extended. All Dottore regression scripts andpnpm checkpass.Still to verify by hand:
/dottore fullon a large PR such as #8844's former head to confirm the review completes, or, if the gateway fails again, that the run log shows the traceback and the gateway's content type and request id. Recovery there is not verified yet.Docs and release impact
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #8944] fix(dottore): resend a Claude stream that ends before message_start, and trace failuresto [PR #8944] [MERGED] fix(dottore): resend a Claude stream that ends before message_start, and trace failures