mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5070] [MERGED] refactor: continue behavior-preserving code cleanup #6614
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#6614
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/5070
Author: @Xelvanis
Created: 8/15/2026
Status: ✅ Merged
Merged: 8/16/2026
Merged by: @SpicyMarinara
Base:
staging← Head:cleanup/code-cleanup📝 Commits (9)
e9baacarefactor: remove unreachable committed stream stateefde9f4refactor: remove dead chat Zustand mirrors6e25f31refactor: remove redundant generation setup lock2a11231refactor: use lexical active generation registryddfba94refactor: remove unused token-only SSE parserad2266brefactor: collapse update check success response2f8b886fix: preserve active generation ownership during setupdbc6eafMerge branch 'staging' into cleanup/code-cleanup53d26f6Merge branch 'staging' into cleanup/code-cleanup📊 Changes
13 files changed (+87 additions, -276 deletions)
View changed files
📝
.github/bunny-review/reviewer-prompt.md(+1 -1)📝
.github/bunny-review/rules.json(+2 -2)📝
docs/development/frontend.md(+0 -1)📝
packages/client/.instructions.md(+1 -1)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+1 -2)📝
packages/client/src/components/chat/ConversationView.tsx(+1 -2)📝
packages/client/src/hooks/use-generate.ts(+5 -47)📝
packages/client/src/lib/api-client.ts(+0 -74)📝
packages/client/src/lib/generation-stream-policy.ts(+1 -2)📝
packages/client/src/stores/chat.store.ts(+10 -55)📝
packages/server/src/routes/generate.routes.ts(+11 -15)📝
packages/server/src/routes/updates.routes.ts(+51 -71)📝
scripts/regressions/roleplay-streaming.regression.ts(+3 -3)📄 Description
Linked issue
Closes #5069
Why this change
What changed
committedStreamChatIdsstate/action/branches while retainingstreamedMessageIdsas the real durable-row shadow owner.Message.activeSwipeIndex.api.streamparser and its orphaned helper, retainingstreamEventsas the sole active generation SSE client and correcting stale contributor/reviewer guidance.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
git diff --checkpassed.message-page-cache.regression.tsandregeneration-context.regression.tspassed for the Zustand mirror cleanup.pnpm regression:roleplayremains blocked by an unrelated inherited textarea-resize source assertion after advancing past the task-adjacent extractor repair.pnpm checkpassed on final head2f8b88663; final-head CIpnpm-validate, container build, JavaScript/TypeScript analysis, and CodeQL also passed.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n] <paths>follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Contributor and reviewer guidance was updated only to remove the stale
api.streamcontract. No user-facing documentation, localization, release metadata, or changelog change is needed for these six internal behavior-preserving cleanups.origin/docs-i18nhas nodevelopment/frontend.mdcounterpart in any language pack.Known pre-existing limitation
activeGenerationsis still decorated inside thegenerateRoutesFastify plugin. Fastify encapsulation prevents sibling route plugins and the root scheduler from observing that child decoration. This predates this PR, and the lexical-registry cleanup does not introduce or worsen it. Fixing it requires a typed parent-owned or injected registry and would activate currently ineffective guards, so it is intentionally deferred as a separate correctness change rather than hidden inside this behavior-preserving cleanup.UI evidence (if applicable)
No retained screenshots or recordings. Passing browser runs intentionally retained no trace.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.