[PR #4231] [MERGED] Fix spellcheck, Echo Chamber sizing, and Seedream routing #6294

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

📋 Pull Request Information

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

Base: staging ← Head: fix/spellcheck-echo-size-persistence


📝 Commits (1)

  • 5ea53df Fix spellcheck, Echo sizing, and Seedream routing

📊 Changes

7 files changed (+161 additions, -19 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+73 -1)
📝 packages/client/src/components/chat/ChatInput.tsx (+0 -1)
📝 packages/client/src/stores/ui.store.ts (+43 -13)
📝 packages/server/src/services/image/image-generation.ts (+4 -2)
📝 packages/shared/src/constants/model-lists.ts (+6 -0)
📝 scripts/regressions/open-issues.regression.ts (+18 -0)
📝 scripts/regressions/roleplay-streaming.regression.ts (+17 -2)

📄 Description

Linked issue

Closes #4225

Related to #4170

Why this change

Three regressions affected otherwise valid workflows:

  • The Firefox Roleplay performance patch explicitly set data-lt-active="false", preventing LanguageTool-style browser extensions from attaching even though native spellcheck remained enabled.
  • Echo Chamber dimensions used the general one-second UI persistence debounce. A browser or app process that closed without a reliable lifecycle event could lose the most recent resize.
  • OpenRouter Seedream 4.5 fell through to the mixed image + text modality request, despite Seedream being image-only and officially served through OpenRouter's Images API.

What changed

  • Remove the Roleplay composer opt-out so spelling extensions can attach while preserving the low-lag input and textarea sizing path.
  • Flush per-chat Echo Chamber dimension changes synchronously and restore them after reload.
  • Classify bytedance-seed/seedream-* as image-only and route it through /api/v1/images.
  • Add Seedream 4.5 to the image-generation fallback model catalog.
  • Add targeted browser and regression coverage for extension-compatible composer attributes, immediate Echo sizing persistence, reload restoration, and Seedream request routing.

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

Commands completed during implementation:

  • pnpm check
  • pnpm regression:roleplay
  • pnpm regression:issues
  • pnpm exec playwright test -c playwright.config.ts --project=desktop-chromium -g "desktop (Roleplay composition|Echo Chamber commits)"

pnpm check completed with the existing NoodleHome.tsx exhaustive-deps warning and no errors.

Manual verification notes

Manual follow-up should verify the configured Firefox spelling extension can underline and suggest corrections without bringing back Roleplay typing lag, resize Echo Chamber and reopen the same chat, and generate one image through an OpenRouter Seedream 4.5 connection.

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

No documentation or release metadata changes are required.

UI evidence (if applicable)

No visual redesign. The browser test verifies Echo Chamber dimensions before and after a full page reload.


🔄 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/4231 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/28/2026 **Status:** ✅ Merged **Merged:** 7/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/spellcheck-echo-size-persistence` --- ### 📝 Commits (1) - [`5ea53df`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5ea53dff307b9e9ddb44cc499fddbb50bc5f8c74) Fix spellcheck, Echo sizing, and Seedream routing ### 📊 Changes **7 files changed** (+161 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+73 -1) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+0 -1) 📝 `packages/client/src/stores/ui.store.ts` (+43 -13) 📝 `packages/server/src/services/image/image-generation.ts` (+4 -2) 📝 `packages/shared/src/constants/model-lists.ts` (+6 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+18 -0) 📝 `scripts/regressions/roleplay-streaming.regression.ts` (+17 -2) </details> ### 📄 Description ## Linked issue Closes #4225 Related to #4170 ## Why this change Three regressions affected otherwise valid workflows: - The Firefox Roleplay performance patch explicitly set `data-lt-active="false"`, preventing LanguageTool-style browser extensions from attaching even though native spellcheck remained enabled. - Echo Chamber dimensions used the general one-second UI persistence debounce. A browser or app process that closed without a reliable lifecycle event could lose the most recent resize. - OpenRouter Seedream 4.5 fell through to the mixed `image` + `text` modality request, despite Seedream being image-only and officially served through OpenRouter's Images API. ## What changed - Remove the Roleplay composer opt-out so spelling extensions can attach while preserving the low-lag input and textarea sizing path. - Flush per-chat Echo Chamber dimension changes synchronously and restore them after reload. - Classify `bytedance-seed/seedream-*` as image-only and route it through `/api/v1/images`. - Add Seedream 4.5 to the image-generation fallback model catalog. - Add targeted browser and regression coverage for extension-compatible composer attributes, immediate Echo sizing persistence, reload restoration, and Seedream request routing. ## 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` Commands completed during implementation: - `pnpm check` - `pnpm regression:roleplay` - `pnpm regression:issues` - `pnpm exec playwright test -c playwright.config.ts --project=desktop-chromium -g "desktop (Roleplay composition|Echo Chamber commits)"` `pnpm check` completed with the existing `NoodleHome.tsx` exhaustive-deps warning and no errors. ### Manual verification notes Manual follow-up should verify the configured Firefox spelling extension can underline and suggest corrections without bringing back Roleplay typing lag, resize Echo Chamber and reopen the same chat, and generate one image through an OpenRouter Seedream 4.5 connection. ## 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] <paths>` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) No documentation or release metadata changes are required. ## UI evidence (if applicable) No visual redesign. The browser test verifies Echo Chamber dimensions before and after a full page reload. --- <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:02 +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#6294
No description provided.