[PR #4322] [MERGED] Fix Noodle image resilience and Gallery video deletion #6333

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4322
Author: @SpicyMarinara
Created: 7/30/2026
Status: ✅ Merged
Merged: 7/31/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/issue-sweep-4310-4314-4315


📝 Commits (3)

  • 0b24ca2 chore: start issue sweep
  • 2649495 Fix Noodle image and Gallery video gaps
  • a89436e Harden scene video cleanup ordering

📊 Changes

8 files changed (+218 additions, -9 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 packages/client/src/components/chat/ChatGallery.tsx (+50 -0)
📝 packages/client/src/hooks/use-gallery.ts (+21 -0)
📝 packages/client/src/localization/locales/en.json (+4 -0)
📝 packages/server/src/routes/gallery.routes.ts (+15 -0)
📝 packages/server/src/services/noodle/noodle-vision.ts (+2 -5)
📝 scripts/regressions/noodle-vision.regression.ts (+15 -0)
📝 scripts/regressions/open-issues.regression.ts (+109 -4)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issues

Closes #4310
Closes #4314
Closes #4315

Why this change

Noodle refreshes could forward corrupt image bytes after a failed decode, and generated scene videos lacked the delete action already available for Gallery images. The sweep also verified the reported agent dice-tool path instead of adding a second allowlist: current staging already exposes and executes roll_dice for agents, so this PR locks that behavior in with a runtime regression.

Changes

  • Skip corrupt or undecodable Noodle images before captioning or multimodal generation, allowing the refresh to continue text-only.
  • Add a chat-scoped scene-video deletion route and a localized Gallery delete action with destructive confirmation and pinned-view cleanup.
  • Exercise the real agent tool-resolution and execution path for roll_dice.
  • Repair three stale open-issue regression assertions to match already-merged staging behavior.
  • Record the user-facing fixes in the changelog.

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

Automated validation run:

  • pnpm check
  • pnpm regression:noodle
  • pnpm regression:issues
  • git diff --check

pnpm smoke:ui completed 153 tests and exposed 13 unrelated existing failures in accent-color, Tracker, mobile composer, and Background Library assertions; none exercise the files changed here.

Manual verification needed

  • Manually verify a Noodle refresh with a corrupt gallery image continues without attaching that image.
  • Manually verify video deletion can be canceled and confirmed without changing its source message or other media.
  • Manually verify the video delete action remains visible and usable on a mobile viewport.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

Summary by CodeRabbit

  • New Features

    • Added the ability to delete generated scene videos from Chat Gallery with confirmation and status feedback.
    • Removed deleted videos from pinned views and selected-file details.
  • Bug Fixes

    • Invalid Noodle timeline images are now skipped before captioning or multimodal generation.
    • Improved cleanup and validation for generated images and background folders.
  • Tests

    • Added regression coverage for invalid images, scene-video deletion, tool execution, and gallery behavior.

🔄 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/4322 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/30/2026 **Status:** ✅ Merged **Merged:** 7/31/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/issue-sweep-4310-4314-4315` --- ### 📝 Commits (3) - [`0b24ca2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0b24ca2b35da0e14d04803345b6d6e1795b2f715) chore: start issue sweep - [`2649495`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2649495ec9ef9c28dddd12af00ceaf4e376c3965) Fix Noodle image and Gallery video gaps - [`a89436e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a89436e3c4f7867283b892f40e5575cdbb6c56c8) Harden scene video cleanup ordering ### 📊 Changes **8 files changed** (+218 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `packages/client/src/components/chat/ChatGallery.tsx` (+50 -0) 📝 `packages/client/src/hooks/use-gallery.ts` (+21 -0) 📝 `packages/client/src/localization/locales/en.json` (+4 -0) 📝 `packages/server/src/routes/gallery.routes.ts` (+15 -0) 📝 `packages/server/src/services/noodle/noodle-vision.ts` (+2 -5) 📝 `scripts/regressions/noodle-vision.regression.ts` (+15 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+109 -4) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issues Closes #4310 Closes #4314 Closes #4315 ## Why this change Noodle refreshes could forward corrupt image bytes after a failed decode, and generated scene videos lacked the delete action already available for Gallery images. The sweep also verified the reported agent dice-tool path instead of adding a second allowlist: current `staging` already exposes and executes `roll_dice` for agents, so this PR locks that behavior in with a runtime regression. ## Changes - Skip corrupt or undecodable Noodle images before captioning or multimodal generation, allowing the refresh to continue text-only. - Add a chat-scoped scene-video deletion route and a localized Gallery delete action with destructive confirmation and pinned-view cleanup. - Exercise the real agent tool-resolution and execution path for `roll_dice`. - Repair three stale open-issue regression assertions to match already-merged staging behavior. - Record the user-facing fixes in the changelog. ## 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` Automated validation run: - `pnpm check` - `pnpm regression:noodle` - `pnpm regression:issues` - `git diff --check` `pnpm smoke:ui` completed 153 tests and exposed 13 unrelated existing failures in accent-color, Tracker, mobile composer, and Background Library assertions; none exercise the files changed here. ### Manual verification needed - Manually verify a Noodle refresh with a corrupt gallery image continues without attaching that image. - Manually verify video deletion can be canceled and confirmed without changing its source message or other media. - Manually verify the video delete action remains visible and usable on a mobile viewport. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added the ability to delete generated scene videos from Chat Gallery with confirmation and status feedback. * Removed deleted videos from pinned views and selected-file details. * **Bug Fixes** * Invalid Noodle timeline images are now skipped before captioning or multimodal generation. * Improved cleanup and validation for generated images and background folders. * **Tests** * Added regression coverage for invalid images, scene-video deletion, tool execution, and gallery behavior. <!-- 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:09: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#6333
No description provided.