[PR #8257] [MERGED] fix: retain Seedance upload settings and gallery references #8252

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8257
Author: @SpicyMarinara
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/seedance-gallery-reference-url


📝 Commits (2)

  • 336bde0 test: reproduce missing gallery animation reference URL
  • 1c7abcd fix: retain saved Seedance settings and gallery references

📊 Changes

4 files changed (+193 additions, -3 deletions)

View changed files

➕ e2e/seedance-reference-upload.e2e.ts (+113 -0)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+2 -1)
📝 packages/server/src/services/capability-packages/capability-gallery-animation.service.ts (+7 -2)
📝 scripts/regressions/capability-gallery-animation.regression.ts (+71 -0)

📄 Description

Linked issue

Closes #8256
Related package fix: Marinara-Agents#1665, addressing Marinara-Agents#1664.

Why this change

After saving a Seedance connection and reopening it from the query cache, the editor clears the saved video defaults and shows temporary reference upload as disabled even though the API still stores it as enabled. This prevents users from reliably configuring banner animation. The capability host also drops the existing gallery image URL, so Seedance cannot use a configured public HTTPS origin.

What changed

  • Initialize the editor's provider from an already cached connection so saved upload consent, link lifetime, and duration survive reopening.
  • Preserve the validated, encoded Global Gallery URL for original PNG/JPEG animation references when temporary upload is disabled. Converted images keep using their converted bytes.
  • Keep the existing byte/upload path when temporary reference upload is enabled, so an authenticated public origin cannot override that explicit option.
  • Add browser save/reopen/reload coverage and a real Seedance adapter fixture that intercepts submission before generation.

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 results cover final source commit 1c7abcdac5b0642af6fbcd835347c98048b43f96:

  • pnpm check: passed, including localization, formatting, TypeScript, lint, and production builds. One unrelated pre-existing React Hook warning remains in HomeProfessorMariChat.tsx.
  • node scripts/run-regressions.mjs --filter capability-gallery-animation.regression.ts: passed. Covers encoded PNG/JPEG URLs, converted WebP, missing public configuration, exact looping reference URLs, explicit upload precedence, and existing validation/cancellation/credential boundaries.
  • e2e/seedance-reference-upload.e2e.ts: 6/6 passed across dark/light desktop Chromium, mobile Chromium, and mobile WebKit. Covers save/API persistence, cached editor remount, full reload, and disabling/saving/reopening while preserving duration and lifetime.
  • playwright test -c playwright.config.ts --project=desktop-chromium --grep @smoke --workers=1: 7/7 passed on isolated fixture ports.
  • Final local CodeRabbit review: 0 findings across all four files. An earlier valid upload-precedence finding was fixed and re-reviewed; independent client/host reviews found no unresolved substantive defects.

Manual verification notes

Manually verify a real Seedance animation using a publicly reachable HTTPS origin or the connection's explicit temporary-upload option. All provider submissions in the host regression are intercepted; no paid generation or temporary image upload was made.

Firefox could not start locally: the required Playwright revision is missing, and the cached older binary also exits before assertions. Firefox assertions and physical-device behavior remain unverified. Docker is installed but its local daemon socket is unavailable; the required hosted container lane remains a merge gate.

Browser screenshots and the original failure trace are retained for the checkbox round trip. There are no layout or style changes.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) 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)

The existing setting and public-base configuration retain their meanings; no release metadata or documentation changes are needed.

UI evidence (if applicable)

Fixture UI screenshots and SHA256 provenance (download the HTML and open locally). The file includes exact, unedited Engine and companion Gacha Forge screenshots with their tested revisions.

The Engine starting-state screenshot shows the enabled control before the failing cached reopen. The original API-true/UI-unchecked failure is established by the red regression assertion and trace, rather than an offscreen checkbox in that screenshot. Final browser cases preserve the saved enabled and disabled choices in both themes.


