mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1681] [MERGED] Restore generation contract parity #5209
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#5209
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/1681
Author: @cha1latte
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @cha1latte
Base:
refactor← Head:codex/refactor-generation-parity📝 Commits (1)
b9a4189Restore generation contract parity📊 Changes
8 files changed (+138 additions, -1 deletions)
View changed files
➕
src/engine/contracts/schemas/chat.schema.test.ts(+18 -0)📝
src/engine/contracts/schemas/chat.schema.ts(+7 -1)📝
src/engine/contracts/types/chat.ts(+2 -0)📝
src/engine/generation/main-tool-loop.test.ts(+23 -0)📝
src/engine/generation/start-generation.test.ts(+25 -0)📝
src/engine/generation/start-generation.ts(+24 -0)📝
src/features/runtime/generation/hooks/use-generate.test.ts(+19 -0)📝
src/features/runtime/generation/hooks/use-generate.ts(+20 -0)📄 Description
Linked issue
N/A - refactor readiness blocker found during contract/generation parity review.
Why this change
The refactor branch needs to preserve legacy generation contracts where parity is claimed. The review found contract drift around legacy
visual_novelchat mode ingress, missinguserTimeZone, sequential group generation targeting, and stream tool event handling.What changed
visual_novelchat mode values toroleplayat schema ingress.userTimeZonein chat schema/type contracts.tool_callandtool_resultevents as phase/status updates without appending visible chat text.Refactor impact
Primary owner:
Engine generation and runtime generation wrapper.
Impact areas reviewed:
Boundary notes:
src/engine.Pressure points touched:
src/engine/contracts/schemas/chat.schema.tssrc/engine/generation/start-generation.tssrc/features/runtime/generation/hooks/use-generate.tsValidation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyCodex-run proof:
pnpm checkpassed inscratch/refactor-lane-worktrees/generation.pnpm exec vitest run src/engine/contracts/schemas/chat.schema.test.ts src/engine/generation/start-generation.test.ts src/features/runtime/generation/hooks/use-generate.test.ts src/engine/generation/main-tool-loop.test.tspassed: 96 tests.pnpm typecheckpassed.git diff --check upstream/refactor...HEADpassed.Manual verification notes
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs changes included.
UI evidence
N/A - generation contract/runtime behavior only; no visible UI changes.
Summary by CodeRabbit
Release Notes
New Features
Improvements
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.