[PR #1624] [MERGED] Fix concluded scene message actions #5157

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1624
Author: @Promansis
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Promansis

Base: refactor ← Head: fix/1516-concluded-scene-actions


📝 Commits (1)

  • 1440521 Fix concluded scene message actions

📊 Changes

1 file changed (+62 additions, -41 deletions)

View changed files

📝 src/features/modes/shared/chat-ui/components/ChatMessage.tsx (+62 -41)

📄 Description

Linked issue

Closes #1516

Why this change

  • Concluded Roleplay scenes are read-only, but message rows still displayed enabled-looking mutation actions after the scene ended.

What changed

  • Hides message mutation actions when their owning surface does not provide a handler.
  • Leaves non-mutating/read actions like copy, translate, prompt peek, replay details, thoughts, and TTS available.

Refactor impact

Primary owner:

shared mode UI, Roleplay mode caller contract

Impact areas reviewed:

  • ChatRoleplaySurface concluded-scene messageActions contract
  • shared ChatMessage roleplay action rendering
  • conversation/texting message action rendering

Boundary notes:

  • No engine, shared API, Rust, or remote-runtime boundaries changed.
  • The Roleplay surface still owns concluded-scene read-only state; ChatMessage now respects absent handler capability before rendering mutation buttons.

Pressure points touched:

  • shared mode UI: src/features/modes/shared/chat-ui/components/ChatMessage.tsx

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Agent-ran checks:
  • pnpm exec vitest run src/features/modes/shared/chat-ui/components/ChatMessage.test.ts passed.
  • pnpm typecheck passed.
  • pnpm check:architecture passed.
  • Manual browser/Tauri repro was not run.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

Docs/release notes: not needed; this is a narrow bug fix to existing concluded-scene read-only UI behavior.

UI evidence

Not captured; validated by code path and checks above.


🔄 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/1624 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 5/30/2026 **Status:** ✅ Merged **Merged:** 5/30/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `fix/1516-concluded-scene-actions` --- ### 📝 Commits (1) - [`1440521`](https://github.com/Pasta-Devs/Marinara-Engine/commit/14405217177bfb3aac2a117b04ebf757088f9e73) Fix concluded scene message actions ### 📊 Changes **1 file changed** (+62 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/shared/chat-ui/components/ChatMessage.tsx` (+62 -41) </details> ### 📄 Description ## Linked issue Closes #1516 ## Why this change - Concluded Roleplay scenes are read-only, but message rows still displayed enabled-looking mutation actions after the scene ended. ## What changed - Hides message mutation actions when their owning surface does not provide a handler. - Leaves non-mutating/read actions like copy, translate, prompt peek, replay details, thoughts, and TTS available. ## Refactor impact Primary owner: shared mode UI, Roleplay mode caller contract Impact areas reviewed: - `ChatRoleplaySurface` concluded-scene `messageActions` contract - shared `ChatMessage` roleplay action rendering - conversation/texting message action rendering Boundary notes: - No engine, shared API, Rust, or remote-runtime boundaries changed. - The Roleplay surface still owns concluded-scene read-only state; `ChatMessage` now respects absent handler capability before rendering mutation buttons. Pressure points touched: - shared mode UI: `src/features/modes/shared/chat-ui/components/ChatMessage.tsx` ## Validation - [ ] `pnpm check` passes locally - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Agent-ran checks: - `pnpm exec vitest run src/features/modes/shared/chat-ui/components/ChatMessage.test.ts` passed. - `pnpm typecheck` passed. - `pnpm check:architecture` passed. - Manual browser/Tauri repro was not run. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims Docs/release notes: not needed; this is a narrow bug fix to existing concluded-scene read-only UI behavior. ## UI evidence Not captured; validated by code path and checks above. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:13:48 +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#5157
No description provided.