[PR #4340] [MERGED] Address staging issue sweep through #4341 #6339

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

📋 Pull Request Information

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

Base: staging ← Head: agent/issue-sweep-4327-4337


📝 Commits (6)

  • 8eb6bf3 chore: start issue sweep
  • 99e7b3f fix: address staging issue sweep
  • a0c5c63 fix: address review findings
  • b7730a4 fix: tighten review follow-ups
  • 952c165 fix: preserve custom image retry identity
  • 4891b47 Merge remote-tracking branch 'origin/staging' into agent/issue-sweep-4327-4337

📊 Changes

34 files changed (+1039 additions, -122 deletions)

View changed files

📝 CHANGELOG.md (+8 -0)
📝 CONTRIBUTING.md (+1 -1)
📝 docs/prompts/macros.md (+3 -0)
📝 package.json (+1 -1)
📝 packages/client/scripts/build.mjs (+9 -6)
📝 packages/client/src/components/agents/AgentEditor.tsx (+23 -10)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+26 -1)
📝 packages/client/src/components/chat/SummaryPopover.tsx (+116 -19)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+11 -4)
📝 packages/client/src/components/lorebooks/LorebookAssignmentSection.tsx (+3 -2)
📝 packages/client/src/components/ui/GenerationParametersEditor.tsx (+3 -1)
📝 packages/client/src/hooks/use-chats.ts (+3 -0)
📝 packages/client/src/hooks/use-lorebooks.ts (+4 -1)
📝 packages/client/src/lib/chat-recency.ts (+10 -0)
📝 packages/client/src/localization/locales/en.json (+13 -1)
📝 packages/server/src/config/build-info.ts (+0 -2)
📝 packages/server/src/db/schema/lorebooks.ts (+2 -0)
📝 packages/server/src/routes/chats.routes.ts (+163 -14)
📝 packages/server/src/routes/generate.routes.ts (+27 -17)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+22 -17)

...and 14 more files

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote staging to main.

Linked issues

Closes #4327
Closes #4332
Closes #4333
Closes #4334
Closes #4335
Closes #4336
Closes #4337
Closes #4341

Follow-up documentation: #4342
Follow-up browser-suite isolation: #4343

Why this change

The open-issue sweep exposed several small but user-visible gaps across development startup, Windows subprocesses, lorebooks, summaries, provider reasoning, character macros, image agents, and chat ordering. This patch keeps each fix on the existing Engine path and adds focused regression coverage instead of parallel implementations.

What changed

  • Build the shared package before the server dev process and avoid deprecated Windows shell-spawn shapes.
  • Allow embedded lorebooks to stay attached while hidden from the general library.
  • Combine selected summaries into one replacement summary through the configured summary model.
  • Treat custom OpenAI reasoning Off as an explicit omission while retaining encrypted reasoning content when advanced reasoning is enabled.
  • Resolve exact character IDs into bounded card, tracker, and linked-lorebook prompt context.
  • Give custom image-prompt agents their own connection and reference-image settings in generation and retry paths.
  • Separate Recent activity ordering from creation-date Newest and Oldest ordering.
  • Update release notes, contributor guidance, localization, and macro documentation.

Automated verification completed locally

  • pnpm check
  • pnpm regression:prompt
  • pnpm regression:providers
  • pnpm regression:issues
  • git diff --check

The full pnpm smoke:ui run exposed pre-existing shared appearance/background fixture failures: 153 passed, 88 skipped, and 13 failed. A serial failed-only retry still reproduced 12 failures, showing stale live-state assertions in addition to parallel sharing. This is isolated in #4343 and deliberately excluded from this product patch.

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 needed

  • Manually verify hidden embedded lorebooks remain active but disappear from the general library.
  • Manually combine summaries and confirm ordering, message coverage, and replacement behavior.
  • Manually verify a custom provider with reasoning Off and with advanced reasoning enabled.
  • Manually verify known and unknown character-ID macros in an active roleplay.
  • Manually verify custom ComfyUI reference payloads in generation and retry paths.
  • Manually verify Recent, Newest, and Oldest chat ordering on desktop and mobile.
  • Manually verify Windows startup, update, and build flows no longer emit DEP0190.

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)

Translated macro documentation is tracked in #4342.

Summary by CodeRabbit

  • New Features
    • Added character-ID macros for referenced character context in prompts.
    • Added multi-select summary combination for consolidated summaries.
    • Added visibility controls for embedded lorebooks.
    • Added image-generation settings for custom image-prompt agents.
    • Added “Recent” chat sorting as the default.
  • Bug Fixes
    • Improved reasoning controls for compatible AI providers.
    • Fixed image settings during generation retries.
    • Improved server development startup reliability.
    • Strengthened Windows command handling and update workflows.
  • Documentation
    • Documented character-ID macros and shared-package development requirements.

