[PR #6072] [MERGED] Issue sweep: Android access, prompts, exports, and provider workflows #7050

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6072
Author: @SpicyMarinara
Created: 9/12/2026
Status: ✅ Merged
Merged: 9/12/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/spicymarinara-issue-sweep-20260912


📝 Commits (7)

  • 344059f fix(prompt): bound identity aliases to individual macros
  • 8dbb459 Fix assigned Android, preset, provider and export issues
  • 8e1376f Keep the full NovelAI V5 cast in manual Illustrator prompts
  • 4adc45d Fix review edge cases in startup, parameters, and character prompts
  • 6123dfa Retain resolved library appearances with partial image captions
  • 9a8e322 Bound partial-caption appearance fallback to the existing reference budget
  • ff6305a Preserve pending Android starts and retain fitting appearance entries

📊 Changes

79 files changed (+3145 additions, -387 deletions)

View changed files

📝 CHANGELOG.md (+15 -0)
📝 README.md (+1 -1)
📝 android/README.md (+7 -8)
📝 android/app/src/main/java/com/marinara/engine/MainActivity.java (+132 -2)
📝 docs/CONFIGURATION.md (+1 -1)
📝 docs/FAQ.md (+1 -1)
📝 docs/TROUBLESHOOTING.md (+2 -4)
📝 docs/agents/agents-overview.md (+1 -1)
📝 docs/characters/import-export.md (+1 -1)
📝 docs/connections/providers-reference.md (+7 -0)
📝 docs/installation/android-termux.md (+4 -2)
📝 docs/media/illustrator-agent.md (+12 -0)
📝 docs/media/image-providers.md (+2 -2)
📝 docs/prompts/generation-parameters.md (+10 -8)
📝 docs/prompts/preset-variables.md (+3 -1)
➕ e2e/assigned-issue-sweep.e2e.ts (+520 -0)
📝 e2e/core-flows.e2e.ts (+1 -1)
📝 e2e/ux-feedback-sweep.e2e.ts (+1 -1)
📝 packages/client/src/components/chat/ChatMessage.tsx (+4 -0)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+4 -0)

...and 59 more files

📄 Description

Linked issue

Closes #6071
Closes #6066
Closes #6065
Closes #6063
Closes #6052
Closes #6038
Closes #5968
Closes #5963
Closes #5869
Closes #5868
Closes #5856
Closes #5836
Closes #5834
Closes #5833

Why this change

Users were losing character identity fields in compatible exports, seeing unresolved greeting variables, and getting different behavior from chat versus auxiliary tools on local models. Android browser entry also required manual authentication and could start another Termux session unnecessarily. This sweep fixes those paths and incorporates the pending assigned provider and parameter features in one staging change.

What changed

