mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5972] [MERGED] feat(images): support GPT Image 2.5 Flare and Sunburst #7004
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#7004
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/5972
Author: @SpicyMarinara
Created: 9/8/2026
Status: ✅ Merged
Merged: 9/8/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/gpt-image-2-5📝 Commits (4)
3c285c3feat(images): add GPT Image 2.5 model entriesab7cd15feat(images): wire GPT Image 2.5 capabilities and quality88ba358docs: place GPT Image 2.5 under added features3661220fix(connections): validate model values before editor initialization📊 Changes
14 files changed (+448 additions, -62 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)➕
e2e/gpt-image-2-5.e2e.ts(+131 -0)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+22 -17)📝
packages/client/src/lib/connection-transfer.ts(+3 -6)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/server/src/routes/sprites.routes.ts(+3 -10)📝
packages/server/src/services/image/image-generation-defaults.ts(+2 -5)📝
packages/server/src/services/image/image-generation.ts(+39 -18)📝
packages/server/src/services/mari-db/mari-images.service.ts(+1 -5)📝
packages/shared/src/constants/model-lists.ts(+2 -0)📝
packages/shared/src/index.ts(+1 -0)📝
packages/shared/src/types/connection.ts(+1 -1)➕
packages/shared/src/utils/openai-image.ts(+30 -0)➕
scripts/regressions/gpt-image-2-5.regression.ts(+210 -0)📄 Description
Linked issue
Closes #5971
Why this change
Selecting GPT Image 2.5 currently hides quality controls and treats reference-image requests as ordinary text-to-image generation. Both official OpenAI variants now use Marinara's GPT Image generation/edit path, with the additional quality levels and size limits documented for 2.5.
What changed
gpt-image-2.5-flareandgpt-image-2.5-sunburstto the image model catalog. Recognize their dated snapshots in capability checks.xhigh) and Max quality settings for 2.5. Preserve them through save/reload, export/import and fallback connections; reset unsupported levels to Auto for older models.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated verification:
pnpm checkpassed, including localization, TypeScript, ESLint and production builds. One existing hook-dependency warning inGameNarration.tsx.pnpm regression:promptpassed.node scripts/run-regressions.mjs --filter scripts/regressions/gpt-image-2-5.regression.tspassed: both models' JSON generation and multipart edits against a local HTTP fixture, exact valid canvases and invalid-size normalization, quality persistence/transfer/fallback, and older GPT Image / DALL-E controls.pnpm smoke:ui e2e/gpt-image-2-5.e2e.tspassed in all three projects: desktop Chromium, mobile Chromium and mobile WebKit. Selected both models, saved/reloaded Extra high and Max, verified transparent single-sheet sprite previews and switching back to older GPT Image quality settings./api/healthand the browser shell both returned HTTP 200.mari-guard-sibling-paths.regression.ts(canonical store-link assertion) andstorage-writer-lock.regression.ts(invalid legacy lease fields) also failed in isolated macOS reruns. Those files and implementation paths are unchanged by this patch. The final head,36612209c, passed the complete CI suite, including all desktop/mobile browser lanes, and completed CodeRabbit review with every thread resolved.Integration proof for
31d60c042(#5970) and36612209c(#5972) combined also passed:pnpm check, both Roleplay command/streaming regressions, the GPT Image 2.5 regression, and all 15 focused desktop/mobile browser cases.The model-initialization follow-up also passed
pnpm checkand all three browser projects, including a malformed model value with Max quality. Merged tostagingasd4dcf909c.Manual verification notes
Playwright exercised the real local UI and API; before/after screenshots were visually inspected in dark/light themes and desktop/mobile viewports. This is automated browser proof, not a human click-through or live provider test.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUnreleased changelog entry added. No version bump, migration or new dependency.
UI evidence (if applicable)
Before/after screenshots for all three browser projects
The before captures use the staging ConnectionEditor at
8945372f4with the new model catalog retained. After captures use this PR. Download the gist ZIP and open the HTML files to view the original embedded screenshots.Official API references
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.