mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2848] [Issue]: Conversation Mode — Prompt Preset "Edit Prompt" window closes on any click and discards the edit #1442
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#1442
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?
Originally created by @Romuromylus on GitHub (Jun 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2848
Originally assigned to: @Romuromylus on GitHub.
Summary
In Conversation Mode, the Chat Settings → Prompt Preset → "Edit Prompt" window closes the moment you click anywhere inside it (including the Collapse button), and any edit you made is discarded. Only keyboard editing is possible, and the change is lost on close.
Expected behavior
Clicking inside the editor keeps it open, and closing it via Collapse or Escape persists the edited conversation prompt.
Actual behavior
The first mouse click inside the editor closes both the editor and the underlying chat settings drawer without committing the edit. Because the only working close paths (Collapse/Escape) are themselves triggered by a click that closes the drawer first, the change never saves.
Steps to reproduce
Environment
Logs, screenshots, or video
Root cause: the editor (
ExpandedTextarea) renders through a portal todocument.body, above the chat settings drawer. The drawer's capture-phasepointerdown"close on outside click" handler only treats clicks inside its own panel (or inside a[data-chat-floating-panel]element) as "inside". The portal-rendered editor is neither, so the first click is read as outside, closes the drawer, and unmounts the editor before its on-close commit can run.Additional context
Also affects the Game extra-prompt and Scene-instructions expanded editors opened from the chat settings drawer, which use the same overlay component.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: