[GH-ISSUE #1886] [Issue]: Character selector is slow on first open after launch #914

Closed
opened 2026-10-21 05:23:20 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (Jun 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1886

Originally assigned to: @Promansis on GitHub.

Summary

Opening the character selector after a fresh launch can stall for roughly 800-900ms before subsequent opens become fast.

Expected behavior

The character selector should open promptly on a cold app launch and avoid redundant avatar or character detail work for already-loaded summary data.

Actual behavior

The first selector open/selection path performed cold avatar resolution work and an extra character detail read before using data already present in the character summaries.

Steps to reproduce

  1. Launch the Tauri desktop app from a cold start.
  2. Open a chat or roleplay setup flow that displays the character selector.
  3. Select or open characters and observe the first-open delay, then repeat after cache warm-up.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: fixed on fix-character-selector-cold-load, commit 94b0511a
  • Run mode: Tauri desktop
  • OS + version: not captured
  • Node + pnpm versions: not captured
  • Rust version, if relevant: not relevant
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

Observed in app/devtools timing as a roughly 800-900ms first-open delay that disappears after warm-up.

Regression notes

Likely exposed by cold-cache selector/avatar paths after launch.

Additional context

Fix removed redundant async avatar resolution when a browser-safe avatar URL is already available, and reused loaded character summary greeting data instead of performing an extra full character read.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Jun 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1886 Originally assigned to: @Promansis on GitHub. ## Summary Opening the character selector after a fresh launch can stall for roughly 800-900ms before subsequent opens become fast. ## Expected behavior The character selector should open promptly on a cold app launch and avoid redundant avatar or character detail work for already-loaded summary data. ## Actual behavior The first selector open/selection path performed cold avatar resolution work and an extra character detail read before using data already present in the character summaries. ## Steps to reproduce 1. Launch the Tauri desktop app from a cold start. 2. Open a chat or roleplay setup flow that displays the character selector. 3. Select or open characters and observe the first-open delay, then repeat after cache warm-up. ## Impact area - [ ] App shell, navigation, startup, or providers - [x] Catalog resources - [ ] Chat mode - [x] Roleplay mode - [ ] Game mode - [x] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: fixed on fix-character-selector-cold-load, commit 94b0511a - Run mode: Tauri desktop - OS + version: not captured - Node + pnpm versions: not captured - Rust version, if relevant: not relevant - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video Observed in app/devtools timing as a roughly 800-900ms first-open delay that disappears after warm-up. ## Regression notes Likely exposed by cold-cache selector/avatar paths after launch. ## Additional context Fix removed redundant async avatar resolution when a browser-safe avatar URL is already available, and reused loaded character summary greeting data instead of performing an extra full character read. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:23:20 +07:00
  • closed this issue
  • added the
    bug
    label
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#914
No description provided.