mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #703] [MERGED] fix(chat): make Up-Arrow recall always available and edit any role #4733
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#4733
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/703
Author: @LukaTheHero
Created: 5/11/2026
Status: ✅ Merged
Merged: 5/11/2026
Merged by: @LukaTheHero
Base:
main← Head:fix/up-arrow-edit-decouple-toggle📝 Commits (1)
a86f189fix(chat): make Up-Arrow recall work on its own toggle and edit any role📊 Changes
5 files changed (+91 additions, -40 deletions)
View changed files
📝
packages/client/src/components/chat/ChatArea.tsx(+66 -34)📝
packages/client/src/components/chat/ChatMessage.tsx(+2 -2)📝
packages/client/src/components/chat/ConversationMessage.tsx(+2 -2)📝
packages/client/src/components/panels/SettingsPanel.tsx(+10 -1)📝
packages/client/src/stores/ui.store.ts(+11 -1)📄 Description
Why
PR #639 introduced an Up-Arrow shortcut to recall the last message for inline editing, but two problems made it look broken after merge:
false. Anyone who hadn't already opted into swipe nav pressed Up Arrow and saw nothing happen.It also only ever recalled the most recent user message, which surprised users who expected "edit the last thing in the chat" to mean the last bubble period — including the AI's response.
What this changes
27 -> 28so existing users pick up the new default.ChatAreaso the Up-Arrow recall runs in its own effect, independent of the swipe-nav toggle and effect.hiddenFromUsersystem messages and bailing while a generation is streaming or an agent is processing.ChatMessageandConversationMessageso any role responds to the recall event, matching the existing Pencil button behavior.Linked issue
No GitHub issue was opened for this — it's a follow-up to the merged PR #639. One should be filed if we want to track the regression formally.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.