mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2218] [MERGED] Fix game asset prompt safeguards #5482
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#5482
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/2218
Author: @cha1latte
Created: 6/4/2026
Status: ✅ Merged
Merged: 6/4/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-2137-game-asset-prompts📝 Commits (10+)
51cdb00Fix game asset prompt safeguards2bdaaf8Record issue 2137 PR verificationc67d3f2Merge upstream refactor into issue 2137 fixbf27853Tighten game asset nonhuman prompt cues40b67faBroaden explicit animal subject cues6f72a33Add game asset request payload coveragefc15d5eMerge remote-tracking branch 'upstream/refactor' into fix/issue-2137-game-asset-prompts850e33fRemove duplicate storage type aliases7ce2c50Merge upstream refactor into issue 2137 fixbbecb7dKeep issue 2137 proof ledger focused📊 Changes
3 files changed (+302 additions, -79 deletions)
View changed files
➕
src/features/modes/game/api/game-api.test.ts(+138 -0)📝
src/features/modes/game/api/game-api.ts(+12 -79)➕
src/features/modes/game/api/game-asset-prompts.ts(+152 -0)📄 Description
Linked issue
Closes #2137
Why this change
What changed
game-asset-prompts.ts.imageGenerationApi.generate.Refactor impact
Primary owner:
game mode
Impact areas reviewed:
Boundary notes:
imageGenerationApiwrapper; no raw Tauri or remote-runtime fetch was added.Pressure points touched:
src/features/modes/game/api/game-api.tssrc/features/modes/game/api/game-asset-prompts.tsValidation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
pnpm test src/features/modes/game/api/game-api.test.tspassed with 6 focused regression cases.pnpm typecheckpassed.pnpm checkpassed after the final diff.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A. This is a non-UI request-payload regression; the proof is focused Vitest coverage of prompt construction and request-payload forwarding.
Summary by CodeRabbit
Tests
Refactor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.