mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7720] [MERGED] fix(generation): name the failed connection when a fallback answers #7897
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#7897
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/7720
Author: @SpicyMarinara
Created: 10/16/2026
Status: ✅ Merged
Merged: 10/16/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/7697-pool-fallback-identity📝 Commits (4)
b8018e6fix(generation): name the failed connection when a fallback answerse8138a2fix(generation): show the failed pool pick on every reply, by tape24d595fix(generation): preserve fallback identity across reply parts28bbc77test(export): calibrate constrained native export heap📊 Changes
17 files changed (+578 additions, -34 deletions)
View changed files
📝
docs/chats/peek-prompt.md(+1 -1)📝
docs/connections/organizing-connections.md(+2 -0)➕
e2e/pool-fallback-note.e2e.ts(+79 -0)📝
packages/client/src/components/chat/ChatMessage.tsx(+5 -0)📝
packages/client/src/components/chat/ConversationMessage.tsx(+6 -0)➕
packages/client/src/components/chat/GenerationFallbackMarker.tsx(+25 -0)📝
packages/client/src/components/chat/PeekPromptModal.tsx(+4 -0)📝
packages/client/src/lib/generation-fallback-notice.ts(+92 -12)📝
packages/client/src/localization/locales/en.json(+19 -0)📝
packages/server/src/routes/generate.routes.ts(+16 -5)📝
packages/server/src/routes/generate/saved-message-extra.ts(+8 -1)📝
packages/server/src/services/generation/provider-generation-runtime.ts(+2 -0)📝
packages/server/src/services/llm/connection-fallback-provider.ts(+86 -13)📝
packages/shared/src/types/chat.ts(+3 -1)📝
packages/shared/src/types/generation-integration.ts(+15 -0)📝
scripts/regressions/native-export-memory.regression.ts(+2 -1)➕
scripts/regressions/pool-fallback-identity.regression.ts(+213 -0)📄 Description
Linked issue
Closes #7697
Why this change
What changed
ponytail:indescribeFallbackFailure).en.jsonkeys word for word, so the toast is translatable as a whole. Notices without a failed connection, like image and video fallbacks, keep the old wording.GenerationFallbackNotice.failed,GenerationInfo.fallbackand an optionalprimaryConnectionNameon the fallback options. All are optional, so capability packages are unaffected.docs/chats/peek-prompt.md(the Peek line) anddocs/connections/organizing-connections.md(the random pool section). Translations: #7735.scripts/regressions/pool-fallback-identity.regression.tsfails on staging (the notice has nofailedentry, anddescribeFallbackFailuredoes not exist there) and on the first commit (403, 529 and the toast wording).e2e/pool-fallback-note.e2e.tstaps the marker on an older fallback reply in roleplay and conversation on desktop, Pixel and iPhone; it fails without the marker.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (not a substitute for the boxes above):
tsc --noEmitfor shared, server, client and root: clean.node scripts/check-locales.mjsandpnpm localization:check: clean.pool-fallback-identity(new),provider-compat,generate-saved-message-extra,capability-integrations,agent-connection-parameters,codex-reasoning-effort,robustness-provider-resilience,roleplay-streaming,agent-activation,spatial-context,open-issues,slash-command-usage,ui-language-packs,export-file-save, and the others that read the changed files.pnpm checkpassed. Playwright (--workers=1):pool-fallback-note(6/6 on desktop-chromium, mobile-chromium and mobile-webkit),reply-checkup, the core-flows fallback toast test and the@smokesuite passed; the skips are the specs' own project skips. Also re-ranprovider-compat,robustness-provider-resilience,open-issues,roleplay-streaming,chat-message-css-security,character-identity,docs-language,docs-command-search,ui-language-packsandcapability-integrations.Review fixes committed as
e24d59587d33a816eb947e280ca77cf8b2281728(the same tree tested locally):pnpm installand fullpnpm check: pass. The existingHomeProfessorMariChat.tsxserverRunhook-dependency warning remains; no errors.node scripts/run-regressions.mjs --filter <name>:pool-fallback-identity,generate-saved-message-extra,generate-save-generated-reply,provider-compat, androleplay-streamingpass. The pool regression now covers nested connect timeouts, retained continuation notices, new fallback precedence, and split-part route wiring.pnpm regression:ui e2e/pool-fallback-note.e2e.ts --workers=1: 6/6 pass across desktop Chromium, mobile Chromium and mobile WebKit.pnpm smoke:ui: 7/7 pass. These runs used dedicated ports and ran after the production build; preliminary runs interrupted by local edits/builds were discarded.GenerationInfotype lackedfallback; that field already exists atpackages/shared/src/types/chat.ts:1116, with its type imported at line 13, in both the previous committed PR head and the final tree. Fullpnpm checkconfirms the access type-checks. No substantive finding remains.CI fixture calibration committed as
28bbc77d4d5773678784d3cc8a032fe355aa8701:e24d59587finished 902/903. Onlynative-export-memory.regression.ts:209failed: its character-export child process hit the explicit 112 MB JavaScript heap limit on Node 24.21.0. This was a constrained-heap abort, not a hosted-runner acquisition failure.pnpm exec prettier --check scripts/regressions/native-export-memory.regression.tsandnode scripts/run-regressions.mjs --filter native-export-memorypass on Node 24.16.0. The final sampled peak was 128 MB, baseline 71 MB; these measurements do not establish universal spare heap headroom.pnpm checkate24d59587is unchanged. Fresh hosted checks are running on the new head and are not yet recorded as passed.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Updated
docs/chats/peek-prompt.mdanddocs/connections/organizing-connections.md. Translations follow in #7735.UI evidence (if applicable)
Not captured.
🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.