mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #639] [MERGED] feat(chat): up-arrow recalls last user message for editing #4709
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#4709
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/639
Author: @LukaTheHero
Created: 5/10/2026
Status: ✅ Merged
Merged: 5/10/2026
Merged by: @SpicyMarinara
Base:
main← Head:feat/intuitive-up-arrow-edit-last-message📝 Commits (1)
af9409afeat(chat): up-arrow recalls last user message for editing📊 Changes
4 files changed (+71 additions, -2 deletions)
View changed files
📝
packages/client/src/components/chat/ChatArea.tsx(+48 -1)📝
packages/client/src/components/chat/ChatMessage.tsx(+10 -0)📝
packages/client/src/components/chat/ConversationMessage.tsx(+12 -0)📝
packages/client/src/components/panels/SettingsPanel.tsx(+1 -1)📄 Description
Summary
Extends the existing Intuitive swipe navigation toggle so that, in Conversation and Roleplay modes, pressing the Up Arrow key opens the most recent user message in inline edit mode — shell/Discord style.
<input>s, selects, andcontenteditableregions are skipped, so other text fields are not hijacked.?tooltip in Settings) now mentions the new Up Arrow behavior.Implementation
ChatArea.tsx— AddslatestUserMessageForEditmemo and anArrowUpbranch in the existing intuitive-swipe keydown effect. On a valid press it dispatches amarinara:start-edit-messagewindow event with the user message id.ChatMessage.tsx(Roleplay) — Listens for the event and callsstartEditing()when the id matches and the message is from the user.ConversationMessage.tsx(Conversation) — Same listener; defers toonEditClickwhen present soSplitMessageGroup's group-wide editor is used for split messages.SettingsPanel.tsx— Updates the tooltip on the Intuitive swipe navigation toggle.No new state, no new dependencies. The feature is gated behind the existing toggle and the same
chatMode === "conversation" || isRoleplaycheck used for swipe navigation.Notes
GameSurfacechunk over the 500 kB bundle-budget plugin limit) currently failspnpm buildonmain. It is unrelated to this PR and should be addressed in its own change.Summary by CodeRabbit
Release Notes
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.