[PR #4652] [MERGED] Fix assigned preset, mobile edit, and reasoning issues #6455

Closed
opened 2026-10-23 04:10:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4652
Author: @SpicyMarinara
Created: 8/5/2026
Status: ✅ Merged
Merged: 8/5/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/spicymarinara-issue-sweep-2


📝 Commits (3)

  • 686efe5 explain unavailable reasoning summaries
  • 5cc78ab fix assigned preset and mobile edit issues
  • cd89e94 address coderabbit review

📊 Changes

18 files changed (+466 additions, -176 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
📝 e2e/core-flows.e2e.ts (+273 -5)
📝 packages/client/src/components/chat/ChatArea.tsx (+8 -1)
📝 packages/client/src/components/chat/ChatMessage.tsx (+44 -16)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+1 -1)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+15 -11)
📝 packages/client/src/components/chat/ConversationMessageActions.tsx (+6 -4)
📝 packages/client/src/components/chat/ConversationMessageGrouped.tsx (+8 -6)
📝 packages/client/src/components/chat/ConversationMessageShared.tsx (+2 -1)
📝 packages/client/src/components/chat/MessageThinkingModal.tsx (+32 -12)
📝 packages/client/src/components/panels/PresetsPanel.tsx (+11 -6)
➕ packages/client/src/lib/message-reasoning.ts (+32 -0)
📝 packages/client/src/localization/locales/en.json (+4 -0)
📝 packages/server/src/routes/prompts.routes.ts (+3 -1)
📝 packages/server/src/services/import/marinara.importer.ts (+1 -1)
📝 packages/server/src/services/import/st-prompt.importer.ts (+3 -111)
📝 packages/shared/src/types/chat.ts (+2 -0)
📝 scripts/regressions/roleplay-streaming.regression.ts (+17 -0)

📄 Description

Why

This sweep addresses the current issues assigned to SpicyMarinara and includes the maintainer-requested reasoning work already present on the branch. The affected behaviors could discard a first mobile edit, preserve obsolete generation settings in preset transfers, clip the active-preset indicator, or hide the reasoning action when a provider reports reasoning tokens without a displayable summary.

What changed

  • Keep Roleplay message editing open until the save request succeeds; on failure, preserve the draft and show a localized retry message.
  • Strip deprecated generation parameters from single and bulk Marinara preset exports, and ignore those parameters in older Marinara and SillyTavern imports.
  • Move the selected-preset checkmark outside the avatar clipping frame while keeping the artwork itself rounded and clipped.
  • Keep the reasoning action visible when reasoning-token usage exists without displayable thinking, and explain that the reasoning summary is unavailable without exposing hidden reasoning.
  • Add focused desktop/mobile regression coverage and user-facing changelog entries.

Issue sweep

Closes #4649
Closes #4650
Closes #4651

#4648 was confirmed as a duplicate of #3993: current staging already discovers both CheckpointLoaderSimple/ckpt_name and UNETLoader/unet_name, including Anima-style diffusion models. It was shipped in v2.3.5 and closed separately without duplicating the implementation here.

Automated validation

  • pnpm check
  • pnpm version:check
  • Focused Playwright coverage for delayed first-edit saves after cancellation (desktop and mobile)
  • Focused Playwright coverage for deprecated preset parameter transfers and selected-preset indicator placement (desktop and mobile where applicable)
  • Focused Playwright reasoning-summary coverage across conversation and roleplay (desktop and mobile)

The broad regression:issues and regression:roleplay scripts currently stop on unrelated stale source-text assertions in untouched viewport/Echo Chamber code; the affected behavior paths above have dedicated passing browser proofs.

Manual verification

  • Manually verify a first Roleplay message edit after cancelling generation on an Android/mobile browser.
  • Manually inspect single and bulk preset exports and import an older preset containing deprecated generation parameters.
  • Manually verify the selected prompt checkmark sits above the avatar border in the Presets panel.
  • Manually verify the unavailable reasoning-summary affordance in conversation and roleplay.

Summary by CodeRabbit

  • Bug Fixes

    • Removed deprecated generation parameters from preset exports and imports.
    • Fixed clipping of the selected-preset checkmark.
    • Preserved Roleplay message edits when saves are delayed or fail.
    • Improved editing feedback and prevented duplicate save attempts.
    • Reasoning actions now remain available when only token usage is reported.
    • Added a clear notice when a reasoning summary is unavailable.
  • Tests

    • Added coverage for preset handling, message editing, reasoning states, and visual indicators.

