[PR #1888] [MERGED] Fix Otome Hearth desktop settings and custom endpoint generation #2015

Closed
opened 2026-11-07 16:38:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1888
Author: @SpicyMarinara
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/otome-settings-custom-endpoints


📝 Commits (3)

  • be0d474 Prepare Otome Hearth settings and endpoint repair release
  • c742f39 Fix Otome desktop settings and JSON format compatibility
  • 9ac5397 Use supported scroll input in mobile WebKit proof

📊 Changes

18 files changed (+580 additions, -137 deletions)

View changed files

➕ artifacts/otome-forge-0.1.12.zip (+0 -0)
📝 catalog/preview/catalog.json (+8 -8)
📝 catalog/preview/notes.json (+6 -6)
📝 catalog/preview/v2/catalog.json (+8 -8)
📝 catalog/preview/v2/notes.json (+6 -6)
📝 catalog/preview/v3/catalog.json (+8 -8)
📝 catalog/preview/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+5 -0)
📝 packages/otome-forge/README.md (+3 -1)
📝 packages/otome-forge/client.js (+6 -0)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+81 -81)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts (+6 -0)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/generation.ts (+50 -7)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/otome-forge-generation.regression.ts (+165 -0)
➕ tests/package-otome-forge-connection.e2e.ts (+83 -0)
📝 tests/package-otome-forge-presentation.e2e.ts (+133 -0)

📄 Description

Linked issue

Closes #1886. Closes #1887. Owner: @SpicyMarinara (Codex).

Why this change

Desktop Settings remained inside Otome Hearth's portrait stage, with several settings tabs clipped outside the mouse-accessible area. Custom OpenAI-compatible endpoints could also reject the mandatory json_object hint before setup or premise generation returned any content.

What changed

  • Settings fills the available Engine panel and wraps its existing tab buttons, including on narrow screens. The existing vertical page scroller, keyboard navigation, theme controls and fullscreen preference stay in use. Other screens retain their current portrait stage.
  • Otome's shared JSON generation core retries once without the optional hint after an explicit, field-linked HTTP 400/422 format rejection. That omission persists into the existing single content-repair turn. The same model, connection, fitted prompt, temperature, output budget and signal are reused. Abort and permission checks run before the retry. JSON/schema/content validation still applies.
  • Authentication, quota, server, network, statusless and unrelated input errors remain terminal. A static debug notice uses the existing logger contract and prompt redaction; upstream error bodies are not copied into that notice.
  • Ships the supported Otome Hearth 0.1.12 rebuild, three preview catalogs and generated release notes. README guidance records desktop settings and the possible additional compatibility request. No shared forge-kit, Engine or Gacha code changed.

Package and security impact

  • Affected executable client/server package: otome-forge.
  • Engine minimum 2.5.1 and Capability API 1.386 are unchanged. No permissions, entrypoints, providers, stored fields or data migration were added. The existing package restart requirement applies.
  • User-authored prompts, selected connection/model and output budgets are retained. The real HTTP fixture observed 24,192 output tokens before and after fallback; no new token cap was added.
  • Gacha 1.27.5 client/server/manifest/ZIP pins and every other package's generated catalog/notes entry are byte-identical to staging.

Regression evidence

  • Settings RED/GREEN: the supplied Opera recording shows a centered portrait stage and clipped tab strip. The published 0.1.11 artifact reproduces the stage/frame mismatch; pre-click tab bounds catch what Playwright auto-scroll formerly concealed. A separate baseline positive proves vertical scrolling already works. The repaired artifact exposes every tab, stays inside its frame, reaches the final control on long pages and preserves Back, keyboard navigation and fullscreen state.
  • Actual Engine/provider RED/GREEN: an isolated real Engine connection uses the reported Gemma model ID and a loopback OAI endpoint returning the exact reported HTTP 400. The old artifact sends response_format: {type: "json_object"} once and fails. The rebuilt artifact sends a second request with only that field removed, receives valid premise JSON and succeeds. The synthetic connection and HTTP server are removed in finally; no live provider is called.
  • Bounded generation behavior: 17 focused generation tests cover 400/422, repeated rejection, both protocol/content-repair orderings, unchanged budgets, abort/permission changes, private log redaction, an absent optional logger hook and non-retryable errors. Existing setup/world-plan/bible and premise-route tests pass unchanged.
  • Proof fixture corrections: the scroll-only case enters Settings at an ordinary Story height before testing a short settings viewport; the original unrelated clipped Story-entry failure is preserved. Mobile WebKit explicitly lacks Playwright's wheel API, so only that context uses native CSSOM scrolling with every geometry/focus/no-write assertion retained. Desktop and mobile Chromium retain wheel input. This is not physical-touch proof. No skips, relaxed assertions or timeout increases were introduced.

