mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1682] [MERGED] Fix authenticated game asset playback #5210
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#5210
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1682
Author: @cha1latte
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @cha1latte
Base:
refactor← Head:codex/refactor-game-asset-auth📝 Commits (2)
99c12e8Fix authenticated game asset playbackd472d88Guard async SFX mute state📊 Changes
6 files changed (+461 additions, -141 deletions)
View changed files
➕
src/features/modes/game/lib/game-audio.test.ts(+108 -0)📝
src/features/modes/game/lib/game-audio.ts(+126 -101)➕
src/shared/api/assets-api.test.ts(+39 -0)📝
src/shared/api/assets-api.ts(+36 -18)📝
src/shared/api/local-file-api.test.ts(+75 -3)📝
src/shared/api/local-file-api.ts(+77 -19)📄 Description
Linked issue
No linked issue. This addresses the post-merge refactor validation blocker for authenticated hostable game asset parity.
Why this change
What changed
resolveGameAssetFileUrlbefore creating/playing audio elements.marinara-game-asset:background URLs resolve through the async managed asset bridge.Refactor impact
Primary owner:
shared API / game mode
Impact areas reviewed:
Boundary notes:
src/shared/api/local-file-api.ts.src/shared/api/assets-api.ts.Pressure points touched:
Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
pnpm test src/shared/api/local-file-api.test.ts src/shared/api/assets-api.test.ts src/features/modes/game/lib/game-audio.test.ts; 3 files / 18 tests passed.pnpm check; line endings, architecture, TypeScript, Rust cargo check, and docs checks passed.git diff --check; no whitespace errors.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs changes needed; this is a focused runtime contract fix.
UI evidence
N/A. This is a runtime asset contract fix covered by focused unit tests and repo checks.
Summary by CodeRabbit
Release Notes
Refactor
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.