🔄 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/4340 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/31/2026 **Status:** ✅ Merged **Merged:** 7/31/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/issue-sweep-4327-4337` --- ### 📝 Commits (6) - [`8eb6bf3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8eb6bf34200f23dece1cbb654ff6519da9a0927e) chore: start issue sweep - [`99e7b3f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/99e7b3f485253e93fe2f02669a317b12739f5759) fix: address staging issue sweep - [`a0c5c63`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a0c5c630245571ef87047544c29bfca652a1f4dd) fix: address review findings - [`b7730a4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b7730a48c728c1d58d7195bdca129e5fefd10c03) fix: tighten review follow-ups - [`952c165`](https://github.com/Pasta-Devs/Marinara-Engine/commit/952c165c40bfb2545a1d209665d6b88805e9d2e5) fix: preserve custom image retry identity - [`4891b47`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4891b47d1cbf8f4ddacd28223d0bb7e100472f70) Merge remote-tracking branch 'origin/staging' into agent/issue-sweep-4327-4337 ### 📊 Changes **34 files changed** (+1039 additions, -122 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+8 -0) 📝 `CONTRIBUTING.md` (+1 -1) 📝 `docs/prompts/macros.md` (+3 -0) 📝 `package.json` (+1 -1) 📝 `packages/client/scripts/build.mjs` (+9 -6) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+23 -10) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+26 -1) 📝 `packages/client/src/components/chat/SummaryPopover.tsx` (+116 -19) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+11 -4) 📝 `packages/client/src/components/lorebooks/LorebookAssignmentSection.tsx` (+3 -2) 📝 `packages/client/src/components/ui/GenerationParametersEditor.tsx` (+3 -1) 📝 `packages/client/src/hooks/use-chats.ts` (+3 -0) 📝 `packages/client/src/hooks/use-lorebooks.ts` (+4 -1) 📝 `packages/client/src/lib/chat-recency.ts` (+10 -0) 📝 `packages/client/src/localization/locales/en.json` (+13 -1) 📝 `packages/server/src/config/build-info.ts` (+0 -2) 📝 `packages/server/src/db/schema/lorebooks.ts` (+2 -0) 📝 `packages/server/src/routes/chats.routes.ts` (+163 -14) 📝 `packages/server/src/routes/generate.routes.ts` (+27 -17) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+22 -17) _...and 14 more files_ </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote `staging` to `main`. ## Linked issues Closes #4327 Closes #4332 Closes #4333 Closes #4334 Closes #4335 Closes #4336 Closes #4337 Closes #4341 Follow-up documentation: #4342 Follow-up browser-suite isolation: #4343 ## Why this change The open-issue sweep exposed several small but user-visible gaps across development startup, Windows subprocesses, lorebooks, summaries, provider reasoning, character macros, image agents, and chat ordering. This patch keeps each fix on the existing Engine path and adds focused regression coverage instead of parallel implementations. ## What changed - Build the shared package before the server dev process and avoid deprecated Windows shell-spawn shapes. - Allow embedded lorebooks to stay attached while hidden from the general library. - Combine selected summaries into one replacement summary through the configured summary model. - Treat custom OpenAI reasoning Off as an explicit omission while retaining encrypted reasoning content when advanced reasoning is enabled. - Resolve exact character IDs into bounded card, tracker, and linked-lorebook prompt context. - Give custom image-prompt agents their own connection and reference-image settings in generation and retry paths. - Separate Recent activity ordering from creation-date Newest and Oldest ordering. - Update release notes, contributor guidance, localization, and macro documentation. ## Automated verification completed locally - `pnpm check` - `pnpm regression:prompt` - `pnpm regression:providers` - `pnpm regression:issues` - `git diff --check` The full `pnpm smoke:ui` run exposed pre-existing shared appearance/background fixture failures: 153 passed, 88 skipped, and 13 failed. A serial failed-only retry still reproduced 12 failures, showing stale live-state assertions in addition to parallel sharing. This is isolated in #4343 and deliberately excluded from this product patch. ## 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 needed - Manually verify hidden embedded lorebooks remain active but disappear from the general library. - Manually combine summaries and confirm ordering, message coverage, and replacement behavior. - Manually verify a custom provider with reasoning Off and with advanced reasoning enabled. - Manually verify known and unknown character-ID macros in an active roleplay. - Manually verify custom ComfyUI reference payloads in generation and retry paths. - Manually verify Recent, Newest, and Oldest chat ordering on desktop and mobile. - Manually verify Windows startup, update, and build flows no longer emit DEP0190. ## 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) Translated macro documentation is tracked in #4342. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added character-ID macros for referenced character context in prompts. * Added multi-select summary combination for consolidated summaries. * Added visibility controls for embedded lorebooks. * Added image-generation settings for custom image-prompt agents. * Added “Recent” chat sorting as the default. * **Bug Fixes** * Improved reasoning controls for compatible AI providers. * Fixed image settings during generation retries. * Improved server development startup reliability. * Strengthened Windows command handling and update workflows. * **Documentation** * Documented character-ID macros and shared-package development requirements. <!-- 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:09: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#6339
No description provided.