Validation

  • Full formatting/lint passed with zero errors and 815 existing warnings. Strict checks passed for all 78 server/shared and 127 client files.
  • All 422 Otome regressions passed (417 TypeScript plus five bundle cases), with no failures or skips. Catalog lanes, package locales, catalog/archive integrity, release notes, forge-kit options, Gacha canonical rebuild and location guards passed.
  • All 17 exact-payload browser cases passed with one worker: eight settings cases across desktop/mobile Chromium and WebKit, one actual Engine/custom-HTTP boundary case, and eight inherited setup plus real-server Gacha co-install positives. Midnight/Pearl and desktop961/1280 plus phone390/844 layouts were visually inspected.
  • CodeRabbit's whole committed review of c742f39dcbea5ac7222b62517d61826d0b47d92c against staging f7135898862d2d47189f96e5a8e14b3c22ec4b26 completed with zero findings across17 text files. Its final incremental review of 9ac5397d80a25cfe2f3fdbd9ed957eef24e89081 covered the single test-input correction with zero findings. Package payloads are identical between those commits.
  • Independently verified all six manifest payload hashes/sizes, the exact seven safe ZIP members and CRCs, all three preview catalog entries, and both installed profiles. ZIP: 3bb28444ad1ac1efdb925e3400849e24468f0ac10bb9fbbfc2b876306ffefdaa (1,654,553 bytes).

Local receipts: /tmp/otome-012-local-validation.json, /tmp/otome-012-browser-proof.json, /tmp/otome-012-root-artifact-audit.json, /tmp/otome-012-installed-and-scope-proof.json, /tmp/otome-012-coderabbit*.log. Original RED logs/traces remain under /tmp/otome-012-*red* and /tmp/otome-1886-* / /tmp/otome-1887-*.

Manual verification

  • Manually verify desktop settings navigation and scrolling in the reported Opera/Windows environment.
  • Manually verify mobile settings with physical touch on an iPhone.
  • Manually verify setup and premise generation against the reporter's actual custom endpoint.

Documentation impact

Updated package README, package changelog and generated release-note sidecars. No Engine user-document paths changed.


