Skip to content

feat(avatar): color every hair piece and wear built-in headpieces beside an accessory - #1246

Merged
DoodleBears merged 1 commit into
mainfrom
claude/festive-gauss-gv7xu2
Oct 9, 2026
Merged

DoodleBears merged 1 commit into
mainfrom
claude/festive-gauss-gv7xu2

Conversation

@DoodleBears

Copy link
Copy Markdown
Contributor

Summary

Closes #1217. Part of spec #1209. This PR uses @botharness/pixel-avatar 0.9.0 (BotHarness/BotPixel#17), which adds asset version 4.

  • Per-piece colors. Colors gains Bangs color, Back hair color and Strand color, next to the left and right side hair colors. Each one follows the hair color until you pick it, and Follow hair color resets it.
  • Strand. A new Strand category offers none, ahoge, curl or double. It is hidden on a flower, and also hidden without bangs, with the usual "kept" note.
  • Headpiece.
    • The category is renamed from "Drawn headpiece" to Headpiece.
    • It offers built-in cat, bunny and horse ears, little horns, a halo and new little wings, next to the Part Library's drawn headpieces.
    • A headpiece is worn together with any accessory.
    • On a version 4 recipe, the accessory list no longer shows the five accessories that became headpieces, unless one is still selected.
  • Migration only on edit.
    • A saved Avatar wearing cat ears as an accessory keeps rendering as it was.
    • As soon as the Human edits a headpiece, strand or piece color, withPieces moves that accessory into the headpiece slot under version 4.
    • Older clients show the saved snapshot.

Evidence

I captured this on an isolated DSH instance built from this branch. The speech is simulated, and no model reply was involved. Details: docs/assets/pr/1217-pieces-headpieces.

Built-in headpieces Worn with a bow accessory
headpieces accessory
Bangs, left side, back hair and a double strand each colored Turned: the far ear hides
colors turned

Full flow:

Video: pieces-flow.mp4

Verification

  • pnpm typecheck, pnpm lint and pnpm format:check pass.
  • vitest run packages/core and the editor tests pass: 1580 tests.
  • A new editor test starts from a saved cat-ears accessory recipe and checks the full flow:
    • the accessory is shown as selected;
    • choosing a halo headpiece moves the recipe to version 4, and the old accessory clears;
    • the moved accessories disappear from the accessory list;
    • a bow is worn together with the halo;
    • the strand is curl;
    • bangs and strand colors are set, and back hair color is reset;
    • the saved v4 recipe contains all of the above.

Agent-Task: claude/cloud/session_01MozvQ2eMvqX1MzSqm9G2o8

🤖 Generated with Claude Code

https://claude.ai/code/session_01MozvQ2eMvqX1MzSqm9G2o8


Generated by Claude Code

Bangs, back hair and a new single strand each take a color that follows
the hair color until picked. Headpiece offers built-in cat, bunny and
horse ears, horns, a halo and little wings, worn with any accessory;
saved headpiece accessories move into the slot only when edited. Uses
@botharness/pixel-avatar 0.9.0.

Issue: #1217
Agent-Task: claude/cloud/session_01MozvQ2eMvqX1MzSqm9G2o8
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MozvQ2eMvqX1MzSqm9G2o8
@coderabbitai

coderabbitai Bot commented Oct 8, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 52 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cc551699-5014-4d7f-abba-1464aff72bdd
📥 Commits

Reviewing files that changed from the base of the PR and between 66d2767 and d8cb5c7.

⛔ Files ignored due to path filters (4)
  • docs/assets/pr/1217-pieces-headpieces/pieces-flow.gif is excluded by !**/*.gif
  • docs/assets/pr/1217-pieces-headpieces/pieces-flow.mp4 is excluded by !**/*.mp4
  • docs/assets/pr/1217-pieces-headpieces/render-sheet.png is excluded by !**/*.png
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (16)
  • CHANGELOG.md
  • CHANGELOG.zh.md
  • docs/architecture/botharness-architecture.en.md
  • docs/architecture/botharness-architecture.md
  • docs/assets/pr/1217-pieces-headpieces/README.md
  • docs/assets/pr/1217-pieces-headpieces/headpieces-en-light.webp
  • docs/assets/pr/1217-pieces-headpieces/piece-colors-en-light.webp
  • docs/assets/pr/1217-pieces-headpieces/speaking-en-light.webp
  • docs/assets/pr/1217-pieces-headpieces/turned-en-light.webp
  • docs/assets/pr/1217-pieces-headpieces/with-accessory-en-light.webp
  • packages/client/src/client/avatar-appearance-editor.tsx
  • packages/client/src/client/locale.ts
  • packages/client/test/avatar-appearance-editor.test.ts
  • packages/core/package.json
  • packages/core/src/bots/avatar-appearance.ts
  • pnpm-workspace.yaml
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avatar Pieces: every hair piece colored and built-in headpieces

2 participants