[PR #482] [MERGED] fix: retry conversation generation from send button #4638

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/482
Author: @Xelvanis
Created: 5/6/2026
Status: ✅ Merged
Merged: 5/6/2026
Merged by: @Xelvanis

Base: main ← Head: fix/conversation-empty-send-retry


📝 Commits (2)

  • 716918e fix: retry conversation generation from send button
  • 9e352a3 fix: label conversation send action

📊 Changes

1 file changed (+60 additions, -7 deletions)

View changed files

📝 packages/client/src/components/chat/ConversationInput.tsx (+60 -7)

📄 Description

Linked issue

Closes #

Why this change

  • Conversation-mode generation failures could leave users stuck copying and resending their last message because the send button was inactive when the input was empty.
  • This makes retrying a failed assistant response easier and more consistent with roleplay mode.

What changed

  • Added empty-input retry support to the conversation chat send button when the latest message is from the user.
  • Updated the send button affordance to show a retry icon/title when retry is available.
  • Kept manual group-response mode from auto-retrying, so manual character triggering behavior stays unchanged.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Started conversation chat with character, sent message and immediately stopped generation.
  • Verified greyed out send button becomes a "Retry" button.
  • Verified pressing retry triggers a generate request.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Summary by CodeRabbit

  • New Features
    • Retry messaging: Users can retry sending messages when previous responses are available.
    • Enhanced Send button: Conversation input now shows Send, Stop, and Retry states that adjust to chat activity.
    • Attachment state handling: Improved handling and feedback for attachments during message composition.

🔄 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/482 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/6/2026 **Status:** ✅ Merged **Merged:** 5/6/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `main` ← **Head:** `fix/conversation-empty-send-retry` --- ### 📝 Commits (2) - [`716918e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/716918e011c8b1e007e7fda03a575724121767b9) fix: retry conversation generation from send button - [`9e352a3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9e352a33d2b3867ec527f5db8e4497ef9d21a6e8) fix: label conversation send action ### 📊 Changes **1 file changed** (+60 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+60 -7) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes # ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Conversation-mode generation failures could leave users stuck copying and resending their last message because the send button was inactive when the input was empty. - This makes retrying a failed assistant response easier and more consistent with roleplay mode. ## What changed <!-- List the key changes in this PR --> - Added empty-input retry support to the conversation chat send button when the latest message is from the user. - Updated the send button affordance to show a retry icon/title when retry is available. - Kept manual group-response mode from auto-retrying, so manual character triggering behavior stays unchanged. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [X] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [X] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [X] Above manual verification completed (describe below) - [X] Read and followed `CONTRIBUTING.md` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - [X] Started conversation chat with character, sent message and immediately stopped generation. - [X] Verified greyed out send button becomes a "Retry" button. - [X] Verified pressing retry triggers a generate request. ## Docs and release impact - [X] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Retry messaging: Users can retry sending messages when previous responses are available. * Enhanced Send button: Conversation input now shows Send, Stop, and Retry states that adjust to chat activity. * Attachment state handling: Improved handling and feedback for attachments during message composition. <!-- 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:09:22 +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#4638
No description provided.