mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1674] [MERGED] Fix Prompt Reviewer JSON handling #5202
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#5202
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/1674
Author: @cha1latte
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/1561-prompt-reviewer-json📝 Commits (2)
5e36c1dFix prompt reviewer JSON handling7e4ead4Reject degenerate prompt review JSON📊 Changes
2 files changed (+127 additions, -3 deletions)
View changed files
➕
src/engine/generation/prompt-reviewer.test.ts(+106 -0)📝
src/engine/generation/prompt-reviewer.ts(+21 -3)📄 Description
Linked issue
Closes #1561
Why this change
What changed
reviewPromptPresetnow sendsparameters.responseFormat = "json_object"through the existing LLM gateway request.errorevent without adoneevent.Refactor impact
Primary owner:
Impact areas reviewed:
responseFormatBoundary notes:
src/engine; no React, shared API, Rust transport, storage, schema, dependency, or UI layout changes.PromptReviewEventshape is unchanged, and the existing ReviewTab error path remains the consumer surface.json_schemastructured outputs.Pressure points touched:
Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
pnpm test src/engine/generation/prompt-reviewer.test.ts: passed, 1 file and 4 tests.pnpm typecheck: passed.pnpm check: passed, including line endings, architecture, frontend/typecheck, Rust check, and docs.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json: passed.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A - engine-level contract fix with focused unit coverage; no UI layout change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.