mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6453] [Feature]: Contribution overview — diagnostics, generation recovery, ChatGPT images, and Game Mode improvements #3613
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#3613
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 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6453
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
This is a collection of implemented changes in a testing fork, covering generation reliability, diagnostics, image generation, Game Mode controls, character records, and campaign tools. The aim is to make existing workflows easier to use and failures easier to investigate, alongside some larger optional features.
The important details are included below as Markdown; the HTML is optional supporting documentation. Each area explains what it adds over staging rather than treating everything in the fork as newly invented functionality. The E/A identifiers match the HTML inventory so all 32 Engine and 12 Agents work areas can be located.
Suggested starting scope: two foundational improvements
I suggest discussing these two first, independently of the larger Game Mode additions:
Both exist in the testing fork already. These are proposed review scopes, not a request to adopt the whole suite. I will hold off on further PRs until we agree on scope, and keep any agreed patch focused on the existing architecture.
Comparison basis
Checked on 20 September 2026 against Engine staging
0a5ceebeand Agents staginga4bc9e48. The published comparison snapshots are Engine44fba2b2and Agentse1498ada.“Improvement” below refers to the specific added capability or behavior, not a claim that the entire fork is a regression-free replacement for current staging. Staging has continued advancing; a selected contribution must preserve those newer changes.
Proposed solution
Generation reliability, logging, and development tools
E01 — Detailed diagnostics and actionable error references
Existing staging: shared Pino logging, provider errors, retry/backoff, and provider/network safeguards already exist.
Addition: correlated request, operation, stage, job, provider, model, connection, and attempt information; reusable error IDs; explicit distinctions between cancellation, timeout, transport, authentication, rate-limit, validation, and storage failures. Provider diagnostics record elapsed time and reported usage where available, including partial-stream failures. Local log files rotate with retention limits; individual records are bounded. A sanitized client-report endpoint has body-size and rate limits. Detailed prompt logging remains tied to debugging/inspection paths and must be treated as potentially private content.
Benefit: a user can provide an error reference and a developer can follow the affected operation instead of searching unrelated log lines. This extends Pino; it is not a replacement logging framework or a claim that retries and network validation were absent upstream.
Source: diagnostics, rotating sink, provider correlation.
E02 — Generation results that survive a closed browser tab
Existing staging: active text-generation tracking, status/abort endpoints, and passive-disconnect handling already exist. Basic text generation continuing after disconnection is not being claimed as wholly new.
Addition: server-owned, persisted jobs for supported background, character-draft, gallery image/video/selfie, sprite, and audio generation routes. Jobs have running, completed, failed, cancelled, and interrupted states, saved result availability, list/status/result/cancel endpoints, and a viewer/recovery flow. Results are written atomically. Passive browser disconnection is distinct from an explicit Stop action.
Benefit: accepted media work can finish without the browser staying open, and its status/result can be inspected after returning. Main text generation keeps its existing lifecycle; it is not all moved into this media-job store. The server must remain running. Restarting the server marks unfinished jobs interrupted; it does not resume an in-flight provider request automatically.
Source: generation jobs, job routes, jobs viewer.
E03 — Cache visibility and warnings before expensive context changes
Existing staging: provider caching, usage reporting, and Claude cache controls already exist.
Addition: explicit stable-versus-changing prompt layout, reported cache-read/cache-write usage in the affected game/chat surfaces, and a pre-send guard that estimates how much reusable context a change could invalidate. The guard uses provider-specific behavior rather than assuming Claude TTL caching and ChatGPT prefix caching are interchangeable.
Benefit: users can inspect why a request is large or may lose cache reuse before sending it. The estimate is not a provider guarantee. A subsequently reported ChatGPT history-cache plateau remains under investigation; this inventory does not claim that issue is fixed or promise a constant cache percentage.
E04 — One view for agent connections and routing
Existing staging: connection storage and per-agent routing settings already exist.
Addition: a consolidated routing view showing connection/model names, inherited defaults, and individual overrides; filtering and multi-selection; bulk assignment with partial-failure reporting; a small route-test action; and distinguishable chat-level scene/storyboard/illustration overrides.
Benefit: inspect or change a multi-agent setup without opening every agent individually. Assigning a route does not itself activate an agent.
E25 — More reliable local startup and update refresh
Existing staging: launchers, file-backed storage recovery, and service-worker update handling already exist.
Addition: stale-build detection and launcher/Corepack recovery, persistent local writer identity and stricter lease ownership checks, and a bounded refresh flow that coalesces repeated clicks and falls back to a page reload after rejection, timeout, or a callback that does nothing.
Benefit: fewer cases where the app starts an old build, misidentifies a storage writer, or displays an update button that appears unresponsive. This is not a claim to have introduced upstream's existing backup/shard recovery.
E29 — A more useful prompt inspector
Existing staging: saved-prompt inspection and live/raw fallback infrastructure already exist.
Addition: an ordered, filterable presentation of sections and history, visible empty/unresolved-macro diagnostics, ordered role/content JSON copy, and clear identification of an exact saved request versus a live preview or raw-message fallback.
Benefit: users and developers can inspect the actual request structure without confusing a reconstruction with what was sent.
E30 — Relevant model settings and live capabilities
Existing staging: provider/model selection, static model lists, and connection testing already exist.
Addition: shared rules for which generation controls apply to the selected provider/model, combined with supported live capability discovery for Claude subscription, ChatGPT, and OpenRouter. Reasoning, verbosity, sampling, and related controls reflect the route's available capabilities; discovery uses caching and a fallback path.
Benefit: fewer irrelevant controls and less uncertainty about which settings are actually applicable. It does not imply every provider supports every parameter or that model discovery can never fail.
Images, portraits, and storyboards
E22 — ChatGPT image generation and provider-aware references
Existing staging: ChatGPT text connections and general image-generation contracts exist, but the compared staging image-generation service has no ChatGPT image branch or dedicated ChatGPT image adapter.
Addition: image generation through the linked ChatGPT account, integrated into the Engine's image service. Explicit
gpt-image-*selections use the direct generation route without references and the edit route with references. Automatic/text-model selections keep a separate Responsesimage_generationpath. The implementation handles image streaming and trailing output, aborts, supported quality/transparency options, and a dedicated image queue. Provider/model/workflow reference limits, configured caps, deduplication, and native SwarmUI reference handling are respected.Benefit: the existing ChatGPT connection becomes an image-generation option, including reference-based requests, rather than only a text connection. This is a substantial provider addition. Provider availability, account access, content restrictions, and actual supported options still apply. In the Responses route, orientation is conveyed through prompt guidance; exact requested dimensions are not guaranteed.
Source: ChatGPT image adapter, image-service integration.
E20 — Adaptive storyboards and clearer progress/recovery
Existing staging: storyboards, their storage/viewer, and a configurable ceiling of 200 frames already exist. Three is a default, not a newly removed upstream maximum.
Addition: optional adaptive frame counts with a baseline and automatic maximum, so longer source scenes can receive more illustrations; the adaptive maximum defaults to ten and is configurable. The surrounding changes include planned-versus-ready counts, progressive frame completion, pending/failure details, explicit frame selection, fullscreen viewing, per-stage timing history, and provider-aware bounded frame scheduling. Sequential routes remain sequential. Only specifically identified temporary image-service failures receive a bounded retry. Scene-evidence checks cover characters, location, clothing, and physical continuity.
Benefit: users get adjustable scene coverage and can understand a partially completed storyboard instead of treating it as one opaque operation. Each additional frame requests another image. Strict continuity checks can still reject a storyboard; the reported continuity failures require further acceptance work and are not represented as resolved here.
E21 — Editable and inspectable image prompts
Existing staging: image prompts, prompt-building helpers, and debug paths already exist.
Addition: editable/inspectable prompt flows, bounded final scene-prompt compilation, compact character identity context, optional location visual context, and bounded credential-redacted request inspection. Over-budget requests are rejected before submission. Content-policy rejection, cancellation, and temporary provider failures are handled separately; rejected content is not simply sent to another provider as fallback.
Benefit: users can understand and correct what an image request is asking for, while developers can diagnose prompt/routing failures. This improves control and diagnosis; it does not guarantee image likeness or bypass provider restrictions.
E18 — Larger galleries with usable navigation
Existing staging: galleries, image storage, and a lightbox already exist.
Addition: render 48 gallery cards initially and load 48 more on request, while lightbox navigation still uses the full matching image collection. The viewer adds/tightens previous/next, keyboard, Escape, focus, boundary, and large-view behavior.
Benefit: browsing a long campaign's images requires fewer simultaneously rendered cards, without limiting the lightbox to the currently visible batch. This is incremental rendering, not a claim that all gallery data is server-paginated.
E19 — Fullscreen portrait viewing and consistent avatar crops
Existing staging: character portraits and the shared image viewer already exist.
Addition: a reusable portrait control integrated across multiple character/persona surfaces; clicking the portrait opens the original image fullscreen, with the update action inside that viewer. Compact displays preserve the selected avatar crop. Related identity/reference handling preserves the old portrait when a proposed replacement is rejected.
Benefit: small portraits show the intended face crop while users can inspect or update the full image without accidentally activating the surrounding row. Coverage is across the integrated surfaces, not a guarantee about every image anywhere in the application. The related dialogue-avatar correction is included in this portrait/profile area.
Game Mode layout and everyday controls
E14 — Movable, resizable, anchored, tuckable, and stackable panels
Existing staging: Game Mode panels, draggable primitives, and eight generic widget types already exist.
Addition: a pencil-operated layout-edit mode, 16-pixel drag snapping, resizing, content-driven height, viewport-aware placement, optional bottom anchoring for chat/narration, and optional top-center toolbar pinning. Manual dragging stops at an occupied panel rather than pushing it out of the way. Vertical stacks move together. Widgets can tuck into movable icon bookmarks at the sides/top, reveal through hover/focus/click, and temporarily reveal when tracked content changes. Layout/tuck preferences are carried across campaign sessions using browser/device-local storage.
Benefit: players can arrange the interface around the scene and hide trackers until needed. This extends existing widgets rather than inventing their generic types. Crowded layouts, oversized content, stack growth, bookmark persistence, and hover rendering still need the documented acceptance checks; no account-wide layout synchronization is claimed.
E15 — Contact Book widget and fullscreen phonebook
Existing staging: character/NPC records, reputation, and relationship data provide the underlying information; this dedicated directory is new.
Addition: compact and fullscreen contact views with a phonebook icon, portraits, profile links, search, automatic categories, and custom categories/subcategories. Contacts are drawn from actual encountered character/NPC records in the campaign. Recorded numeric opinion and relationship status appear separately. Category preferences persist, and coverage information identifies incompletely indexed sessions.
Benefit: find people met earlier without treating everyone as present now. Missing opinion/status remains unknown rather than being invented; ambiguous identities and incomplete history remain limitations.
E16 — Game-style Status widget using existing stats
Existing staging: editable persona status bars, resource pools, and RPG attributes already exist.
Addition: one HUD presentation of those existing values, names, maximums, and colors, including fields the user adds or removes. It handles health, mana, hunger/energy-style bars, and custom attributes without creating a second stat system or duplicating an existing HP field.
Benefit: the configured statistics become easier to read during play while remaining maintained by the existing stats system.
E26 — Better use of phones and short viewports
Existing staging: responsive chat/Game Mode surfaces and party controls already exist.
Addition: compact party controls, mobile action menus, widget trays, accessible map entry, bounded popup/panel content, narration editing on smaller screens, and mobile-aware storyboard/notebook sizing.
Benefit: existing actions and campaign tools remain reachable with less screen space. Browser fixtures are not a substitute for physical-device acceptance testing.
E17 — A five-chapter in-app feature guide
Existing staging: Chat/Game Help already exists.
Addition: a guide reachable from Game Help covering layout controls, maps, campaign memory/Wiki, existing stats and widgets, and the Contact Book. It has desktop/mobile chapter navigation, previous/next controls, keyboard navigation, and localized copy.
Benefit: users can discover how pinning, bookmarks, stacks, and the new tools work inside the app. It is a written reference with navigable chapters, not an automated walkthrough that manipulates controls.
E31 — Conversation background opacity — already upstream
The slider, visible percentage, and saved conversation-background preference were contributed and merged upstream. This is included for inventory completeness, not proposed as an additional improvement over current staging.
Maps, characters, and campaign records
A12 — Map navigation, layout editing, connections, and icons
Existing staging: the hierarchical shared-world model, World/Local map architecture, package lifecycle, and host capability boundary already exist.
Addition: cursor-relative zoom, background panning/reset, readable markers while zooming, grid-snapped location placement with keyboard movement, pointer-up position saving, connection handles and Escape cancellation, searchable Lucide/Game Icons choices, and compact Nearby/All projection. Local/fullscreen workspace integration and hierarchy browsing make it easier to move between interiors and the broader map. Editing a map position is kept separate from moving the player.
Benefit: make the existing map system easier to read, navigate, and author. This is mainly Maps-package work in Marinara-Agents, with Engine integration where needed. It is not the introduction of hierarchical maps, and no completed 3D/XYZ or architectural-blueprint system is claimed. An eventual extraction must retain current upstream map fixes.
E23 — Recorded travel follows actual narrated arrival
Existing staging: spatial state and the maps capability already exist.
Addition: Engine-side reconciliation validates location IDs and distinguishes a present arrival from plans, passing mentions, or another character travelling. Teleports require appropriate evidence, and retries do not overwrite a newer move. Eligible legacy maps can migrate after the storage capability starts, retaining recovery metadata and creating a bootstrap spatial snapshot.
Benefit: reduce disagreement between the narrated scene and the selected map location, and reduce manual reconstruction of older maps. Migration depends on the Maps storage capability and still needs real-save acceptance testing.
E13 — Character names open the correct populated profile
Existing staging: character cards, sheets, and library records already exist.
Addition: resolve stable character IDs first, then unique normalized-name matches; fill missing scene-sheet information from the matched library record while preserving existing scene fields. Carry the matching portrait/crop and game-card data through the UI. Dialogue-speaker portraits can resolve even when the current-presence snapshot is delayed.
Benefit: fewer empty sheets, incorrect links, or missing portraits when the information already exists. Multiple possible matches remain unresolved; opening a profile does not automatically admit that person to the current scene.
E12 — Recover established NPCs from previous conversations
Existing staging: stored chats, character libraries, and NPC-related game data already exist.
Addition: bounded, resumable transcript recovery and NPC synchronization, with per-game serialization and stale-result checks when the roster changes.
Benefit: recover people already established in earlier sessions instead of recreating them manually. Recovered historical NPCs are kept separate from current scene occupants. Extraction can miss or confuse names, so coverage and ambiguous cases remain visible limitations.
E10 — Scene timeline and a dedicated “Currently Present” widget
Existing staging: scene rendering, party state, and character libraries already exist.
Addition: a transcript-backed chronological scene timeline and a dedicated display of characters/NPCs identified as physically present, with available portraits and Wiki access. Evidence handling distinguishes arrivals, departures, historical mentions, and unresolved extras.
Benefit: answer “who is here now?” at a glance, separately from the party and the Contact Book of everyone encountered. Presence detection still has gaps; historical recovery is not proof that someone is currently present.
E09 — Fullscreen Campaign Wiki
Existing staging: campaign information, lorebooks, and memory/reference infrastructure already exist.
Addition: a dedicated fullscreen reader with navigation history, entity search, readable facts, relationships, commitments, source evidence, editing, and timeline access. Historical indexing exposes plan/status/run/cancel controls.
Benefit: inspect recorded campaign information as readable, navigable material rather than opaque structured records. The Wiki is a presentation and management layer over the added campaign records, not a claim that staging had no memory tools.
E05 — Source-backed campaign facts with review before publication
Existing staging: chats, summaries, lorebooks, game state, and Advanced Memory exist.
Addition: continuity-specific source preparation, evidence-linked records/receipts, review and partial withholding, publication, stale-source retirement after edits/hiding/deletion/swipes, and validated mutation/compensation operations. Original transcript evidence is distinguished from recaps and derived summaries.
Benefit: make it possible to trace why a campaign fact was recorded and prevent unsupported portions from being published as established information. This is a substantial optional architecture addition, not a small bug fix or a replacement for all existing memory. Current staging's newer Advanced Memory fixes must be retained when selecting a scope.
E06 — Historical fact/knowledge indexing with coverage
Existing staging: historical chat storage and memory processing already exist.
Addition: bounded transcript batches, source hashes/references, resumable batch identities, lifecycle/status reporting, and visible coverage for the added continuity pipeline.
Benefit: process earlier sessions without one unbounded request and identify what remains unprocessed. It does not guarantee that every historical fact is extracted correctly.
E07 — Character-specific knowledge and isolated actor requests
Existing staging: GM/party prompting and character cards already exist.
Addition: separate GM and character-facing memory projections, holder-scoped knowledge filtering, and optional isolated actor requests with per-actor diagnostics and scene-bound presence.
Benefit: reduce characters being given campaign information they have not learned. It adds model calls/complexity and does not prove perfect isolation of every secret in free-form output; it belongs in a separate design discussion.
E08 — Reviewed session conclusions and recoverable drafts
Existing staging: session summaries/conclusions already exist.
Addition: review against the full transcript, source-quote checks for claimed decisions, and salvage of recoverable nested/restarted structured output when valid summary text exists. Unsupported results are rejected rather than silently saved.
Benefit: fewer invented decisions becoming the next session's starting point, and less loss of recoverable conclusion work. Review quality still depends partly on the model.
E11 — Campaign Keeper lorebook reuse and Always Loaded entries
Existing staging: lorebooks, keyword activation, and the Keeper already exist.
Addition: campaign-aware ownership/reuse, consolidation planning and application for eligible campaign Keeper books, preservation of entry identity/content, and an explicit Always Loaded entry option in the editor.
Benefit: reduce repeated equivalent Keeper books across sessions and let users keep selected entries in context without ordinary keyword activation/selection limits. The enabled lorebook must still be active; this does not make all lorebooks global. Live consolidation needs the documented acceptance checks.
E32 — Preserve item identity and apply state changes more carefully
Existing staging: inventory, quests, and game state already exist.
Addition: retain known item IDs, use name fallback only when unique, avoid merging distinct same-named items, and persist retries into the existing quest row without replacing successful state with a failed retry. Campaign transitions distinguish observed changes from offers, promises, rumors, and speculation, with pending/stale outcomes where appropriate.
Benefit: reduce silent identity loss and accidental state replacement. This is not a universal transaction framework for every game action.
Writing and private notes
E28 — AI rewriting inside message editing
Existing staging: manual editing and rewrite-related agent infrastructure already exist.
Addition: rewrite a selection or the current draft with instructions and a chosen connection in standard chat, conversation view, and Game Mode narration. Apply the result to the editable draft; normal Save still controls storage. Reject late results if the source draft changed, and allow undo without overwriting subsequent edits.
Benefit: improve selected prose without copying it elsewhere or losing edits made while generation runs. There is no separate side-by-side approval screen, and model instructions are not a guarantee of semantic preservation.
E24 — Private notebook with scopes and conflict handling
Existing staging: chat panels and settings storage already exist.
Addition: global, linked-character, chat, and eligible branch-family notes; serialized saves; revision conflicts instead of silent overwrite; and guarded close/scope changes with explicit conflict resolution. Notes use dedicated storage and are excluded from ordinary prompt and generic assistant-database flows covered by this implementation.
Benefit: keep player notes nearby without automatically feeding them to the model. This is application-level privacy separation, not encryption against someone with access to local files.
E27 — Player agency, source authority, and narrative guidance
Existing staging: GM prompts, persona/cards, summaries, and prose/voice guidance already exist.
Addition: stronger instructions reserving voluntary player actions and interiority for explicit user input; clearer authorial corrections and historical-summary boundaries; and changed guidance about difficulty, manufactured opposition, relationships, prose, and character voice. Saved-card selection and prompt construction also receive targeted matching/context handling.
Benefit: better alignment with the intended roleplay style and ownership of player choices. Much of this is a narrative-policy preference and model guidance, not universally desirable bug fixing or deterministic enforcement. It can be left out of the foundational contributions.
Downloadable-agent changes — separate Marinara-Agents scopes
All of these agents already exist upstream. A01–A10 primarily add source-authority and uncertainty guidance while retaining the existing agent contract, so their benefit is more explicit instructions about evidence, locks, identities, and player agency. They are not ten newly created agents, and prompt changes do not guarantee model compliance.
A11 integration caveat: the combined branch also lags current upstream Long-Term Memory retry classification and snapshot-reuse changes. Those differences are not benefits and should not be imported with the review guard. Any selected patch must preserve the current upstream retry/error behavior and snapshot optimization. A12 Maps is detailed above rather than hidden in this agent table.
Alternatives considered
Additional context
Downloadable snapshot and implementation references
The setup uses a separate installation/data directory and the matching suite catalog. Package-owned agent/map changes belong in Marinara-Agents; host UI, storage, routing, orchestration, and shared contracts belong in Marinara-Engine.
Snapshot boundaries and verification
The linked fork is a combined testing snapshot, not an upstream-approved release. Its recorded publication checks include the frozen dependency install, production build, localization/lint checks, clean-data browser startup, Agents catalog validation, and archive size/hash checks. Lint reported one warning. Focused scene-presence and character-reference checks also passed after fixture sanitation. The complete validation command stopped at Windows contributor-tooling setup. These results are not a claim that every campaign workflow or live provider path passed acceptance testing.
The comparison for this Markdown update is source/reference verification; no new end-to-end provider tests were run for the write-up. Significant outstanding checks include crowded/oversized layouts, cross-session bookmarks, historical coverage, migrations/consolidation, scene presence, and storyboard continuity. Current staging's newer memory/map/package work must be reconciled rather than overwritten by the older combined snapshot.
Subsequent local-only fixes for title-aware NPC linking and for excluding non-appearance narration from portrait context are not included in the linked published snapshot. The newer ChatGPT history-cache investigation is also not a completed contribution. These are separated here so the downloadable branch is not credited with changes it does not contain.
This work was prepared with AI assistance. The published material excludes private campaign saves, transcripts, prompt captures, and credentials; private campaign-specific test fixtures were sanitized. Debug logs generated during someone's own use may still contain their story content and should be reviewed before sharing.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Sep 20, 2026):
Hi! Thank you for putting this together and writing it up! There are some interesting ideas here, but it's a lot of different changes, so I'd like to take this one feature at a time.
Could you pick 2–3 features you'd suggest starting with and explain what each adds over current staging? We can discuss those here first. Please hold off on opening more PRs for this suite until we've agreed on the scope. I can't commit to adopting the whole suite, and I want to keep the solutions simple, avoid over-engineering, and reuse what we already have wherever possible.
Also, please add any important details that are only in the HTML brief here as Markdown, so we can review them directly on GitHub without downloading and opening an HTML file.
Thank you! I'd like us to agree on the direction first so you don't spend more time preparing PRs that we might not take in.
@SirAdoni commented on GitHub (Sep 20, 2026):
Thank you. I've expanded the opening post so the feature inventory, differences from current staging, and important limitations can all be reviewed here as Markdown. The HTML is now optional supporting material. The comparison names the Engine and Agents staging revisions checked today and the exact published fork snapshots.
I'd suggest starting with these two foundational improvements:
Both are implemented in the testing fork. The opening post also now gives ChatGPT image generation its own explicit entry, alongside all the UI, NPC, map, storyboard, campaign, and agent changes, so their scope is visible for later discussion.
I'll hold further PRs until we agree on scope. Each selected contribution can be kept focused and retain current staging's newer work; the combined fork is there to inspect the experience, with no expectation that the whole suite be adopted.
@SpicyMarinara commented on GitHub (Sep 21, 2026):
@SirAdoni commented on GitHub (Sep 21, 2026):
Just to clarify: most of the work in my fork builds on existing Marinara systems, improving reliability, usability, diagnostics, and recovery while preserving the existing foundations and familiar workflows.
I am not replacing the current logging solution. Pino remains the logger; the improvements add context and error references to help trace failures. Likewise, the existing generation lifecycle remains the foundation, with additional tracking and result recovery for supported operations.
There are also new features in the suite, which I’ve listed separately. The overall aim is to make Marinara easier to use, troubleshoot, and develop further.
The diagnostic improvements are primarily for developers. More useful, connected information should make bugs easier to reproduce, locate, and fix, while providing reusable tools for investigating future features. Users benefit indirectly through easier support and more reliable behavior; they don’t need to understand the logging internals.
Generation tracking and result recovery also have a direct user benefit: being able to return to supported work and retrieve its result after closing the tab.
Closing a tab won't cause any lost data mid generation.
@SpicyMarinara commented on GitHub (Sep 21, 2026):
I agree with the logging improvement, this is always a good thing to have. But I disagree with your second point. Many of our users host their models locally, and they may accidentally close the tab thinking it will cancel the generation, but it won't, usurping their GPU and potentially CPU. The same issue applies for API users; I, personally, do this when I experience a lag or have to quickly close down an application.
So yes for the improved logging, no for supported generation when the tab is closed.
@JamesMowery commented on GitHub (Sep 21, 2026):
To OP, I think this would be much better received if this were broken up into smaller and more actionable issues. I'm sure small, focused pull requests can also be better analyzed and evaluated and integrated. This issue, as written, is just very overwhelming.
Beyond that, I do agree that the logging leaves a lot to be desired (from a local perspective).
For example, I've been having a nightmare with a single GPU setup (RTX 5090) with getting the local LLM and ComfyUI to swap (so that my single GPU can generate images and also handle the LLM stuff). Right now there's an exceptional amount of thrashing going on (even when using something like llama-swap, which operates on FIFO, and can handle both ComfyUI and LLM requests). I've gotten it to work in some circumstances, but there's still time where things just error out and I and an AI assistant can't seem to nail it down.
I've been asking AI to help me analyze what's going on (even built out helper scripts to try to manage the queue), but it seems like it isn't going to go well without some changes to how Marinara handles requests and queues for requests. I think improved logging would help the AI to figure out some actionable issues and pinpoint what could be improved to make single GPU generation for LLM and media an easier reality.
@SirAdoni commented on GitHub (Sep 22, 2026):
Agreed on keeping contributions small and focused. I’ll start with the logging improvements as a standalone change, building on the existing Pino setup.
When I have time, I’ll make E02 an optional setting in my fork, disabled by default, preserving the existing behavior unless someone explicitly enables it. The setting would clearly explain that supported generation continues after closing the tab and may continue using GPU/CPU resources or API credits. Explicit Stop would still request cancellation.
I will hereby send the E1 contribution.
It shall be contributed in a bit.
James, your example is exactly where better diagnostics could help: making request timing, queue activity, and failures easier to trace. Logging won’t itself solve GPU contention, but it should make the underlying problem easier to identify.
Ideally, I'd us to improve upon it even further in the future, including a better "Help" system in app.
But that'd require future work of course.
@SpicyMarinara commented on GitHub (Sep 22, 2026):
Perfect, feel free to open new Issues/PRs with explanations of what they provide, and we will discuss them one by one. Closing this for now, so it doesn't hang together with open issues/feature requests.