mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8188] [MERGED] fix(provider): repair empty Anthropic retry history and debug logs #8147
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#8147
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/8188
Author: @SpicyMarinara
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/anthropic-safe-retry-8186📝 Commits (3)
1775943test(provider): reproduce empty Anthropic-compatible retry history0eab484fix(llm): omit empty unsigned Anthropic history and log retriesd891fc9Merge branch 'staging' into fix/anthropic-safe-retry-8186📊 Changes
2 files changed (+189 additions, -1 deletions)
View changed files
📝
packages/server/src/services/llm/providers/openai.provider.ts(+8 -1)➕
scripts/regressions/anthropic-safe-retry.regression.ts(+181 -0)📄 Description
Linked issue
Closes #8186. Owner: @SpicyMarinara (Codex).
Why this change
An Anthropic-compatible Chat Completions retry can remove unsigned thinking but retain an empty assistant row, so the reshaped request is rejected again. Its final reshaped prompt also misses the existing opt-in debug log.
What changed
Omit empty unsigned assistant rows while preserving real text, signed thinking and native or retold paired tool rounds. Log the final reshaped retry with the existing debug controls. Accepted non-Anthropic requests and unrelated errors retain their current behavior.
Add a canonical regression using the real provider against a strict local HTTP fixture. No connection/provider option, user-facing copy, dependency, release version, docs or changelog change.
Coordination: open PRs and local branches were checked; #8153 reports this upstream follow-up and does not implement it. The issue and draft are claimed and assigned. The project-board API is unavailable to the current token (missing read:project); issue/branch/PR coordination was checked instead.
Validation
Locally validated repair source:
0eab484a4d4fcd4c03a6fb54d800df0fdc58aed3. The full baseline, local review and compiled-startup evidence below apply to that source.Current PR head:
d891fc92e880538f4c1f1da7bc1e680e7a60b26f, after GitHub's native update-branch merged reviewed stagingea8d4c3a74a12ab2e9a90610aabbb2cd5856c520. Both owned provider/regression files are byte-identical to0eab. Three fresh canonical programs pass atd891: actual-HTTP Anthropic retry (all ten wire controls), provider compatibility, and past-reasoning history. No repair source/test changed; no fresh full build or compiled-browser result is claimed for this base-only integration.pnpm checkpasses, with one inherited Professor hook warning.Before/after, independent defect controls, exact patch, full baseline and review evidence: all 17 raw files byte/hash-verified, including the new base-integration parity record and three fresh canonical logs. Dependency installation initially stopped on disk capacity; final checks used an exact-lock installed registry through owned workspace link forests, with pnpm automatic installation disabled. No global setting or dependency metadata change is included.
The earlier Dottore finding examined the stale
177test-only specimen and is correctly replied/resolved; it is not approval of the repair. Fresh actual examination 39987915022 is running and must establish a viable verdict on the fetchedd891specimen before merge.The provider fixture uses fake data and a local endpoint. It does not establish paid/live Anthropic-compatible proxy behavior. Hosted required checks and the actual current-head Dottore verdict remain merge gates.
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Manually verify a compatible proxy that rejects unsigned reasoning with debug off/on. No physical-device, paid-provider or local-container proof is claimed. The changed behavior is server-side request shaping; the existing UI presentation is unchanged.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #8188] fix(provider): repair empty Anthropic retry history and debug logsto [PR #8188] [MERGED] fix(provider): repair empty Anthropic retry history and debug logs