🔄 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/8257 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/seedance-gallery-reference-url` --- ### 📝 Commits (2) - [`336bde0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/336bde09ee710c3d0559822213ac3accf910d573) test: reproduce missing gallery animation reference URL - [`1c7abcd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1c7abcdac5b0642af6fbcd835347c98048b43f96) fix: retain saved Seedance settings and gallery references ### 📊 Changes **4 files changed** (+193 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `e2e/seedance-reference-upload.e2e.ts` (+113 -0) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+2 -1) 📝 `packages/server/src/services/capability-packages/capability-gallery-animation.service.ts` (+7 -2) 📝 `scripts/regressions/capability-gallery-animation.regression.ts` (+71 -0) </details> ### 📄 Description ## Linked issue Closes #8256 Related package fix: [Marinara-Agents#1665](https://github.com/Pasta-Devs/Marinara-Agents/pull/1665), addressing [Marinara-Agents#1664](https://github.com/Pasta-Devs/Marinara-Agents/issues/1664). ## Why this change After saving a Seedance connection and reopening it from the query cache, the editor clears the saved video defaults and shows temporary reference upload as disabled even though the API still stores it as enabled. This prevents users from reliably configuring banner animation. The capability host also drops the existing gallery image URL, so Seedance cannot use a configured public HTTPS origin. ## What changed - Initialize the editor's provider from an already cached connection so saved upload consent, link lifetime, and duration survive reopening. - Preserve the validated, encoded Global Gallery URL for original PNG/JPEG animation references when temporary upload is disabled. Converted images keep using their converted bytes. - Keep the existing byte/upload path when temporary reference upload is enabled, so an authenticated public origin cannot override that explicit option. - Add browser save/reopen/reload coverage and a real Seedance adapter fixture that intercepts submission before generation. ## 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 results cover final source commit `1c7abcdac5b0642af6fbcd835347c98048b43f96`: - `pnpm check`: passed, including localization, formatting, TypeScript, lint, and production builds. One unrelated pre-existing React Hook warning remains in `HomeProfessorMariChat.tsx`. - `node scripts/run-regressions.mjs --filter capability-gallery-animation.regression.ts`: passed. Covers encoded PNG/JPEG URLs, converted WebP, missing public configuration, exact looping reference URLs, explicit upload precedence, and existing validation/cancellation/credential boundaries. - `e2e/seedance-reference-upload.e2e.ts`: 6/6 passed across dark/light desktop Chromium, mobile Chromium, and mobile WebKit. Covers save/API persistence, cached editor remount, full reload, and disabling/saving/reopening while preserving duration and lifetime. - `playwright test -c playwright.config.ts --project=desktop-chromium --grep @smoke --workers=1`: 7/7 passed on isolated fixture ports. - Final local CodeRabbit review: 0 findings across all four files. An earlier valid upload-precedence finding was fixed and re-reviewed; independent client/host reviews found no unresolved substantive defects. ### Manual verification notes Manually verify a real Seedance animation using a publicly reachable HTTPS origin or the connection's explicit temporary-upload option. All provider submissions in the host regression are intercepted; no paid generation or temporary image upload was made. Firefox could not start locally: the required Playwright revision is missing, and the cached older binary also exits before assertions. Firefox assertions and physical-device behavior remain unverified. Docker is installed but its local daemon socket is unavailable; the required hosted container lane remains a merge gate. Browser screenshots and the original failure trace are retained for the checkbox round trip. There are no layout or style changes. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) 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) The existing setting and public-base configuration retain their meanings; no release metadata or documentation changes are needed. ## UI evidence (if applicable) [Fixture UI screenshots and SHA256 provenance](https://gist.github.com/SpicyMarinara/f78bae4592c9abb93a8159ac60109450) ([download the HTML and open locally](https://gist.githubusercontent.com/SpicyMarinara/f78bae4592c9abb93a8159ac60109450/raw/74a77c39a95594004596b47056332affdd3092e0/seedance-ui-proof.html)). The file includes exact, unedited Engine and companion Gacha Forge screenshots with their tested revisions. The Engine starting-state screenshot shows the enabled control before the failing cached reopen. The original API-true/UI-unchecked failure is established by the red regression assertion and trace, rather than an offscreen checkbox in that screenshot. Final browser cases preserve the saved enabled and disabled choices in both themes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 04:04:07 +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#8252
No description provided.