mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6624] [Feature]: Engine foundations: request-traced logs, prompt caching fixes, opt-in robustness and performance, a feature switch page, background generation jobs and a Ctrl+K command palette #3710
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3710
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SirAdoni on GitHub (Sep 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6624
Originally assigned to: @SpicyMarinara on GitHub.
Template: Feature request
Roadmap: every planned contribution
Everything this fork plans to offer upstream, announced early so anyone working in the same areas can say so before a PR. Each item below has its own issue listing the areas and files it touches. D to H and the three themes follow once part 1 (A) merges, one package at a time, and each is behind a setting that is off by default wherever it changes behaviour.
If you're working in any of these areas, please comment on the matching issue so we can coordinate before a PR.
What problem does this solve?
Running long campaigns with a lot of lorebook and memory data, mostly on Claude and ChatGPT subscriptions, a handful of engine-level problems keep costing time, tokens and quota. Each is small on its own, and they sit in the same few places:
.envfile.Proposed solution
Additions that build on what the engine already has, rather than replacing it. The shared Pino logger and the Logging section of
CONTRIBUTING.md, the regression runner, the atomic write and.bakdesign infile-backed-store.ts, the ordered shutdown,RateLimitAwareProviderand the existing Settings layout all stay as they are.Everything that changes prompts, stored data, retries or background behaviour is behind a switch or setting that defaults off, so nothing changes for anyone until they turn it on. Pure bug fixes have no switch.
Series map
contrib/foundationsstableLorebookGroupPicksandproviderRetry; logged best-effort helpers;docs/contrib/engine-foundations-overview.md, which maps the whole seriescontrib/dev-mcptools/dev-mcpfor coding assistants working on a local engine. Outside the pnpm workspace and the Docker image; nothing in the app depends on itcontrib/command-palettecontrib/d-server-fixes-1contrib/e-server-fixes-2contrib/f-prompt-cachingcacheFriendlyPromptLayout, off), a ChatGPT cache session, a per-chat warning before a low-cache send (off), and cache diagnostics (MARINARA_CACHE_DIAGNOSTICS)contrib/g-jobs-traygenerationJobTracking, off), and a Windows console tray icon (consoleTray, off, orMARINARA_CONSOLE_TRAY)contrib/h-diagnostics-launcherLOG_PROMPT_DEBUG_FILES, off), a background call cap (backgroundCallCap, off, 600 calls per hour by default), a launcher backup beforegit clean, opening the browser once the server answers, and a retry without reasoning-off for models that always reasonWhich parts depend on which
stagingdirectly and can be merged, reviewed or declined on its own, in any order.stagingonce A is in, so its diff shows only its own commits.Merge order notes
staging's unwrapped gallery route.generate.routes.ts, and F touches it as well.feature-settingsregression. Whichever lands later adds its rows next to the others.CHANGELOG.md,index.ts,file-backed-store.ts) is a small rebase.Alternatives considered
Additional context
Parts 1 to 3 are based on
staginge15c9e558; parts 4 to 8 are rebased onto part 1 when it merges, and each piece has regressions that check the default path is unchanged and the new path works.docs/contrib/engine-foundations-overview.md(added in part 1, with a section filled in by each later part) covers what exists today, what each piece adds, what stays the same, how to check it and how to turn it off. Part 1 was checked on Windows 11 and Linux (WSL Ubuntu, the CI-equivalent regression run). Built with AI assistance; the result has been read and checked, and each PR leaves the verification checkboxes for a human to tick.Template check