mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #612] [MERGED] Fix GoogleProvider empty candidate scene summary crash #4695
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#4695
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/612
Author: @cha1latte
Created: 5/9/2026
Status: ✅ Merged
Merged: 5/9/2026
Merged by: @cha1latte
Base:
main← Head:fix/issue-600-google-provider-empty-candidate📝 Commits (1)
4ac8045Fix Google provider empty candidate handling📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
packages/server/src/services/llm/providers/google.provider.ts(+2 -2)📄 Description
Linked issue
Closes #600
Why this change
candidatesarray. The provider then throwsCannot read properties of undefined (reading '0'), which bubbles up as a 502 during scene conclusion instead of returning a normal empty-response error.What changed
candidatesas optional before reading the first candidate's parts.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --filter @marinara-engine/server exec tsx ../../scratch/issue-600-google-empty-candidates-repro.ts:missing candidates: FAILandTypeError: Cannot read properties of undefined (reading '0').candidatesfield, an emptycandidatesarray, and a normal text candidate.pnpm check; it passedimpeccable:check, lint, and shared/server/client build.Docs and release impact
UI evidence (if applicable)
N/A. This is a backend provider response-shape fix with no visible UI surface change.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.