[PR #3883] [MERGED] fix: resolve assigned generation and sprite bugs #6143

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

📋 Pull Request Information

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

Base: staging ← Head: fix/assigned-issue-sweep-3880-3881


📝 Commits (4)

  • 017578a chore: start assigned issue sweep
  • 51885f6 fix: resolve assigned generation and sprite bugs
  • fc8fc5b refactor: apply CodeRabbit review suggestions
  • 4490a60 fix: prevent concurrent sprite uploads

📊 Changes

13 files changed (+395 additions, -48 deletions)

View changed files

📝 CHANGELOG.md (+3 -0)
📝 android/app/src/main/java/com/marinara/engine/MainActivity.java (+133 -0)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+6 -21)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+19 -0)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+6 -21)
➕ packages/client/src/lib/conversation-selfie-setup.ts (+25 -0)
➕ packages/client/src/lib/file-download.ts (+45 -0)
➕ packages/client/src/lib/sprite-download.ts (+22 -0)
📝 packages/server/src/services/game/jsonish.ts (+30 -1)
📝 packages/server/src/services/noodle/noodle-generated-refresh.ts (+36 -0)
📝 packages/server/src/services/noodle/noodle-public-generation.service.ts (+4 -5)
📝 scripts/regressions/noodle-prompt.regression.ts (+10 -0)
📝 scripts/regressions/open-issues.regression.ts (+56 -0)

📄 Description

Linked issues

Closes #3880
Closes #3881
Closes #3884

Issue #3877 was reviewed during this assigned-only sweep and intentionally remains open because it requires an explicit security and permission-model decision before implementation.

Why this change

Three issues assigned to SpicyMarinara affect common generation and media workflows:

  • Conversation setup can show Selfies as enabled without assigning Illustrator's Generated Selfies connection.
  • Noodle can discard posts and interactions when a local model emits adjacent JSON collection objects.
  • Character and Persona sprite downloads do not complete in the Android shell, while the mobile Upload action can escape its expression row.

What changed

  • Conversation setup now preserves an explicit selfie connection or assigns the default image-generation connection when the installed Selfies command is enabled.
  • Noodle now parses every independent JSON-ish value in a response and merges collection fragments before row validation, on both initial and correction attempts.
  • Sprite downloads now use an Android JavaScript bridge that saves images through MediaStore on Android 10+ and the system file picker on Android 7-9, while retaining browser downloads outside the shell.
  • Character and Persona mobile sprite forms now place Upload below the expression field at phone widths and restore the horizontal row at the existing sm breakpoint.
  • Added regression coverage and Unreleased changelog entries for all three fixes.

Automated evidence

  • pnpm check passed.
  • pnpm regression:noodle passed, including adjacent posts, interactions, and follows.
  • pnpm regression:issues passed, including selfie connection selection and Android/mobile wiring assertions.
  • gradle :app:compileDebugJavaWithJavac passed.
  • pnpm smoke:ui completed with 74 passing and 47 skipped tests; one unrelated Noodle mobile-navigation test failed because its strict selector matches both the header and bottom account-menu buttons.

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 requested

  • Manually create a Conversation with Illustrator installed, Selfies enabled, and a default image connection; verify Generated Selfies opens with that connection selected.
  • Manually refresh Noodle with a local model that emits adjacent JSON objects and verify posts, interactions, and follows all appear.
  • Manually download a saved Character and Persona sprite from the Android bootstrap and verify the image appears under Pictures/Marinara on Android 10+; verify the save picker on Android 7-9 if those devices are supported in the test matrix.
  • Manually inspect both Character and Persona sprite forms at a phone viewport and verify Upload sits below the expression field without horizontal overflow.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

CHANGELOG.md is updated. No install instructions, release version, or version-bearing files changed.

UI evidence

Automated mobile shell coverage ran as part of pnpm smoke:ui. Interactive Android device verification remains requested above.

Summary by CodeRabbit

  • New Features
    • Added a shared device download utility so character/persona sprite downloads reliably save on Android (with browser fallback).
    • Improved chat setup for selfie-enabled flows by auto-selecting the default image-generation connection when none is chosen.
    • Prevented starting a new sprite upload while an upload is already in progress.
  • Bug Fixes
    • Restored Noodle timeline refresh recovery for responses containing multiple adjacent JSON objects (posts, interactions, follows).
    • Improved Android sprite download delivery and adjusted the “Add Sprite” control positioning for mobile card layout.
  • Tests
    • Expanded regression coverage for selfie connection selection and multi-object refresh parsing.

