[PR #8880] [MERGED] fix: add-main-choice regression context, and a Story Writer screenshot in the v2.5.2 What's New #8858

Closed
opened 2026-11-07 17:40:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8880
Author: @SpicyMarinara
Created: 11/5/2026
Status: ✅ Merged
Merged: 11/5/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/add-main-choice-regression


📝 Commits (2)

  • f7a2da9 test(connections): give add-main-choice the context #8876's Decision pick reads
  • 53b1be1 feat(client): add a Story Writer screenshot to the v2.5.2 What's New

📊 Changes

5 files changed (+19 additions, -1 deletions)

View changed files

📝 packages/client/public/releases/2.5.2/README.md (+7 -1)
➕ packages/client/public/releases/2.5.2/story-writer.jpg (+0 -0)
📝 packages/client/src/components/modals/WhatsNewModal.tsx (+6 -0)
📝 packages/client/src/localization/locales/en.json (+1 -0)
📝 scripts/regressions/add-main-choice.regression.ts (+5 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.

Linked issue

Closes #8879

Why this change

#8876 made the Add window's Done pick the Decision model when the window is opened for the Decision job. It did that inside applyChoices, which now reads job, picks, decisionOptions and selectDecision. add-main-choice.regression.ts runs that handler with a hand-made context that lacked them, so it threw "job is not defined". That fails node-regressions on staging and on the v2.5.2 promotion #8878. The app itself is unaffected.

The maintainer also asked for a Story Writer screenshot in the v2.5.2 What's New. Story Writer was the only package section there without a picture.

What changed

  • The regression's context now opens the window for no job: job: null, no picks, no Decision options, and a selectDecision that fails the test if it is ever called. The regression still checks what it was written for: Done saves the Main model before closing and keeps the window open when that save fails.
  • The Decision path stays covered by the agent-activation-questions browser test from #8876.
  • What's New 2.5.2: the Story Writer section now shows story-writer.jpg: the open antique book at chapter 2 with the sticky Author's note and Write next chapter. It is the package's own first store preview from Marinara-Agents (store/previews/story-writer-1.webp), converted to JPEG at 1280×800. Its English alt text is in en.json, and releases/2.5.2/README.md records where it came from. It was taken on an earlier build, so its header reads v2.5.1.

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

  • Manually verify that the v2.5.2 What's New shows the Story Writer screenshot under its paragraph, and that it opens full size like the other pictures.

Agent-run checks:

  • node ./scripts/run-regressions.mjs --filter add-main-choice: 1/1 passed (it failed before this change, as in CI).
  • The full Node regression suite: 1674/1674 passed. shutdown-deadline failed its first try under load (exit 143, expected 75) and passed when retried.
  • pnpm localization:check, client tsc --noEmit and Prettier on the changed files: pass.

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)

🤖 Generated with Claude Code


🔄 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/8880 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/5/2026 **Status:** ✅ Merged **Merged:** 11/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/add-main-choice-regression` --- ### 📝 Commits (2) - [`f7a2da9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f7a2da9bbe1f1d25f63487bd09aa68bf89a15c68) test(connections): give add-main-choice the context #8876's Decision pick reads - [`53b1be1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/53b1be15512d88856350b83150f074444b60613d) feat(client): add a Story Writer screenshot to the v2.5.2 What's New ### 📊 Changes **5 files changed** (+19 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/public/releases/2.5.2/README.md` (+7 -1) ➕ `packages/client/public/releases/2.5.2/story-writer.jpg` (+0 -0) 📝 `packages/client/src/components/modals/WhatsNewModal.tsx` (+6 -0) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) 📝 `scripts/regressions/add-main-choice.regression.ts` (+5 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. ## Linked issue Closes #8879 ## Why this change #8876 made the Add window's Done pick the Decision model when the window is opened for the Decision job. It did that inside `applyChoices`, which now reads `job`, `picks`, `decisionOptions` and `selectDecision`. `add-main-choice.regression.ts` runs that handler with a hand-made context that lacked them, so it threw "job is not defined". That fails node-regressions on staging and on the v2.5.2 promotion #8878. The app itself is unaffected. The maintainer also asked for a Story Writer screenshot in the v2.5.2 What's New. Story Writer was the only package section there without a picture. ## What changed - The regression's context now opens the window for no job: `job: null`, no picks, no Decision options, and a `selectDecision` that fails the test if it is ever called. The regression still checks what it was written for: Done saves the Main model before closing and keeps the window open when that save fails. - The Decision path stays covered by the `agent-activation-questions` browser test from #8876. - **What's New 2.5.2:** the Story Writer section now shows `story-writer.jpg`: the open antique book at chapter 2 with the sticky **Author's note** and **Write next chapter**. It is the package's own first store preview from Marinara-Agents (`store/previews/story-writer-1.webp`), converted to JPEG at 1280×800. Its English alt text is in `en.json`, and `releases/2.5.2/README.md` records where it came from. It was taken on an earlier build, so its header reads v2.5.1. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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 - Manually verify that the v2.5.2 What's New shows the Story Writer screenshot under its paragraph, and that it opens full size like the other pictures. Agent-run checks: - `node ./scripts/run-regressions.mjs --filter add-main-choice`: 1/1 passed (it failed before this change, as in CI). - The full Node regression suite: 1674/1674 passed. `shutdown-deadline` failed its first try under load (exit 143, expected 75) and passed when retried. - `pnpm localization:check`, client `tsc --noEmit` and Prettier on the changed files: pass. ## 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) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:40:15 +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#8858
No description provided.