mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4679] [MERGED] Fix transient Roleplay message edit failures #6465
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#6465
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/4679
Author: @SpicyMarinara
Created: 8/6/2026
Status: ✅ Merged
Merged: 8/6/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/4678-reliable-message-edits📝 Commits (3)
06c55fdchore: start #4678 reliability fix4b1b71ffix transient roleplay message savese93ee3cfix: serialize message edit retries📊 Changes
3 files changed (+82 additions, -36 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
e2e/core-flows.e2e.ts(+59 -33)📝
packages/client/src/hooks/use-chats.ts(+22 -3)📄 Description
Why
Roleplay message edits could still fail on remote Termux/Tailscale sessions after the previous cache and editor-state fixes. The five earlier PRs protected generation cleanup, cache ordering, stale snapshots, editor lifetime, and the Save hit target, but the final content
PATCHstill trusted a single transport attempt. One transient network or server failure therefore left the edit unpersisted and showed the recovery toast from #4678.Closes #4678
What changed
PATCHafter 300 ms for network failures and HTTP 408, 425, 429, or 5xx responses.Validation
pnpm checkpnpm localization:checkAutomated validation completed while preparing the PR:
pnpm check,pnpm localization:check, and the focused Playwright regression on desktop and mobile Chromium (2 passed). The validation boxes remain unchecked for maintainer verification.Manual verification
Manually reproduce the original remote Termux/Tailscale path and confirm that a brief connection interruption does not require a second Save click.
Summary by CodeRabbit
Bug Fixes
Tests
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.