🔄 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/4652 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/5/2026 **Status:** ✅ Merged **Merged:** 8/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/spicymarinara-issue-sweep-2` --- ### 📝 Commits (3) - [`686efe5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/686efe5857e405b445bd59050a4ee0f0e624b27c) explain unavailable reasoning summaries - [`5cc78ab`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5cc78abf79ba75930a3848393ff48b0922f89be1) fix assigned preset and mobile edit issues - [`cd89e94`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cd89e94173df7815ba34919209b714000fba469d) address coderabbit review ### 📊 Changes **18 files changed** (+466 additions, -176 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `e2e/core-flows.e2e.ts` (+273 -5) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+8 -1) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+44 -16) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+15 -11) 📝 `packages/client/src/components/chat/ConversationMessageActions.tsx` (+6 -4) 📝 `packages/client/src/components/chat/ConversationMessageGrouped.tsx` (+8 -6) 📝 `packages/client/src/components/chat/ConversationMessageShared.tsx` (+2 -1) 📝 `packages/client/src/components/chat/MessageThinkingModal.tsx` (+32 -12) 📝 `packages/client/src/components/panels/PresetsPanel.tsx` (+11 -6) ➕ `packages/client/src/lib/message-reasoning.ts` (+32 -0) 📝 `packages/client/src/localization/locales/en.json` (+4 -0) 📝 `packages/server/src/routes/prompts.routes.ts` (+3 -1) 📝 `packages/server/src/services/import/marinara.importer.ts` (+1 -1) 📝 `packages/server/src/services/import/st-prompt.importer.ts` (+3 -111) 📝 `packages/shared/src/types/chat.ts` (+2 -0) 📝 `scripts/regressions/roleplay-streaming.regression.ts` (+17 -0) </details> ### 📄 Description ## Why This sweep addresses the current issues assigned to `SpicyMarinara` and includes the maintainer-requested reasoning work already present on the branch. The affected behaviors could discard a first mobile edit, preserve obsolete generation settings in preset transfers, clip the active-preset indicator, or hide the reasoning action when a provider reports reasoning tokens without a displayable summary. ## What changed - Keep Roleplay message editing open until the save request succeeds; on failure, preserve the draft and show a localized retry message. - Strip deprecated generation parameters from single and bulk Marinara preset exports, and ignore those parameters in older Marinara and SillyTavern imports. - Move the selected-preset checkmark outside the avatar clipping frame while keeping the artwork itself rounded and clipped. - Keep the reasoning action visible when reasoning-token usage exists without displayable thinking, and explain that the reasoning summary is unavailable without exposing hidden reasoning. - Add focused desktop/mobile regression coverage and user-facing changelog entries. ## Issue sweep Closes #4649 Closes #4650 Closes #4651 #4648 was confirmed as a duplicate of #3993: current `staging` already discovers both `CheckpointLoaderSimple/ckpt_name` and `UNETLoader/unet_name`, including Anima-style diffusion models. It was shipped in v2.3.5 and closed separately without duplicating the implementation here. ## Automated validation - `pnpm check` - `pnpm version:check` - Focused Playwright coverage for delayed first-edit saves after cancellation (desktop and mobile) - Focused Playwright coverage for deprecated preset parameter transfers and selected-preset indicator placement (desktop and mobile where applicable) - Focused Playwright reasoning-summary coverage across conversation and roleplay (desktop and mobile) The broad `regression:issues` and `regression:roleplay` scripts currently stop on unrelated stale source-text assertions in untouched viewport/Echo Chamber code; the affected behavior paths above have dedicated passing browser proofs. ## Manual verification - [ ] Manually verify a first Roleplay message edit after cancelling generation on an Android/mobile browser. - [ ] Manually inspect single and bulk preset exports and import an older preset containing deprecated generation parameters. - [ ] Manually verify the selected prompt checkmark sits above the avatar border in the Presets panel. - [ ] Manually verify the unavailable reasoning-summary affordance in conversation and roleplay. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Removed deprecated generation parameters from preset exports and imports. - Fixed clipping of the selected-preset checkmark. - Preserved Roleplay message edits when saves are delayed or fail. - Improved editing feedback and prevented duplicate save attempts. - Reasoning actions now remain available when only token usage is reported. - Added a clear notice when a reasoning summary is unavailable. - **Tests** - Added coverage for preset handling, message editing, reasoning states, and visual indicators. <!-- 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-23 04:10:35 +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#6455
No description provided.