🔄 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/3883 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/20/2026 **Status:** ✅ Merged **Merged:** 7/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/assigned-issue-sweep-3880-3881` --- ### 📝 Commits (4) - [`017578a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/017578a9139a714592a8e7e9a9bcfc3021c263df) chore: start assigned issue sweep - [`51885f6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/51885f6648b75d96db2ecf6b7a32c00f85858528) fix: resolve assigned generation and sprite bugs - [`fc8fc5b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fc8fc5bd4d1bf8438dc949699753457e79e02475) refactor: apply CodeRabbit review suggestions - [`4490a60`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4490a6021f0c63e64db98dc56f575e670c54c789) fix: prevent concurrent sprite uploads ### 📊 Changes **13 files changed** (+395 additions, -48 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+3 -0) 📝 `android/app/src/main/java/com/marinara/engine/MainActivity.java` (+133 -0) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+6 -21) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+19 -0) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+6 -21) ➕ `packages/client/src/lib/conversation-selfie-setup.ts` (+25 -0) ➕ `packages/client/src/lib/file-download.ts` (+45 -0) ➕ `packages/client/src/lib/sprite-download.ts` (+22 -0) 📝 `packages/server/src/services/game/jsonish.ts` (+30 -1) 📝 `packages/server/src/services/noodle/noodle-generated-refresh.ts` (+36 -0) 📝 `packages/server/src/services/noodle/noodle-public-generation.service.ts` (+4 -5) 📝 `scripts/regressions/noodle-prompt.regression.ts` (+10 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+56 -0) </details> ### 📄 Description ## Linked issues Closes #3880 Closes #3881 Closes #3884 Issue #3877 was reviewed during this assigned-only sweep and intentionally remains open because it requires an explicit security and permission-model decision before implementation. ## Why this change Three issues assigned to SpicyMarinara affect common generation and media workflows: - Conversation setup can show Selfies as enabled without assigning Illustrator's Generated Selfies connection. - Noodle can discard posts and interactions when a local model emits adjacent JSON collection objects. - Character and Persona sprite downloads do not complete in the Android shell, while the mobile Upload action can escape its expression row. ## What changed - Conversation setup now preserves an explicit selfie connection or assigns the default image-generation connection when the installed Selfies command is enabled. - Noodle now parses every independent JSON-ish value in a response and merges collection fragments before row validation, on both initial and correction attempts. - Sprite downloads now use an Android JavaScript bridge that saves images through MediaStore on Android 10+ and the system file picker on Android 7-9, while retaining browser downloads outside the shell. - Character and Persona mobile sprite forms now place Upload below the expression field at phone widths and restore the horizontal row at the existing `sm` breakpoint. - Added regression coverage and Unreleased changelog entries for all three fixes. ## Automated evidence - `pnpm check` passed. - `pnpm regression:noodle` passed, including adjacent posts, interactions, and follows. - `pnpm regression:issues` passed, including selfie connection selection and Android/mobile wiring assertions. - `gradle :app:compileDebugJavaWithJavac` passed. - `pnpm smoke:ui` completed with 74 passing and 47 skipped tests; one unrelated Noodle mobile-navigation test failed because its strict selector matches both the header and bottom account-menu buttons. ## 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 requested - Manually create a Conversation with Illustrator installed, Selfies enabled, and a default image connection; verify Generated Selfies opens with that connection selected. - Manually refresh Noodle with a local model that emits adjacent JSON objects and verify posts, interactions, and follows all appear. - Manually download a saved Character and Persona sprite from the Android bootstrap and verify the image appears under Pictures/Marinara on Android 10+; verify the save picker on Android 7-9 if those devices are supported in the test matrix. - Manually inspect both Character and Persona sprite forms at a phone viewport and verify Upload sits below the expression field without horizontal overflow. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) `CHANGELOG.md` is updated. No install instructions, release version, or version-bearing files changed. ## UI evidence Automated mobile shell coverage ran as part of `pnpm smoke:ui`. Interactive Android device verification remains requested above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a shared device download utility so character/persona sprite downloads reliably save on Android (with browser fallback). * Improved chat setup for selfie-enabled flows by auto-selecting the default image-generation connection when none is chosen. * Prevented starting a new sprite upload while an upload is already in progress. * **Bug Fixes** * Restored Noodle timeline refresh recovery for responses containing multiple adjacent JSON objects (posts, interactions, follows). * Improved Android sprite download delivery and adjusted the “Add Sprite” control positioning for mobile card layout. * **Tests** * Expanded regression coverage for selfie connection selection and multi-object refresh parsing. <!-- 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-23 04:07:29 +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#6143
No description provided.