[PR #3447] [MERGED] Fix social profile rendering and structured output regressions #5942

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

📋 Pull Request Information

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

Base: staging ← Head: agent/extract-valid-json


📝 Commits (4)

  • a55f400 Accept valid JSON wrapped in model output
  • ce0244a Fix social profile rendering and START prompts
  • 98ad450 Merge remote-tracking branch 'origin/staging' into agent/extract-valid-json
  • 5186777 Merge remote-tracking branch 'origin/staging' into agent/extract-valid-json

📊 Changes

17 files changed (+494 additions, -176 deletions)

View changed files

📝 CHANGELOG.md (+3 -0)
📝 package.json (+2 -1)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+18 -12)
📝 packages/client/src/components/layout/ModalRenderer.tsx (+2 -0)
📝 packages/client/src/components/modals/AboutMeViewerModal.tsx (+106 -94)
📝 packages/client/src/components/noodle/NoodleView.tsx (+66 -21)
➕ packages/client/src/hooks/use-noodle-custom-emojis.ts (+35 -0)
📝 packages/server/src/routes/noodle.routes.ts (+11 -1)
📝 packages/server/src/services/game/jsonish.ts (+100 -12)
📝 packages/server/src/services/generation/character-prompt-context.ts (+11 -2)
📝 packages/server/src/services/prompt/marker-expander.ts (+19 -26)
📝 packages/server/src/services/prompt/prompt-escaping.ts (+5 -0)
📝 packages/server/src/services/storage/noodle.storage.ts (+45 -2)
📝 packages/shared/src/types/noodle.ts (+4 -0)
➕ scripts/regressions/jsonish-output.regression.ts (+24 -0)
📝 scripts/regressions/open-issues.regression.ts (+37 -0)
📝 scripts/regressions/prompt.regression.ts (+6 -5)

📄 Description

Why

Three related reliability regressions need to be corrected before the next staging cut:

  • example dialogue must preserve the literal <START> marker instead of serializing it as &lt;START&gt;
  • social-profile avatars must honor configured crop metadata, and Noodle profile text must render custom emoji consistently
  • structured Game and Noodle output should recover valid JSON even when a model adds thinking, metadata, fences, or stray prose

Closes #3441.
Closes #3443.

What changed

  • preserve the exact <START> example-dialogue sentinel while continuing to escape arbitrary imported prompt markup
  • carry character/persona crop metadata into Noodle account and author snapshots and apply the established crop renderer across Noodle and Conversation About Me avatars
  • render global and profile-owned custom emoji in Noodle profile bios without loading every invited account gallery
  • recover the first balanced valid JSON value from structured Game/Noodle output that contains surrounding model text

Automated evidence

  • pnpm check
  • pnpm regression:issues
  • pnpm regression:prompt
  • pnpm regression:noodle
  • pnpm regression:jsonish
  • focused mobile Chromium Noodle navigation and reply-notification smoke tests

The combined UI smoke run can exhaust the local API rate limiter and produce unrelated 429 toast failures; both affected Noodle cases pass when run independently against a fresh local server.

Manual verification requested

  • Manually verify literal <START> survives example-dialogue edit, save, reload, export, and prompt assembly.
  • Manually verify cropped avatars in conversation cards and every Noodle avatar surface.
  • Manually verify custom emoji render in Noodle profiles.
  • Manually verify wrapped valid JSON is accepted from a live model response.

🔄 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/3447 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/10/2026 **Status:** ✅ Merged **Merged:** 7/10/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/extract-valid-json` --- ### 📝 Commits (4) - [`a55f400`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a55f40023e4afd6cfafcc37de84824cefdb01f58) Accept valid JSON wrapped in model output - [`ce0244a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ce0244af4b8a203ad565044e1b04136ae2f78079) Fix social profile rendering and START prompts - [`98ad450`](https://github.com/Pasta-Devs/Marinara-Engine/commit/98ad45051a0b397b8234b55af8ab05e63631a6a2) Merge remote-tracking branch 'origin/staging' into agent/extract-valid-json - [`5186777`](https://github.com/Pasta-Devs/Marinara-Engine/commit/518677774665f8d0a3e6d50d1575d4072fd8da41) Merge remote-tracking branch 'origin/staging' into agent/extract-valid-json ### 📊 Changes **17 files changed** (+494 additions, -176 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+3 -0) 📝 `package.json` (+2 -1) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+18 -12) 📝 `packages/client/src/components/layout/ModalRenderer.tsx` (+2 -0) 📝 `packages/client/src/components/modals/AboutMeViewerModal.tsx` (+106 -94) 📝 `packages/client/src/components/noodle/NoodleView.tsx` (+66 -21) ➕ `packages/client/src/hooks/use-noodle-custom-emojis.ts` (+35 -0) 📝 `packages/server/src/routes/noodle.routes.ts` (+11 -1) 📝 `packages/server/src/services/game/jsonish.ts` (+100 -12) 📝 `packages/server/src/services/generation/character-prompt-context.ts` (+11 -2) 📝 `packages/server/src/services/prompt/marker-expander.ts` (+19 -26) 📝 `packages/server/src/services/prompt/prompt-escaping.ts` (+5 -0) 📝 `packages/server/src/services/storage/noodle.storage.ts` (+45 -2) 📝 `packages/shared/src/types/noodle.ts` (+4 -0) ➕ `scripts/regressions/jsonish-output.regression.ts` (+24 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+37 -0) 📝 `scripts/regressions/prompt.regression.ts` (+6 -5) </details> ### 📄 Description ## Why Three related reliability regressions need to be corrected before the next staging cut: - example dialogue must preserve the literal `<START>` marker instead of serializing it as `&lt;START&gt;` - social-profile avatars must honor configured crop metadata, and Noodle profile text must render custom emoji consistently - structured Game and Noodle output should recover valid JSON even when a model adds thinking, metadata, fences, or stray prose Closes #3441. Closes #3443. ## What changed - preserve the exact `<START>` example-dialogue sentinel while continuing to escape arbitrary imported prompt markup - carry character/persona crop metadata into Noodle account and author snapshots and apply the established crop renderer across Noodle and Conversation About Me avatars - render global and profile-owned custom emoji in Noodle profile bios without loading every invited account gallery - recover the first balanced valid JSON value from structured Game/Noodle output that contains surrounding model text ## Automated evidence - `pnpm check` - `pnpm regression:issues` - `pnpm regression:prompt` - `pnpm regression:noodle` - `pnpm regression:jsonish` - focused mobile Chromium Noodle navigation and reply-notification smoke tests The combined UI smoke run can exhaust the local API rate limiter and produce unrelated 429 toast failures; both affected Noodle cases pass when run independently against a fresh local server. ## Manual verification requested - [ ] Manually verify literal `<START>` survives example-dialogue edit, save, reload, export, and prompt assembly. - [ ] Manually verify cropped avatars in conversation cards and every Noodle avatar surface. - [ ] Manually verify custom emoji render in Noodle profiles. - [ ] Manually verify wrapped valid JSON is accepted from a live model response. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:05:25 +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#5942
No description provided.