mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #2001] [MERGED] fix(otome-forge): a colour picked from each look, and no two name plates alike #2068
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#2068
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-Agents/pull/2001
Author: @SpicyMarinara
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/otome-li-accent-colours📝 Commits (3)
37e1612fix(otome-forge): a colour picked from each look, and no two name plates alike3a774fbMerge branch 'staging' into fix/otome-li-accent-coloursaf00ae2fix(otome-forge): centre the hue buckets and settle sibling accents in one pass📊 Changes
20 files changed (+547 additions, -187 deletions)
View changed files
➕
artifacts/otome-forge-0.6.10.zip(+0 -0)📝
catalog/preview/catalog.json(+8 -8)📝
catalog/preview/notes.json(+6 -6)📝
catalog/preview/v2/catalog.json(+8 -8)📝
catalog/preview/v2/notes.json(+6 -6)📝
catalog/preview/v3/catalog.json(+8 -8)📝
catalog/preview/v3/notes.json(+6 -6)📝
packages/otome-forge/CHANGELOG.md(+5 -0)📝
packages/otome-forge/client.js(+82 -81)📝
packages/otome-forge/manifest.json(+5 -5)📝
packages/otome-forge/server.mjs(+9 -9)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-run.ts(+21 -5)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/lib/accent.ts(+162 -36)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts(+4 -0)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts(+6 -5)📝
packages/otome-forge/src/engine/packages/server/src/services/otome-forge/routes/runs.ts(+8 -3)📝
packages/otome-forge/src/engine/packages/server/src/services/otome-forge/schemas/state.ts(+1 -0)📝
packages/otome-forge/src/engine/packages/server/src/services/otome-forge/schemas/unit.ts(+2 -0)📝
scripts/build-feature-packages.mjs(+1 -1)➕
tests/otome-forge-accents.regression.ts(+199 -0)📄 Description
Closes #2003
Why this change
Every love interest in a cast showed the same green name plate and the same green glow behind their art, while an older story showed a different colour each — a regression, not the design.
The portrait picker averaged every coloured pixel in the upper half of a look. Looks are now painted on a chroma matte (
S/art/prompts.tsMATTES: chroma green, or magenta/cyan when the look names green) so the cut-out can key it out. The backdrop is the largest, most saturated thing in the frame, so it dominated the average and the colour saved tounit.accentwas the backdrop.accentIsPlaceholderthen treated that saved value as his own, so the name-hash palette never got a second chance either.What changed
The pick is a detail, not an average (
client/lib/accent.ts)No two plates alike
castAccentForkeeps his own colour when no sibling reads as it, else the colour from his name, else the first free palette tone.useRefof the colours already chosen is read and written synchronously before the POST, so two portraits that sample alike cannot both keep that colour, and a failed save hands its colour back.The glow follows the same colour
data-face="tender"etc.) used to replace--of-li-accentoutright, so a speaking LI's glow was the same pink/purple/red whoever it was. They nowcolor-mix45% with his accent: his face warms or cools his own colour rather than replacing it.Stories already in progress re-pick
unit.accentSamplerrecords which picker chose the accent (ACCENT_SAMPLER_VERSION), returned inRunLiViewand accepted byPOST /runs/:run/lis/:li/accent.accentIsPlaceholdertreats an accent from an older picker as unset, so the existing client effect re-samples and re-saves on the next visit. A story on 0.6.9 with five green plates recolours itself when opened.Image generation is untouched. No change to prompts, mattes, references, painting or the Engine's image routes; the diff is the accent module, the hook that calls it, the run view/route that carries the version, the aura CSS and the tests.
Package and security impact
otome-forge0.6.10accentSamplerfield is optional and older documents read with0Validation
npm run test:otome-forge: 540/540 TypeScript regressions pass, includingtests/otome-forge-accents.regression.ts.npx prettier --checkover the CI pattern: clean.node scripts/validate-catalog.mjs: pass.validate-package-locales.mjs,validate-package-locale-keys.mjs,test-catalog-lanes.mjs: pass.node scripts/typecheck-packages.mjs otome-forge: no syntax errors, undefined names or unresolved modules.Test plan
Documentation impact
UI evidence (if applicable)
Before: every plate and glow the same green. After: one colour per love interest, picked from a detail of his portrait.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.