🔄 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-Agents/pull/1888 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/otome-settings-custom-endpoints` --- ### 📝 Commits (3) - [`be0d474`](https://github.com/Pasta-Devs/Marinara-Agents/commit/be0d474a9b794d81c7b76d616da2b381fb6fdb6a) Prepare Otome Hearth settings and endpoint repair release - [`c742f39`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c742f39dcbea5ac7222b62517d61826d0b47d92c) Fix Otome desktop settings and JSON format compatibility - [`9ac5397`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9ac5397d80a25cfe2f3fdbd9ed957eef24e89081) Use supported scroll input in mobile WebKit proof ### 📊 Changes **18 files changed** (+580 additions, -137 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.1.12.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+8 -8) 📝 `catalog/preview/notes.json` (+6 -6) 📝 `catalog/preview/v2/catalog.json` (+8 -8) 📝 `catalog/preview/v2/notes.json` (+6 -6) 📝 `catalog/preview/v3/catalog.json` (+8 -8) 📝 `catalog/preview/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+5 -0) 📝 `packages/otome-forge/README.md` (+3 -1) 📝 `packages/otome-forge/client.js` (+6 -0) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+81 -81) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts` (+6 -0) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/generation.ts` (+50 -7) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/otome-forge-generation.regression.ts` (+165 -0) ➕ `tests/package-otome-forge-connection.e2e.ts` (+83 -0) 📝 `tests/package-otome-forge-presentation.e2e.ts` (+133 -0) </details> ### 📄 Description ## Linked issue Closes #1886. Closes #1887. Owner: @SpicyMarinara (Codex). ## Why this change Desktop Settings remained inside Otome Hearth's portrait stage, with several settings tabs clipped outside the mouse-accessible area. Custom OpenAI-compatible endpoints could also reject the mandatory `json_object` hint before setup or premise generation returned any content. ## What changed - Settings fills the available Engine panel and wraps its existing tab buttons, including on narrow screens. The existing vertical page scroller, keyboard navigation, theme controls and fullscreen preference stay in use. Other screens retain their current portrait stage. - Otome's shared JSON generation core retries once without the optional hint after an explicit, field-linked HTTP 400/422 format rejection. That omission persists into the existing single content-repair turn. The same model, connection, fitted prompt, temperature, output budget and signal are reused. Abort and permission checks run before the retry. JSON/schema/content validation still applies. - Authentication, quota, server, network, statusless and unrelated input errors remain terminal. A static debug notice uses the existing logger contract and prompt redaction; upstream error bodies are not copied into that notice. - Ships the supported Otome Hearth 0.1.12 rebuild, three preview catalogs and generated release notes. README guidance records desktop settings and the possible additional compatibility request. No shared forge-kit, Engine or Gacha code changed. ## Package and security impact - Affected executable client/server package: `otome-forge`. - Engine minimum 2.5.1 and Capability API 1.386 are unchanged. No permissions, entrypoints, providers, stored fields or data migration were added. The existing package restart requirement applies. - User-authored prompts, selected connection/model and output budgets are retained. The real HTTP fixture observed 24,192 output tokens before and after fallback; no new token cap was added. - Gacha 1.27.5 client/server/manifest/ZIP pins and every other package's generated catalog/notes entry are byte-identical to staging. ## Regression evidence - **Settings RED/GREEN:** the supplied Opera recording shows a centered portrait stage and clipped tab strip. The published 0.1.11 artifact reproduces the stage/frame mismatch; pre-click tab bounds catch what Playwright auto-scroll formerly concealed. A separate baseline positive proves vertical scrolling already works. The repaired artifact exposes every tab, stays inside its frame, reaches the final control on long pages and preserves Back, keyboard navigation and fullscreen state. - **Actual Engine/provider RED/GREEN:** an isolated real Engine connection uses the reported Gemma model ID and a loopback OAI endpoint returning the exact reported HTTP 400. The old artifact sends `response_format: {type: "json_object"}` once and fails. The rebuilt artifact sends a second request with only that field removed, receives valid premise JSON and succeeds. The synthetic connection and HTTP server are removed in `finally`; no live provider is called. - **Bounded generation behavior:** 17 focused generation tests cover 400/422, repeated rejection, both protocol/content-repair orderings, unchanged budgets, abort/permission changes, private log redaction, an absent optional logger hook and non-retryable errors. Existing setup/world-plan/bible and premise-route tests pass unchanged. - **Proof fixture corrections:** the scroll-only case enters Settings at an ordinary Story height before testing a short settings viewport; the original unrelated clipped Story-entry failure is preserved. Mobile WebKit explicitly lacks Playwright's wheel API, so only that context uses native CSSOM scrolling with every geometry/focus/no-write assertion retained. Desktop and mobile Chromium retain wheel input. This is not physical-touch proof. No skips, relaxed assertions or timeout increases were introduced. ## Validation - Full formatting/lint passed with zero errors and 815 existing warnings. Strict checks passed for all 78 server/shared and 127 client files. - All 422 Otome regressions passed (417 TypeScript plus five bundle cases), with no failures or skips. Catalog lanes, package locales, catalog/archive integrity, release notes, forge-kit options, Gacha canonical rebuild and location guards passed. - All 17 exact-payload browser cases passed with one worker: eight settings cases across desktop/mobile Chromium and WebKit, one actual Engine/custom-HTTP boundary case, and eight inherited setup plus real-server Gacha co-install positives. Midnight/Pearl and desktop961/1280 plus phone390/844 layouts were visually inspected. - CodeRabbit's whole committed review of `c742f39dcbea5ac7222b62517d61826d0b47d92c` against staging `f7135898862d2d47189f96e5a8e14b3c22ec4b26` completed with zero findings across17 text files. Its final incremental review of `9ac5397d80a25cfe2f3fdbd9ed957eef24e89081` covered the single test-input correction with zero findings. Package payloads are identical between those commits. - Independently verified all six manifest payload hashes/sizes, the exact seven safe ZIP members and CRCs, all three preview catalog entries, and both installed profiles. ZIP: `3bb28444ad1ac1efdb925e3400849e24468f0ac10bb9fbbfc2b876306ffefdaa` (1,654,553 bytes). Local receipts: `/tmp/otome-012-local-validation.json`, `/tmp/otome-012-browser-proof.json`, `/tmp/otome-012-root-artifact-audit.json`, `/tmp/otome-012-installed-and-scope-proof.json`, `/tmp/otome-012-coderabbit*.log`. Original RED logs/traces remain under `/tmp/otome-012-*red*` and `/tmp/otome-1886-*` / `/tmp/otome-1887-*`. ## Manual verification - [ ] Manually verify desktop settings navigation and scrolling in the reported Opera/Windows environment. - [ ] Manually verify mobile settings with physical touch on an iPhone. - [ ] Manually verify setup and premise generation against the reporter's actual custom endpoint. ## Documentation impact Updated package README, package changelog and generated release-note sidecars. No Engine user-document paths changed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:38:45 +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-Agents#2015
No description provided.