mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6819] [MERGED] fix: clear consumed guided regeneration text #7342
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#7342
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/6819
Author: @SpicyMarinara
Created: 9/28/2026
Status: ✅ Merged
Merged: 9/28/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/fix-6815-guided-regeneration📝 Commits (5)
6cef747chore: begin guided regeneration composer fix34b29d7fix: consume guided regeneration drafts safely89c5542Merge branch 'staging' into codex/fix-6815-guided-regenerationa54d6c8docs(changelog): move guided regeneration entry to Unreleased6169e43Merge remote-tracking branch 'origin/staging' into codex/fix-6815-guided-regeneration📊 Changes
5 files changed (+220 additions, -4 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)➕
e2e/guided-regeneration.e2e.ts(+193 -0)📝
packages/client/src/components/chat/ChatArea.tsx(+23 -4)📝
packages/client/src/components/chat/ChatInput.tsx(+1 -0)📝
packages/client/src/components/chat/ConversationInput.tsx(+1 -0)📄 Description
Closes #6815.
Guided regeneration used the composer text as direction but left it in the field, where it could accidentally become the next chat message. The shared regeneration handler now clears that direction through the existing composer input handling. An attempt that produces no accepted output restores the old direction only when its draft is still empty.
The existing chat ID and expected-text checks preserve a newer draft, another chat's input, canceled touch confirmation, and normal regeneration with guidance disabled. The change adds no new draft state or generation API.
Validation
Current PR head:
89c55424f545cde6f073f8febd65e3204b191ff1, a pure merge of stagingfd859ccd1055a7ed741c1adda1afbb1ef15a842d. The feature source and retained guided-regeneration fixture are byte-identical to tested feature head34b29d7ef46718ab044cada4a9453116f7d793f2.34b29d7ef,pnpm installandpnpm checkpassed, with two existingGameSurfacehook warnings and no errors.2049a57a9cd56f4c5681b1c8bc764e2e82fcff49, containing feature head34b29d7efplus the then-current #6820/#6821 heads, also passedpnpm check, UI smoke 7/7, author-notes + guided-regeneration cases 12/12 across all three browser projects, and zoomed-keyboard cases 2/2 on mobile Chromium/WebKit. This PR's product files and fixture are byte-identical in that candidate. These results precede the separate #6821 test-cleanup follow-up.867d64d0208e49cce13c40310d81839756fad787(tree3610bb1dbbf9b0429d7532831e3e91cdf34bff7c) passed new-basepnpm install,pnpm checkand UI smoke 7/7. The merge audit confirms all feature source blobs remain unchanged and staging changes are preserved. Earlier focused browser results above remain attributed to their original tested revisions.34b29d7ef, with no actionable hosted comments. Its docstring-coverage advisory does not identify a correctness defect. Current-head CI is being monitored; hosted CodeRabbit for merge head89c55424fis pending because of the review-service rate limit. Those current-head gates must complete before merge.c172ae4ccef3d7052de04b5a8a198e6f308e1e74against0ae509df7, after the #6821 test-only follow-up. It produced three findings across the combined changes. The one concerning this PR suggested reusing composer restore helpers; source review found those helpers are private, send-specific closures with different state in each composer. The existing native input event already reuses both composers’ input handling while retaining chat ownership and expected-draft checks, so this preference-only suggestion was not applied. No local-review blocker remains for #6819; findings for the other PRs are tracked separately. No credits or account settings were changed.pnpm check, and GitHub container checks passed on feature head34b29d7ef. Browser coverage uses emulated mobile devices, not physical phones/tablets or installed app shells.Hosted review also noted an inferred interruption-recovery limitation: composer guidance is cleared when regeneration starts, so a reload or uncertain background outcome can leave it cleared without a confirmed saved reply. This matches the existing send flow's clear-before-result behavior; this change adds no durable pending-draft journal. The focused proof covers ordinary failure restoration and successful reload, and does not claim recovery after an interrupted tab/process.
Human verification remains a to-do list:
pnpm checkpasses locallyCONTRIBUTING.mdDocs and release impact
A concise Unreleased changelog entry describes the corrected draft behavior. No public docs, localization copy, release metadata, or storage format changed.
UI evidence
Self-contained visual evidence includes the original Roleplay composer, the cleared composer on tested head
34b29d7ef, and a light-theme Conversation negative control. Synthetic data only. The six-case suite used desktop Chromium and emulated mobile Chromium/WebKit; no physical-device or installed-app-shell verification is claimed. Download/open the HTML file to view its embedded images.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.