[GH-ISSUE #1928] Show game asset backgrounds in the Settings background picker #942

Closed
opened 2026-10-21 05:23:54 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @cha1latte on GitHub.

Summary

The Settings background picker says users can choose from game asset backgrounds, but the picker only lists user background rows. Legacy merged user backgrounds and game asset backgrounds in the backgrounds route.

Expected behavior

The background picker should include available game asset backgrounds, marked as non-editable/non-deletable where appropriate, or the UI copy should stop promising that source.

Actual behavior

The picker query calls backgroundsApi.list(...) and maps those rows only. The Rust list_backgrounds route currently lists state.backgrounds user files and metadata, but does not merge game_assets_manifest().byCategory.backgrounds.

Evidence:

  • UI copy at src/features/shell/settings/components/SettingsPanel.tsx:2093 says users can choose from game asset backgrounds.
  • Picker query at src/features/shell/settings/components/SettingsPanel.tsx:2200 calls only backgroundsApi.list(...).
  • Refactor list route starts at src-tauri/src/commands/storage/backgrounds.rs:50 and only iterates state.backgrounds.list(None).
  • Legacy merged game asset backgrounds at packages/server/src/routes/backgrounds.routes.ts:89.

Steps to reproduce

  1. Ensure game assets include entries in the backgrounds category.
  2. Open Settings and inspect the background picker.
  3. Observe that only uploaded/user backgrounds appear, despite the help text promising game asset backgrounds.

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: refactor-line audit at 8c36be60
  • Run mode: Static code audit; likely affects Tauri desktop and remote runtime UI
  • OS + version: Not relevant
  • Node + pnpm versions: Not relevant
  • Rust version, if relevant: Not relevant
  • Remote Runtime URL configured? Potentially relevant for asset URL resolution
  • Provider, model, or integration, if relevant: Game assets/backgrounds

Logs, screenshots, or video

No runtime logs or screenshots. Static parity evidence only.

Regression notes

Legacy /api/backgrounds returned user backgrounds plus getAssetManifest().byCategory.backgrounds. Refactor roleplay scene planning can still see game asset backgrounds through the manifest path, so this appears to be a picker/API parity gap rather than total loss of game asset background support.

Additional context

This came from parity target 4, media and assets, under #1904. Suggested fix path: merge manifest backgrounds into backgrounds_list or into the picker query, return/source them as game assets, and ensure thumbnails use the game asset URL resolver.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (Jun 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1928 Originally assigned to: @cha1latte on GitHub. ## Summary The Settings background picker says users can choose from game asset backgrounds, but the picker only lists user background rows. Legacy merged user backgrounds and game asset backgrounds in the backgrounds route. ## Expected behavior The background picker should include available game asset backgrounds, marked as non-editable/non-deletable where appropriate, or the UI copy should stop promising that source. ## Actual behavior The picker query calls `backgroundsApi.list(...)` and maps those rows only. The Rust `list_backgrounds` route currently lists `state.backgrounds` user files and metadata, but does not merge `game_assets_manifest().byCategory.backgrounds`. Evidence: - UI copy at `src/features/shell/settings/components/SettingsPanel.tsx:2093` says users can choose from game asset backgrounds. - Picker query at `src/features/shell/settings/components/SettingsPanel.tsx:2200` calls only `backgroundsApi.list(...)`. - Refactor list route starts at `src-tauri/src/commands/storage/backgrounds.rs:50` and only iterates `state.backgrounds.list(None)`. - Legacy merged game asset backgrounds at `packages/server/src/routes/backgrounds.routes.ts:89`. ## Steps to reproduce 1. Ensure game assets include entries in the `backgrounds` category. 2. Open Settings and inspect the background picker. 3. Observe that only uploaded/user backgrounds appear, despite the help text promising game asset backgrounds. ## Impact area - [ ] App shell, navigation, startup, or providers - [x] Catalog resources - [ ] Chat mode - [x] Roleplay mode - [x] Game mode - [x] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [x] 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: refactor-line audit at `8c36be60` - Run mode: Static code audit; likely affects Tauri desktop and remote runtime UI - OS + version: Not relevant - Node + pnpm versions: Not relevant - Rust version, if relevant: Not relevant - Remote Runtime URL configured? Potentially relevant for asset URL resolution - Provider, model, or integration, if relevant: Game assets/backgrounds ## Logs, screenshots, or video No runtime logs or screenshots. Static parity evidence only. ## Regression notes Legacy `/api/backgrounds` returned user backgrounds plus `getAssetManifest().byCategory.backgrounds`. Refactor roleplay scene planning can still see game asset backgrounds through the manifest path, so this appears to be a picker/API parity gap rather than total loss of game asset background support. ## Additional context This came from parity target 4, media and assets, under #1904. Suggested fix path: merge manifest backgrounds into `backgrounds_list` or into the picker query, return/source them as game assets, and ensure thumbnails use the game asset URL resolver. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:23:54 +07:00
Author
Owner

@cha1latte commented on GitHub (Jun 2, 2026):

fixed in #1940

<!-- gh-comment-id:4603837842 --> @cha1latte commented on GitHub (Jun 2, 2026): fixed in #1940
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#942
No description provided.