mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6695] [Feature]: Diagnostics and launcher: build integrity check, memory telemetry, prompt debug files, background call cap, safer launcher #3752
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#3752
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 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6695
Originally assigned to: @SpicyMarinara on GitHub.
Part of the contribution roadmap in #6624 (package H).
What problem does this solve?
git clean -fdon the source trees, which silently deletes new source files that were never committed.start.batopens the browser after a fixed delay, so a slow start lands on a connection error page.Proposed solution
distand logs one warning on a mismatch (it never blocks a start), and the updater fails clearly instead of reporting success.LOG_PROMPT_DEBUG_FILESon, debug prompt output goes to size-limited rotating files under the data folder instead of the console..tmp/untracked-src-backups/. It always exits cleanly, so it never blocks startup./api/healthand opens the browser once the server answers.AUTO_OPEN_BROWSERstill decides whether it opens at all.How it's switched: prompt debug files and the background call cap are off by default (
LOG_PROMPT_DEBUG_FILES, and Background call cap in Settings > Advanced > Features, withMARINARA_BACKGROUND_CALLS_PER_HOURas an override). The rest has no switch because it only reports, makes a backup copy, or fixes a hard failure.packages/server/src/lib: logger, rotating sink, runtime diagnostics, freeze detector, worker gauges, new build integrity checkpackages/server/scripts:build.mjs,write-build-meta.mjs;config/build-info.ts,config/runtime-config.tspackages/server/src/services/generation: new background call budget, connection admissionpackages/server/src/services/llm/providers/openai.provider.tsand a small reasoning-off helperstart.bat,start.sh,start-termux.sh, newscripts/preserve-untracked-src.mjsandscripts/open-when-ready.cmd,.gitattributesen.json,.env.example, docs underdocs/configurationanddocs/development/logging.mdAlternatives considered
git cleanstep: it exists for good reasons, so the launcher keeps it and only backs up first.Additional context
Screenshots
Taken from the fork build with invented demo data (characters, lorebooks and a campaign made up for these shots). Model replies and token counts come from a local test stub, so no real model was called.
Background call cap in Settings > Advanced > Features, with the hourly budget.
Template check
@SpicyMarinara commented on GitHub (Sep 26, 2026):
Awaiting PR.