[GH-ISSUE #1888] [Issue]: storage_list is slow for projected chat message reads #913

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/1888

Originally assigned to: @Promansis on GitHub.

Summary

command:storage_list for messages filtered by chatId can take roughly 800-900ms even when the caller requests a projected field list.

Expected behavior

A message list with filters.chatId plus fields and fieldSelections should stream only the requested fields needed for timeline rendering and avoid loading unrequested message payloads.

Actual behavior

The special messages + chatId path bypassed the general projected-list reader and loaded full matching message rows before final projection. This could pull large swipes/extra payloads even when the caller requested only selected fields.

Steps to reproduce

  1. Open a chat with a populated message history.
  2. Trigger the message timeline read.
  3. Inspect command:storage_list in CrabNebula/Tauri devtools with args like entity messages, filters.chatId, fields, and fieldSelections.extra.

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 e1753477
  • Run mode: Tauri desktop
  • OS + version: not captured
  • Node + pnpm versions: not captured
  • Rust version, if relevant: not captured
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

Observed args included entity messages, filters.chatId, fields for timeline columns, and fieldSelections.extra for hidden/thinking/reasoning/sprite expression fields.

Regression notes

This is a storage performance issue exposed while investigating character selector cold-load delay.

Additional context

Fix added a projected message-by-chat storage reader and routed messages + chatId + fields through it, while still including swipes internally when needed for active-swipe materialization before final projection.

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/1888 Originally assigned to: @Promansis on GitHub. ## Summary command:storage_list for messages filtered by chatId can take roughly 800-900ms even when the caller requests a projected field list. ## Expected behavior A message list with filters.chatId plus fields and fieldSelections should stream only the requested fields needed for timeline rendering and avoid loading unrequested message payloads. ## Actual behavior The special messages + chatId path bypassed the general projected-list reader and loaded full matching message rows before final projection. This could pull large swipes/extra payloads even when the caller requested only selected fields. ## Steps to reproduce 1. Open a chat with a populated message history. 2. Trigger the message timeline read. 3. Inspect command:storage_list in CrabNebula/Tauri devtools with args like entity messages, filters.chatId, fields, and fieldSelections.extra. ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [x] 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 - [x] 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 e1753477 - Run mode: Tauri desktop - OS + version: not captured - Node + pnpm versions: not captured - Rust version, if relevant: not captured - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video Observed args included entity messages, filters.chatId, fields for timeline columns, and fieldSelections.extra for hidden/thinking/reasoning/sprite expression fields. ## Regression notes This is a storage performance issue exposed while investigating character selector cold-load delay. ## Additional context Fix added a projected message-by-chat storage reader and routed messages + chatId + fields through it, while still including swipes internally when needed for active-swipe materialization before final projection. ## 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#913
No description provided.