[PR #242] [MERGED] Feature: Confirm before ending scene #4526

Closed
opened 2026-10-22 04:08:26 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/242
Author: @OnlyJimmy
Created: 4/26/2026
Status: ✅ Merged
Merged: 4/27/2026
Merged by: @LukaTheHero

Base: main ← Head: confirm-end-scene


📝 Commits (1)

  • 37291c4 Confirm before ending scene

📊 Changes

1 file changed (+61 additions, -15 deletions)

View changed files

📝 packages/client/src/components/chat/SceneBanner.tsx (+61 -15)

📄 Description

Why this change

Prevent accidental scene conclusion taps, especially on mobile where the End Scene button can easily be triggered unintentionally.

What changed

  • Added a confirmation prompt before ending an active scene.
  • Added an in-flight guard so the end-scene confirmation cannot be submitted multiple times.
  • Made End Scene and Discard confirmations mutually exclusive.

Validation

  • pnpm check
  • Manual verification completed (describe below)

Manual verification notes

Completed:

  • Tap End Scene once and confirm the scene does not immediately conclude.
  • Tap No and confirm the prompt disappears.
  • Tap End Scene again, then Yes, and confirm the normal conclusion flow runs.
  • Tap Discard while End confirmation is open and confirm the End confirmation closes.
  • Tap End Scene while Discard confirmation is open and confirm the Discard confirmation closes.
  • Confirm repeated taps on Yes do not submit multiple conclusion requests.

Docs and release impact

  • No docs changes needed

UI evidence (if applicable)

Confirmation Prompt
shot1a

Double click prevention
shot2a

Summary by CodeRabbit

  • New Features

    • Added confirmation step when ending scenes: users now see an "End and save summary?" dialog with Yes/No options before the scene concludes.
  • Improvements

    • Scene conclusion workflow now prevents accidental or concurrent submissions during processing, ensuring operations complete reliably. Discarding a scene clears any pending confirmations.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/242 **Author:** [@OnlyJimmy](https://github.com/OnlyJimmy) **Created:** 4/26/2026 **Status:** ✅ Merged **Merged:** 4/27/2026 **Merged by:** [@LukaTheHero](https://github.com/LukaTheHero) **Base:** `main` ← **Head:** `confirm-end-scene` --- ### 📝 Commits (1) - [`37291c4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/37291c4fd231a2fbf3b36658087d5819754cf088) Confirm before ending scene ### 📊 Changes **1 file changed** (+61 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/SceneBanner.tsx` (+61 -15) </details> ### 📄 Description ## Why this change Prevent accidental scene conclusion taps, especially on mobile where the End Scene button can easily be triggered unintentionally. ## What changed - Added a confirmation prompt before ending an active scene. - Added an in-flight guard so the end-scene confirmation cannot be submitted multiple times. - Made End Scene and Discard confirmations mutually exclusive. ## Validation - [x] `pnpm check` - [x] Manual verification completed (describe below) ### Manual verification notes Completed: - Tap End Scene once and confirm the scene does not immediately conclude. - Tap No and confirm the prompt disappears. - Tap End Scene again, then Yes, and confirm the normal conclusion flow runs. - Tap Discard while End confirmation is open and confirm the End confirmation closes. - Tap End Scene while Discard confirmation is open and confirm the Discard confirmation closes. - Confirm repeated taps on Yes do not submit multiple conclusion requests. ## Docs and release impact - [x] No docs changes needed ## UI evidence (if applicable) Confirmation Prompt <img width="565" height="102" alt="shot1a" src="https://github.com/user-attachments/assets/fb81b881-27c4-4f2c-96c9-3cfe781451da" /> Double click prevention <img width="1152" height="146" alt="shot2a" src="https://github.com/user-attachments/assets/b2b2f48e-a59e-4624-95f8-f0dcb34e7605" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added confirmation step when ending scenes: users now see an "End and save summary?" dialog with Yes/No options before the scene concludes. * **Improvements** * Scene conclusion workflow now prevents accidental or concurrent submissions during processing, ensuring operations complete reliably. Discarding a scene clears any pending confirmations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:08:26 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4526
No description provided.