[PR #5578] [MERGED] fix: preserve avatar prompts and OpenRouter caching #6831

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5578
Author: @Gunterlie
Created: 8/27/2026
Status: ✅ Merged
Merged: 8/27/2026
Merged by: @Gunterlie

Base: staging ← Head: gotta-fix-em-all


📝 Commits (4)

  • a3a9d6f fix: resolve avatar caching and sprite rename issues
  • f3eeb15 chore: remove merged sprite rename changes
  • 3370ccb Merge remote-tracking branch 'origin/staging' into gotta-fix-em-all
  • e3a2239 fix: resolve avatar review findings

📊 Changes

6 files changed (+75 additions, -11 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/server/src/routes/characters.routes.ts (+4 -2)
📝 packages/server/src/services/llm/providers/openai.provider.ts (+2 -4)
📝 packages/shared/src/utils/image-prompt-compiler.ts (+3 -4)
📝 scripts/regressions/prompt.regression.ts (+42 -0)
📝 scripts/regressions/provider-compat.regression.ts (+23 -1)

📄 Description

Linked issues

Closes #5552
Closes #5574

Why this change

Avatar generation dropped identity and appearance details from user prompts. OpenRouter prompt caching was skipped for unknown models even when caching was enabled.

What changed

  • Preserve the complete user Avatar Prompt through image prompt compilation.
  • Apply OpenRouter prompt caching independently from unknown-model parameter suppression.
  • Add focused prompt and provider regression coverage.

Sprite rename issue #5575 is already resolved by merged PR #5576 and is intentionally excluded from this PR.

Validation

  • Manually verify avatar preview and generation retain a long identity and appearance prompt.
  • Manually verify OpenRouter reports cache writes or hits for an unknown Claude model.

Automated validation completed locally:

  • pnpm check
  • pnpm regression:node (159/159)
  • Focused prompt and provider compatibility regressions
  • git diff --check

CodeRabbit review is running on this ready PR.

Summary by CodeRabbit

  • Improvements

    • Avatar generation preserves detailed appearance information, including hairstyles, clothing, facial features, expressions, and scars.
    • Avatar previews and final images now use consistent appearance details.
    • Avatar prompts support more complete visual descriptions for improved results.
    • OpenRouter prompt caching remains available across supported requests, including streaming and non-streaming interactions.
  • Documentation

    • Added unreleased changelog notes covering avatar prompt preservation and OpenRouter caching.

🔄 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/5578 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/27/2026 **Status:** ✅ Merged **Merged:** 8/27/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `gotta-fix-em-all` --- ### 📝 Commits (4) - [`a3a9d6f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a3a9d6fff0334ac2e7f8be45e6784dc2a3efbaab) fix: resolve avatar caching and sprite rename issues - [`f3eeb15`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f3eeb15c6149cc69d88043426d25c6c7014094de) chore: remove merged sprite rename changes - [`3370ccb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3370ccbdd3576bdd31e39c9075d65852723bcc8e) Merge remote-tracking branch 'origin/staging' into gotta-fix-em-all - [`e3a2239`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e3a223992d3ecd7195a68e90752e9a8511e42b70) fix: resolve avatar review findings ### 📊 Changes **6 files changed** (+75 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/server/src/routes/characters.routes.ts` (+4 -2) 📝 `packages/server/src/services/llm/providers/openai.provider.ts` (+2 -4) 📝 `packages/shared/src/utils/image-prompt-compiler.ts` (+3 -4) 📝 `scripts/regressions/prompt.regression.ts` (+42 -0) 📝 `scripts/regressions/provider-compat.regression.ts` (+23 -1) </details> ### 📄 Description ## Linked issues Closes #5552 Closes #5574 ## Why this change Avatar generation dropped identity and appearance details from user prompts. OpenRouter prompt caching was skipped for unknown models even when caching was enabled. ## What changed - Preserve the complete user Avatar Prompt through image prompt compilation. - Apply OpenRouter prompt caching independently from unknown-model parameter suppression. - Add focused prompt and provider regression coverage. Sprite rename issue `#5575` is already resolved by merged PR `#5576` and is intentionally excluded from this PR. ## Validation - [ ] Manually verify avatar preview and generation retain a long identity and appearance prompt. - [ ] Manually verify OpenRouter reports cache writes or hits for an unknown Claude model. Automated validation completed locally: - `pnpm check` - `pnpm regression:node` (159/159) - Focused prompt and provider compatibility regressions - `git diff --check` CodeRabbit review is running on this ready PR. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Improvements** - Avatar generation preserves detailed appearance information, including hairstyles, clothing, facial features, expressions, and scars. - Avatar previews and final images now use consistent appearance details. - Avatar prompts support more complete visual descriptions for improved results. - OpenRouter prompt caching remains available across supported requests, including streaming and non-streaming interactions. - **Documentation** - Added unreleased changelog notes covering avatar prompt preservation and OpenRouter caching. <!-- 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:14:07 +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#6831
No description provided.