mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1464] [MERGED] Fix roleplay generation lifecycle and prompt replay #5103
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#5103
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/1464
Author: @Xelvanis
Created: 5/28/2026
Status: ✅ Merged
Merged: 5/28/2026
Merged by: @Xelvanis
Base:
refactor← Head:fix/roleplay-generation-lifecycle📝 Commits (10+)
6f2790cFix generation controller lifecycle09fb63cCache generated prompts for prompt preview8f872efFix stale prompt preview cache fallback3a198d9Persist prompt metadata per swipece21c06Harden per-swipe prompt metadata fallbackseda55acHarden prompt debug metadata failpathsc4bc846Refresh Graphify output after refactor sync83cbd10Align swipe metadata test with lightweight responsea5ef7c7Refresh Graphify output after test sync265f502Address prompt replay review findings📊 Changes
53 files changed (+2760 additions, -345 deletions)
View changed files
📝
graphify-out/.graphify_labels.json(+1 -0)📝
graphify-out/GRAPH_REPORT.md(+33 -28)➕
graphify-out/cache/ast/0d9b4a9037cbc1137cf0bf01b32fe5bbcb753a2a154a61db4f33b675d43b642b.json(+1 -0)➕
graphify-out/cache/ast/23f5be604307cef0f4727f5613f93256204ce62dac710478c72f0e7110a2a22b.json(+1 -0)➕
graphify-out/cache/ast/26fe56effa9ab9e5539de40d8d82662177e758d2d8ff83cb941269f48d798157.json(+1 -0)➕
graphify-out/cache/ast/3c237d13304556751b0f9551a238d489f0a5f24aa7ced9ba5ebd9fa9257510ff.json(+1 -0)➕
graphify-out/cache/ast/3f2153f701449e11e06429931249c5f20ecb2dc297c61d6aefe42d326a776ff6.json(+1 -0)➕
graphify-out/cache/ast/44ed21b113afe227fe5519ad08f0dee224b14b5e78e4670d9502043883ab9aff.json(+1 -0)➕
graphify-out/cache/ast/47eb73516ff90043015d5c482083ce96f58f196880cf09e5122f1e0c669b8989.json(+1 -0)➕
graphify-out/cache/ast/48b0b89cb58296dab111369ed8888167cf0ddc4393dd2edd6525104923f4c0e8.json(+1 -0)➕
graphify-out/cache/ast/6299e3366ecc32e51ef5ec419217b7758fe0a76ebaf3140eb035c670d7b3ba18.json(+1 -0)➕
graphify-out/cache/ast/68f681e5e57c56ad11b9c82d593b3d40bccb5ec3070c868702f629750161749e.json(+1 -0)➕
graphify-out/cache/ast/75d144bc641d9a18a37f1da018ee97db66c3f0a7173fc1b75c7641512f480a25.json(+1 -0)➕
graphify-out/cache/ast/7776c0966318e9858099076d91c57b8b42d497e0db4e7fee5ae95aa1cc5974b9.json(+1 -0)➕
graphify-out/cache/ast/7d96d25d0caa6ea97fb58a6ba4bd0f00e26da5c83bc7af595202099c93f210b8.json(+1 -0)➕
graphify-out/cache/ast/866047c91c98dc903ef0c9bfcc3f93ad41e6afe866e100918cd100f01ca59242.json(+1 -0)➕
graphify-out/cache/ast/94768cabe819d3e9ba3d8bc66ed64b3aba48df41d51f3ca26e7096ac67d7c0de.json(+1 -0)➕
graphify-out/cache/ast/a55c707e2b7271fb193d9fe9724e1471790ac82202d6c49d51e168e5745c2b0c.json(+1 -0)➕
graphify-out/cache/ast/a803050a4392c9572db158b2050373145f47b93e36dbe3648dd36515d9c0e936.json(+1 -0)➕
graphify-out/cache/ast/a81d1c23f7008f7636b8c43c919c7972446e0db38a901872971c5b5540984ed9.json(+1 -0)...and 33 more files
📄 Description
Why this change
Roleplay generation needed the lifecycle and prompt-debug path brought back into parity with the refactor architecture:
What changed
generationPromptSnapshotpath for Peek Prompt, including saved per-swipe prompt snapshots and rebuilt fallback previews before the selected message.extra, legacy parent extras without per-swipe metadata, andgenerationPromptSnapshot/generationPromptSnapshotsBySwipefields.refactor, including PR #1463 and PR #1465, and refresh Graphify output.Impact areas reviewed
refactorsync.Validation
pnpm test -- src/engine/generation/start-generation.test.ts src/engine/generation/prompt-assembly.test.ts src/engine/generation/main-tool-loop.test.ts src/features/runtime/generation/hooks/use-generate.test.tspnpm test -- src/shared/components/ui/GenerationParametersEditor.test.tscargo test --manifest-path src-tauri/Cargo.toml extrapnpm typecheckcargo check --manifest-path src-tauri/Cargo.toml --workspacepnpm check:architecturegraphify update .Docs and release impact
Known coordination
origin/refactorand mergeable as of commitd6098867.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.