Area Behavior
Android (#6071) Remember app/browser launch, authenticate browser entry with a one-use ticket, probe a running authenticated server before starting Termux, keep the startup guard across activity recreation, and expose the launcher from APK settings. The permanent local secret stays out of URLs.
Identity and exports (#6066, #6065) Only supported field macros and conditional operands suppress fallback identity fields; put Backstory and Appearance in compatible V2 Description for JSON/PNG without changing the original native card.
Presets (#5868, #5869) Allow a random initial single choice with manual override and reset unsaved choices when the chat changes; resolve greeting variables at display time using the existing shared choice resolver and retain stored macros.
Parameters (#6052) Reuse the generation resolver to display saved effective values and their source, honor inherited preset values in inputs, and expose preset parameters in the existing editor. Hints describe settings before context fitting and provider-specific request shaping.
Providers (#5963, #5856) Add native Z.AI text connections/GLM metadata and reasoning choices, explain empty replies using the reported budget, and request NanoGPT's detailed model limits.
Auxiliary generation (#6038, #5836, #5833) Let local tools use a blank/default model; keep avatar tag prompts free of prose leads; share NovelAI character-caption validation across Storyboard and Illustrator, including manual/retry paths, partial caption coverage, and preservation of caption identities on image-provider fallback.
Documentation (#6063, #5968, #5834) Correct the 36-agent count and align English install, prompt, export, and provider guides. Z.AI/NovelAI translations already landed in #5993. New translated-guide follow-up: #6073.

#6062 was reviewed separately and closed as not planned with the existing V2 import route and the lack of a documented browse/search API explained in the issue. No BotBooru integration is introduced.

Contributor changes adopted and adapted: #6064 (@arelthegreat / @arelshlomo), #5965 (@OneWayGondola), #5872 (@Bainshie), #5771 (@SonaGat3), #5837 and #5835 (@stonebystone). Commit co-author trailers retain contributor credit. Those PRs are superseded by this maintainer-requested consolidated PR.

Validation

Performed:

  • pnpm install and pnpm check passed (TypeScript, ESLint, formatting, localization, E2E types, production build). The existing GameNarration hook warning is unchanged.

  • TMPDIR=/private/tmp DATA_DIR=<scratch> pnpm regression:node: 250/250 scripts passed, including prompt, provider, macro, export, and Android-auth regressions. Scratch storage avoids the maintainer's running dev instance.

  • Targeted browser suite (assigned-issue-sweep, preset topbar navigation, and preset save/scroll flows): 17 passed across desktop Chromium, mobile Chromium, and mobile WebKit; four intentional skips for duplicate viewport-independent provider/import tests. This includes delayed parameter responses and a picker kept mounted while its chat changes.

  • Review regressions cover invalid/commented identity tokens, conditional operands, ambiguous character names, partial/ensemble/library appearances, native NovelAI HTTPS, and a real local HTTP fallback request carrying caption identities. The full node suite passed again after the review fixes; the final library-appearance case also passed separately.

  • ANDROID_SDK_ROOT=... bash android/build-apk.sh: debug APK built successfully with the normal default port and pinned source commit.

  • docker build -t marinara-issue-sweep:6072 . passed. A fresh-volume container returned healthy API/SPA responses and resolved the new parameter-preview endpoint (blank local model; default output 4096). The initial disk-space interruption was resolved before this successful build/run.

  • 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

Automated real-browser checks edited/saved chat and preset parameters, compared connection defaults in light mode, reopened and changed random choices, and checked the rendered greeting while verifying its stored macros remained unchanged. The API proof compared the output-cap hint with the actual request to a local synthetic provider, ran agents and manual Illustrator with no model selected, and round-tripped JSON/PNG cards while checking native source data. Browser authentication redeemed a ticket without typing a secret, cleared the URL, verified the HttpOnly/SameSite cookie, and rejected replay. Node negative controls cover expiry, invalid proof, remote callers, CSRF, and old manual-secret sign-in.

  • Manually verify on physical Android: Termux permission/setup, repeated Start, activity recreation during setup, APK restart with browser preference, return to app mode, and file import/export. No device or emulator is available locally; the debug build and browser/auth tests do not replace that hardware check.
  • Manually verify paid Z.AI and NovelAI generations with user-owned connections. This sweep uses provider request fixtures and official metadata rather than spending live API credits.
  • Have native readers review the translated guides tracked in #6073.

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] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

No version bump or APK release is included. Android users need both the updated Engine and a subsequently built APK for automatic browser launch. English provider/media translations are covered by merged #5993; #6073 tracks the newly changed guides.

UI evidence (if applicable)

Before/after screenshots and fixture details, including mobile Chromium/WebKit, light connection settings, preset editing, and the Android browser handoff.

Parameter sources before Parameter sources after

Summary by CodeRabbit

  • New Features
    • Added Z.AI connections with GLM model support and reasoning controls.
    • Added preset parameter editing, effective-value/source previews, and randomized single-select defaults.
    • Added preset-variable resolution in greetings and message macros.
    • Added NovelAI multi-character captions, positions, and prompt review details.
    • Added Android app/browser launch preferences with automatic, one-time browser sign-in.
  • Bug Fixes
    • Improved Android startup reuse, local-model selection, empty-response messages, avatar prompts, and character-card exports.
    • NovelAI reference images now fall back with a warning when unsupported.
    • Updated NanoGPT model limits and agent catalog counts.
  • Documentation
    • Updated setup, authentication, parameter, provider, export, and catalog guidance.

🔄 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/6072 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/12/2026 **Status:** ✅ Merged **Merged:** 9/12/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/spicymarinara-issue-sweep-20260912` --- ### 📝 Commits (7) - [`344059f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/344059fb64fe24809baf04281bb538cf1087ca54) fix(prompt): bound identity aliases to individual macros - [`8dbb459`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8dbb459c8d576b46dae3b380955457cdf746d5cb) Fix assigned Android, preset, provider and export issues - [`8e1376f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8e1376f9960beb50e8c0837850b68bbb3340922a) Keep the full NovelAI V5 cast in manual Illustrator prompts - [`4adc45d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4adc45dc13bcaa0f4d33177c4dceab8d82ad2a66) Fix review edge cases in startup, parameters, and character prompts - [`6123dfa`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6123dfae25bb037c085a2f4575c8a1bd99ed4328) Retain resolved library appearances with partial image captions - [`9a8e322`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9a8e3223a112492bcebb851899b268ab3b78cd75) Bound partial-caption appearance fallback to the existing reference budget - [`ff6305a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ff6305a8f361c9017b60810b44fca6f7935f986c) Preserve pending Android starts and retain fitting appearance entries ### 📊 Changes **79 files changed** (+3145 additions, -387 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+15 -0) 📝 `README.md` (+1 -1) 📝 `android/README.md` (+7 -8) 📝 `android/app/src/main/java/com/marinara/engine/MainActivity.java` (+132 -2) 📝 `docs/CONFIGURATION.md` (+1 -1) 📝 `docs/FAQ.md` (+1 -1) 📝 `docs/TROUBLESHOOTING.md` (+2 -4) 📝 `docs/agents/agents-overview.md` (+1 -1) 📝 `docs/characters/import-export.md` (+1 -1) 📝 `docs/connections/providers-reference.md` (+7 -0) 📝 `docs/installation/android-termux.md` (+4 -2) 📝 `docs/media/illustrator-agent.md` (+12 -0) 📝 `docs/media/image-providers.md` (+2 -2) 📝 `docs/prompts/generation-parameters.md` (+10 -8) 📝 `docs/prompts/preset-variables.md` (+3 -1) ➕ `e2e/assigned-issue-sweep.e2e.ts` (+520 -0) 📝 `e2e/core-flows.e2e.ts` (+1 -1) 📝 `e2e/ux-feedback-sweep.e2e.ts` (+1 -1) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+4 -0) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+4 -0) _...and 59 more files_ </details> ### 📄 Description ## Linked issue Closes #6071 Closes #6066 Closes #6065 Closes #6063 Closes #6052 Closes #6038 Closes #5968 Closes #5963 Closes #5869 Closes #5868 Closes #5856 Closes #5836 Closes #5834 Closes #5833 ## Why this change Users were losing character identity fields in compatible exports, seeing unresolved greeting variables, and getting different behavior from chat versus auxiliary tools on local models. Android browser entry also required manual authentication and could start another Termux session unnecessarily. This sweep fixes those paths and incorporates the pending assigned provider and parameter features in one staging change. ## What changed | Area | Behavior | | --- | --- | | Android (#6071) | Remember app/browser launch, authenticate browser entry with a one-use ticket, probe a running authenticated server before starting Termux, keep the startup guard across activity recreation, and expose the launcher from APK settings. The permanent local secret stays out of URLs. | | Identity and exports (#6066, #6065) | Only supported field macros and conditional operands suppress fallback identity fields; put Backstory and Appearance in compatible V2 Description for JSON/PNG without changing the original native card. | | Presets (#5868, #5869) | Allow a random initial single choice with manual override and reset unsaved choices when the chat changes; resolve greeting variables at display time using the existing shared choice resolver and retain stored macros. | | Parameters (#6052) | Reuse the generation resolver to display saved effective values and their source, honor inherited preset values in inputs, and expose preset parameters in the existing editor. Hints describe settings before context fitting and provider-specific request shaping. | | Providers (#5963, #5856) | Add native Z.AI text connections/GLM metadata and reasoning choices, explain empty replies using the reported budget, and request NanoGPT's detailed model limits. | | Auxiliary generation (#6038, #5836, #5833) | Let local tools use a blank/default model; keep avatar tag prompts free of prose leads; share NovelAI character-caption validation across Storyboard and Illustrator, including manual/retry paths, partial caption coverage, and preservation of caption identities on image-provider fallback. | | Documentation (#6063, #5968, #5834) | Correct the 36-agent count and align English install, prompt, export, and provider guides. Z.AI/NovelAI translations already landed in #5993. New translated-guide follow-up: #6073. | #6062 was reviewed separately and closed as not planned with the existing V2 import route and the lack of a documented browse/search API explained in the issue. No BotBooru integration is introduced. Contributor changes adopted and adapted: #6064 (@arelthegreat / @arelshlomo), #5965 (@OneWayGondola), #5872 (@Bainshie), #5771 (@SonaGat3), #5837 and #5835 (@stonebystone). Commit co-author trailers retain contributor credit. Those PRs are superseded by this maintainer-requested consolidated PR. ## Validation Performed: - `pnpm install` and `pnpm check` passed (TypeScript, ESLint, formatting, localization, E2E types, production build). The existing GameNarration hook warning is unchanged. - `TMPDIR=/private/tmp DATA_DIR=<scratch> pnpm regression:node`: **250/250 scripts passed**, including prompt, provider, macro, export, and Android-auth regressions. Scratch storage avoids the maintainer's running dev instance. - Targeted browser suite (`assigned-issue-sweep`, preset topbar navigation, and preset save/scroll flows): **17 passed** across desktop Chromium, mobile Chromium, and mobile WebKit; four intentional skips for duplicate viewport-independent provider/import tests. This includes delayed parameter responses and a picker kept mounted while its chat changes. - Review regressions cover invalid/commented identity tokens, conditional operands, ambiguous character names, partial/ensemble/library appearances, native NovelAI HTTPS, and a real local HTTP fallback request carrying caption identities. The full node suite passed again after the review fixes; the final library-appearance case also passed separately. - `ANDROID_SDK_ROOT=... bash android/build-apk.sh`: debug APK built successfully with the normal default port and pinned source commit. - `docker build -t marinara-issue-sweep:6072 .` passed. A fresh-volume container returned healthy API/SPA responses and resolved the new parameter-preview endpoint (blank local model; default output 4096). The initial disk-space interruption was resolved before this successful build/run. - [ ] `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 Automated real-browser checks edited/saved chat and preset parameters, compared connection defaults in light mode, reopened and changed random choices, and checked the rendered greeting while verifying its stored macros remained unchanged. The API proof compared the output-cap hint with the actual request to a local synthetic provider, ran agents and manual Illustrator with no model selected, and round-tripped JSON/PNG cards while checking native source data. Browser authentication redeemed a ticket without typing a secret, cleared the URL, verified the HttpOnly/SameSite cookie, and rejected replay. Node negative controls cover expiry, invalid proof, remote callers, CSRF, and old manual-secret sign-in. - [ ] Manually verify on physical Android: Termux permission/setup, repeated Start, activity recreation during setup, APK restart with browser preference, return to app mode, and file import/export. No device or emulator is available locally; the debug build and browser/auth tests do not replace that hardware check. - [ ] Manually verify paid Z.AI and NovelAI generations with user-owned connections. This sweep uses provider request fixtures and official metadata rather than spending live API credits. - [ ] Have native readers review the translated guides tracked in #6073. ## 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]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) No version bump or APK release is included. Android users need both the updated Engine and a subsequently built APK for automatic browser launch. English provider/media translations are covered by merged #5993; #6073 tracks the newly changed guides. ## UI evidence (if applicable) [Before/after screenshots and fixture details](https://gist.github.com/SpicyMarinara/7af90f3879f37983affdbc386081c63f), including mobile Chromium/WebKit, light connection settings, preset editing, and the Android browser handoff. | Parameter sources before | Parameter sources after | | --- | --- | | <img src="https://gist.githubusercontent.com/SpicyMarinara/7af90f3879f37983affdbc386081c63f/raw/mobile-chromium-before-parameters.png" width="340"> | <img src="https://gist.githubusercontent.com/SpicyMarinara/7af90f3879f37983affdbc386081c63f/raw/mobile-chromium-parameter-sources.png" width="340"> | <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Z.AI connections with GLM model support and reasoning controls. * Added preset parameter editing, effective-value/source previews, and randomized single-select defaults. * Added preset-variable resolution in greetings and message macros. * Added NovelAI multi-character captions, positions, and prompt review details. * Added Android app/browser launch preferences with automatic, one-time browser sign-in. * **Bug Fixes** * Improved Android startup reuse, local-model selection, empty-response messages, avatar prompts, and character-card exports. * NovelAI reference images now fall back with a warning when unsupported. * Updated NanoGPT model limits and agent catalog counts. * **Documentation** * Updated setup, authentication, parameter, provider, export, and catalog guidance. <!-- 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:16:04 +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#7050
No description provided.