[GH-ISSUE #4192] [Feature]: Allow assistant message edits while Illustrator generation is running #2269

Closed
opened 2026-10-21 05:46:51 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4192

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

The last generated assistant message cannot currently be edited while its Illustrator image request is queued or generating. Once the image prompt has already been assembled and submitted as an independent generation job, locking the source message is unnecessary and prevents users from immediately correcting or refining the text.

Deleting the source message during generation also needs a defined non-destructive outcome. The in-flight image generation should not be cancelled or discarded merely because the message no longer exists.

Proposed solution

  • Allow the user to edit the last generated assistant message while its Illustrator image request is queued or actively generating.
  • Treat the image job’s assembled prompt as an immutable snapshot; later message edits must not restart, cancel, or alter that in-flight request.
  • If the assistant message still exists when generation finishes, attach the generated image without overwriting or reverting the user’s edited text.
  • Allow the user to delete the assistant message while generation is in progress.
  • If the source message was deleted before completion, let the image finish and save it to Gallery as a standalone image. Do not recreate the deleted message or insert a replacement chat message.
  • Handle completion by checking whether the source message still exists, so edit/delete races cannot lose the generated image or restore stale message content.

Alternatives considered

  • Continue locking the message until image generation finishes. This unnecessarily blocks text editing after the image request has already been assembled.
  • Cancel or discard the image when the source message is deleted. This wastes an already queued or active generation and prevents the user from retaining the result in Gallery.

Additional context

This applies to assistant messages that trigger Illustrator image generation. Editing should remain independent from the frozen image-generation prompt, while deletion should change only the completion destination from message attachment to Gallery-only storage.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4192 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? The last generated assistant message cannot currently be edited while its Illustrator image request is queued or generating. Once the image prompt has already been assembled and submitted as an independent generation job, locking the source message is unnecessary and prevents users from immediately correcting or refining the text. Deleting the source message during generation also needs a defined non-destructive outcome. The in-flight image generation should not be cancelled or discarded merely because the message no longer exists. ## Proposed solution - Allow the user to edit the last generated assistant message while its Illustrator image request is queued or actively generating. - Treat the image job’s assembled prompt as an immutable snapshot; later message edits must not restart, cancel, or alter that in-flight request. - If the assistant message still exists when generation finishes, attach the generated image without overwriting or reverting the user’s edited text. - Allow the user to delete the assistant message while generation is in progress. - If the source message was deleted before completion, let the image finish and save it to Gallery as a standalone image. Do not recreate the deleted message or insert a replacement chat message. - Handle completion by checking whether the source message still exists, so edit/delete races cannot lose the generated image or restore stale message content. ## Alternatives considered - Continue locking the message until image generation finishes. This unnecessarily blocks text editing after the image request has already been assembled. - Cancel or discard the image when the source message is deleted. This wastes an already queued or active generation and prevents the user from retaining the result in Gallery. ## Additional context This applies to assistant messages that trigger Illustrator image generation. Editing should remain independent from the frozen image-generation prompt, while deletion should change only the completion destination from message attachment to Gallery-only storage. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 27, 2026):

Implementation is now owned by @SpicyMarinara in draft PR #4193. The fix will separate completed text streaming from pending Illustrator work while preserving Gallery-first completion.

<!-- gh-comment-id:5098011901 --> @SpicyMarinara commented on GitHub (Jul 27, 2026): Implementation is now owned by @SpicyMarinara in draft PR #4193. The fix will separate completed text streaming from pending Illustrator work while preserving Gallery-first completion.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 28, 2026):

Completed by #4193, now merged into staging as 62948b495.

<!-- gh-comment-id:5098323235 --> @SpicyMarinara commented on GitHub (Jul 28, 2026): Completed by #4193, now merged into `staging` as 62948b495.
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#2269
No description provided.