mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#406
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 @Romuromylus on GitHub (May 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/842
Originally assigned to: @cha1latte on GitHub.
Summary
Client build is broken on
main(fd768bfe"rizz").pnpm --filter @marinara-engine/client run buildfails with three TS errors inpackages/client/src/components/game/GameCombatUI.tsx, because the commit callsstop()/setVolume()/setMuted()on acombatVoiceAudioRefthat is typed as (and holds) a rawHTMLAudioElement, which has none of those methods.Expected behavior
pnpm check(and the client build it runs) passes onmain.Actual behavior
Root cause: in
fd768bfe, the three call sites were refactored from directHTMLAudioElementproperty access (.pause()/.volume = …/.muted = …) to method calls that only exist on theOneShotAudioLayer/LoopingAudioLayerhandle interfaces inpackages/client/src/lib/game-audio.ts:30-34.combatVoiceAudioRefis stilluseRef<HTMLAudioElement | null>(null)(line 634) and assigned vianew Audio(url)(line 781), so the calls don't compile.Note: the rest of the same commit DID use the new
audioManagersurface correctly on the creation path —audioManager.unlock()(line 747) andaudioManager.setMediaElementVolume(audio, …)(line 783). The three failing call sites look like a missed pass of the same refactor.Steps to reproduce
mainatfd768bfe.pnpm install --frozen-lockfilepnpm --filter @marinara-engine/client run build(or justpnpm check).Environment
fd768bfeonmain)Logs, screenshots, or video
See "Actual behavior" above for the full
tscoutput.Additional context
The published
v1.5.9tag is at1968e5b6, which predatesfd768bfeandba27f75f("Add TTS playback controls", #715), so released artifacts are unaffected. The breakage only hits anyone building frommain(including any autoDeploy pipeline pointed atmain).Fix is straightforward — restore the three call sites to the
HTMLAudioElementsurface that the rest of the component already uses (line 821 already calls.pause()directly; the creation path on line 784 already sets.muteddirectly; the volume update can route throughaudioManager.setMediaElementVolume(...)to match line 783). PR incoming.Template check