[PR #7733] [MERGED] chore: polish Conversation video messages and the Secret Plot prompt (#7651, #7657 follow-ups) #7906

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

📋 Pull Request Information

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

Base: staging ← Head: chore/7651-7657-followups


📝 Commits (2)

  • 0eb9031 chore: polish Conversation video messages and the Secret Plot prompt
  • db8fbeb Merge origin/staging into chore/7651-7657-followups

📊 Changes

6 files changed (+187 additions, -43 deletions)

View changed files

📝 docs/roleplay/narrative-director.md (+16 -16)
➕ e2e/conversation-video-gallery.e2e.ts (+134 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+4 -4)
📝 packages/client/src/components/chat/ChatGallery.tsx (+7 -5)
📝 packages/client/src/localization/locales/en.json (+1 -2)
📝 scripts/regressions/profile-export-agent-settings.regression.ts (+25 -16)

📄 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 issue

Refs #7651, #7657

No separate issue: these are the small follow-ups promised to the contributors in the approving reviews of #7651 (Conversation video messages, @JamesMowery) and #7657 (editable Secret Plot prompt, @stonebystone). Neither review asked them to make these changes.

Why this change

  • Videos tab (#7651): in a Conversation chat without Illustrator, the empty Videos tab said "Send a video message or animate a picture…", although neither action was there.
  • Video prompt review (#7651): after you confirmed a Conversation video review, the window stayed open as "submitting" for the whole clip request (often minutes). That request's cleanup could then close a Roleplay video review opened meanwhile.
  • Secret Plot help line (#7657): the help text under the prompt field listed JSON field names, which is too technical for most people. The field names are already in the prompt and the docs.
  • Export regression (#7657): #7657 exempted the three Secret Plot settings from export redaction, but no test covered it.
  • Docs (#7657): the new "Secret Plot prompt" section sat between Run Interval and the "Below the Run Interval field is the Secret plot panel" text, so that panel read as if it were under the prompt. Reset to default also didn't say the agent must be saved.

What changed

  • ChatGallery.tsx: the empty Videos tab suggests sending or animating a video only when Video or Animate is available. Otherwise it shows the existing generic line ("Generated scene videos will appear here"), as Roleplay and Game already do.
  • en.json: removed the unused ui.chat.chatgallery.selfieCharacter key (nothing in the repo references it). The Secret Plot help line now reads "Keep the JSON reply format at the end, or the arc can't be read."
  • ChatArea.tsx (Conversation video handler only): the review this call opened closes as soon as its prompts are read, before the long video request. The finally no longer closes the review, so it can't close a review opened while the clip is being made. The Roleplay handler is unchanged.
  • scripts/regressions/profile-export-agent-settings.regression.ts: #7727 (the #7661 fix) added this file on staging while this PR was open, so the two versions are merged. The file keeps all of #7727's cases, which already include the three Secret Plot settings surviving export. It adds this PR's cases: secretPlotApiKey comes back null, a spotifyAccessToken nested in an object (not only in an array) comes back null, and settings that arrive already parsed export the same way as JSON text.
  • New e2e/conversation-video-gallery.e2e.ts (two tests): the empty Videos tab text with and without Illustrator, and a confirmed Conversation video review closing while the clip request is still pending. Both tests fail against the code before this PR.
  • docs/roleplay/narrative-director.md: the "Secret Plot prompt" section moves after "The arc stays with the agent". The Reset to default step now ends "then save the agent". The #7658 body now gives the subsection's new place.

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

Checks the agent ran locally (these are results to confirm, not ticked boxes):

  • tsc --noEmit for shared, server, client and the root project (e2e types): clean.
  • eslint on ChatArea.tsx and ChatGallery.tsx: clean. prettier --check on every changed file, plus pnpm format:check: clean.
  • node scripts/check-locales.mjs and pnpm localization:check: pass.
  • Regressions (each run with node ./scripts/run-regressions.mjs --filter …), all passing: profile-export-agent-settings (merged with #7727's version), convo-video-command, tracker-gallery-ui, character-identity, frozen-server-client-timeouts, roleplay-streaming, tts-safari-play-guard, tts-source-persistence, agent-retry-batching, open-issues, prompt, nanogpt-credentials, connection-model-list.
  • Playwright (--project=desktop-chromium --workers=1): e2e/conversation-video-gallery.e2e.ts (2 tests) and the existing "Gallery Illustrate offers active custom image agents" all pass. No existing spec covered the Videos tab.

Manual verification notes

  • Manually verify in a Conversation chat without Illustrator installed: open Chat Settings → Gallery → Videos. It shows "No videos yet" and "Generated scene videos will appear here", with no Video button.
  • Manually verify the same tab with Illustrator installed: it shows "Send a video message or animate a picture to fill this tab", and the Video button is there.
  • Manually verify with Settings → "Expose media prompts before sending" on: in a Conversation chat, click Gallery → Video, then click Generate in the review. The review window closes right away, the Video button shows Generating, and the clip still arrives.
  • Manually verify that cancelling that review still closes it and sends nothing.
  • Manually verify in the Agent editor that the Narrative Director's Secret Plot Prompt help line is the new single sentence.
  • Manually verify that docs/roleplay/narrative-director.md reads in order in the in-app docs viewer.

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 (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

The doc changes are covered by the existing [docs-i18n] follow-ups: #7658 (narrative-director.md, body updated to give the subsection's new place) and #7650 (the #7651 video message docs; this PR doesn't change those docs). No CHANGELOG entry, as release notes are compiled from merged PRs.

UI evidence (if applicable)

The UI changes are small: one empty-state line, one help line, and the review window closing sooner. The Playwright spec above covers the first and last.

Summary by CodeRabbit

  • Bug Fixes
    • The Videos tab now shows a message appropriate to whether video generation or image animation is available.
    • Confirming a video prompt review closes the dialog immediately, without affecting reviews opened while generation is still in progress.
  • Documentation
    • Updated Secret Plot guidance to clarify that the JSON reply format must remain at the end of the prompt and that the agent should be saved after restoring the default prompt.

🔄 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/7733 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/16/2026 **Status:** ✅ Merged **Merged:** 10/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `chore/7651-7657-followups` --- ### 📝 Commits (2) - [`0eb9031`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0eb90313b34456e9ea6e99009c27bf3bd8681f62) chore: polish Conversation video messages and the Secret Plot prompt - [`db8fbeb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/db8fbebb515e62113737e6d318ab33a8fdd92a62) Merge origin/staging into chore/7651-7657-followups ### 📊 Changes **6 files changed** (+187 additions, -43 deletions) <details> <summary>View changed files</summary> 📝 `docs/roleplay/narrative-director.md` (+16 -16) ➕ `e2e/conversation-video-gallery.e2e.ts` (+134 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+4 -4) 📝 `packages/client/src/components/chat/ChatGallery.tsx` (+7 -5) 📝 `packages/client/src/localization/locales/en.json` (+1 -2) 📝 `scripts/regressions/profile-export-agent-settings.regression.ts` (+25 -16) </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`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Refs #7651, #7657 No separate issue: these are the small follow-ups promised to the contributors in the approving reviews of #7651 (Conversation video messages, @JamesMowery) and #7657 (editable Secret Plot prompt, @stonebystone). Neither review asked them to make these changes. ## Why this change - **Videos tab (#7651):** in a Conversation chat without Illustrator, the empty Videos tab said "Send a video message or animate a picture…", although neither action was there. - **Video prompt review (#7651):** after you confirmed a Conversation video review, the window stayed open as "submitting" for the whole clip request (often minutes). That request's cleanup could then close a Roleplay video review opened meanwhile. - **Secret Plot help line (#7657):** the help text under the prompt field listed JSON field names, which is too technical for most people. The field names are already in the prompt and the docs. - **Export regression (#7657):** #7657 exempted the three Secret Plot settings from export redaction, but no test covered it. - **Docs (#7657):** the new "Secret Plot prompt" section sat between Run Interval and the "Below the **Run Interval** field is the **Secret plot** panel" text, so that panel read as if it were under the prompt. Reset to default also didn't say the agent must be saved. ## What changed - `ChatGallery.tsx`: the empty Videos tab suggests sending or animating a video only when Video or Animate is available. Otherwise it shows the existing generic line ("Generated scene videos will appear here"), as Roleplay and Game already do. - `en.json`: removed the unused `ui.chat.chatgallery.selfieCharacter` key (nothing in the repo references it). The Secret Plot help line now reads "Keep the JSON reply format at the end, or the arc can't be read." - `ChatArea.tsx` (Conversation video handler only): the review this call opened closes as soon as its prompts are read, before the long video request. The `finally` no longer closes the review, so it can't close a review opened while the clip is being made. The Roleplay handler is unchanged. - `scripts/regressions/profile-export-agent-settings.regression.ts`: #7727 (the #7661 fix) added this file on staging while this PR was open, so the two versions are merged. The file keeps all of #7727's cases, which already include the three Secret Plot settings surviving export. It adds this PR's cases: `secretPlotApiKey` comes back `null`, a `spotifyAccessToken` nested in an object (not only in an array) comes back `null`, and settings that arrive already parsed export the same way as JSON text. - New `e2e/conversation-video-gallery.e2e.ts` (two tests): the empty Videos tab text with and without Illustrator, and a confirmed Conversation video review closing while the clip request is still pending. Both tests fail against the code before this PR. - `docs/roleplay/narrative-director.md`: the "Secret Plot prompt" section moves after "The arc stays with the agent". The Reset to default step now ends "then save the agent". The #7658 body now gives the subsection's new place. ## 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` Checks the agent ran locally (these are results to confirm, not ticked boxes): - `tsc --noEmit` for shared, server, client and the root project (e2e types): clean. - `eslint` on `ChatArea.tsx` and `ChatGallery.tsx`: clean. `prettier --check` on every changed file, plus `pnpm format:check`: clean. - `node scripts/check-locales.mjs` and `pnpm localization:check`: pass. - Regressions (each run with `node ./scripts/run-regressions.mjs --filter …`), all passing: `profile-export-agent-settings` (merged with #7727's version), `convo-video-command`, `tracker-gallery-ui`, `character-identity`, `frozen-server-client-timeouts`, `roleplay-streaming`, `tts-safari-play-guard`, `tts-source-persistence`, `agent-retry-batching`, `open-issues`, `prompt`, `nanogpt-credentials`, `connection-model-list`. - Playwright (`--project=desktop-chromium --workers=1`): `e2e/conversation-video-gallery.e2e.ts` (2 tests) and the existing "Gallery Illustrate offers active custom image agents" all pass. No existing spec covered the Videos tab. ### Manual verification notes - Manually verify in a Conversation chat **without** Illustrator installed: open Chat Settings → Gallery → Videos. It shows "No videos yet" and "Generated scene videos will appear here", with no Video button. - Manually verify the same tab **with** Illustrator installed: it shows "Send a video message or animate a picture to fill this tab", and the Video button is there. - Manually verify with Settings → "Expose media prompts before sending" on: in a Conversation chat, click Gallery → Video, then click Generate in the review. The review window closes right away, the Video button shows Generating, and the clip still arrives. - Manually verify that cancelling that review still closes it and sends nothing. - Manually verify in the Agent editor that the Narrative Director's Secret Plot Prompt help line is the new single sentence. - Manually verify that `docs/roleplay/narrative-director.md` reads in order in the in-app docs viewer. ## 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 (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) The doc changes are covered by the existing `[docs-i18n]` follow-ups: #7658 (`narrative-director.md`, body updated to give the subsection's new place) and #7650 (the #7651 video message docs; this PR doesn't change those docs). No CHANGELOG entry, as release notes are compiled from merged PRs. ## UI evidence (if applicable) The UI changes are small: one empty-state line, one help line, and the review window closing sooner. The Playwright spec above covers the first and last. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * The Videos tab now shows a message appropriate to whether video generation or image animation is available. * Confirming a video prompt review closes the dialog immediately, without affecting reviews opened while generation is still in progress. * **Documentation** * Updated Secret Plot guidance to clarify that the JSON reply format must remain at the end of the prompt and that the agent should be saved after restoring the default prompt. <!-- 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-24 04:08:43 +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#7906
No description provided.