Repository navigation
feat(avatar): draw hair pieces starting from the built-in style - #1242
Merged
Merged
Conversation
Bangs, left and right side hair and back hair gain "Draw or edit this piece": the editor starts from the worn piece flattened to cells (with a keep-shape note), uses a single layer over a backdrop without that piece, and saves to the Part Library. The drawn piece is worn in its slot; "Back to the built-in style" restores the saved choice, and library parts are listed per slot. Issue: #1238 Agent-Task: claude/cloud/session_01MozvQ2eMvqX1MzSqm9G2o8 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MozvQ2eMvqX1MzSqm9G2o8
Issue: #1238 Agent-Task: claude/cloud/session_01MozvQ2eMvqX1MzSqm9G2o8 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MozvQ2eMvqX1MzSqm9G2o8
|
Warning Review limit reachedYou'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 5 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
⛔ Files ignored due to path filters (3)
📒 Files selected for processing (21)
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. Comment |
This was referenced Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1238. Part of spec #1209. This PR uses
@botharness/pixel-avatar0.6.0 (BotHarness/BotPixel#12).Editor
hairPieceStart), with a note that the drawn piece keeps this shape and no longer follows face shape or hair length.Library and restore
Rendering (BotPixel)
hairColorcells at tone 0 are live hair. They are shaded and recolored like built-in hair, follow turns with the built-in style's offset, and hide under helmets, hoods and on flowers.Plumbing
CustomPartEditortakes aslot, an optional note and an optional backdrop.Evidence
I captured this on an isolated DSH instance built from this branch. The speech is simulated: a test script drives the mouth layers, and no model reply was involved. Details: docs/assets/pr/1238-drawn-hair.
Full flow (draw bangs, extend the left lock, recolor, go back to the built-in style, wear the drawn bangs again, speak):
Verification
pnpm typecheck,pnpm lint,pnpm formatand the Release Ledger check all pass.vitest run: 3464 passed.client-observer.test.tsfails in this container because it can't bundlenode:sqlite; it fails the same way on a clean tree.bangspart;bangsPart.Agent-Task:
claude/cloud/session_01MozvQ2eMvqX1MzSqm9G2o8🤖 Generated with Claude Code
https://claude.ai/code/session_01MozvQ2eMvqX1MzSqm9G2o8
Generated by Claude Code