Skip to content

feat(companions): animate compatible pixel mouths with real message text - #1169

Merged
DoodleBears merged 4 commits into
mainfrom
codex/1143-companion-mouth
Oct 8, 2026
Merged

DoodleBears merged 4 commits into
mainfrom
codex/1143-companion-mouth

Conversation

@DoodleBears

@DoodleBears DoodleBears commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Refs #1143 · Specification #1135 · Agent claim · Owning package PR #7 · Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269

Why the change

Pinned pixel companions can move their mouths with real message text while preserving their saved identity and existing Activity animation.

Special things to note

  • Merge risk: two-way door — revert the presentation and dependency commits, with no saved-data repair; small blast radius — supported companion pixel busts only, with shared Avatar compatibility covered. Review independent animation ownership, restoration gates and image/unknown-rig fallbacks.
  • Stacked on feat(companions): identity lifecycle and accessible controls (#1142) #1166; this slice adds no Host speech Activity, persistence, message queue, audio or model markup. The first still-typing visible card drives one mouth; hover reading continues text reveal while freezing expiration and pending-card ordering.
  • Human-approved deferred visual validation: owning BotPixel PR #7 is merged and pixel-avatar@0.2.0 is published, downloaded and integrity-verified; its JS and type declarations match the qualified candidate byte for byte. Actual DSH mouth screenshots/video and Human hand-feel acceptance remain pending because Chrome control commands time out and the Human-requested in-app browser returns ERR_BLOCKED_BY_CLIENT for the local DSH address; the local real-model DM succeeded. Performance measurements remain separately tracked in Window Companion: measure frame and heap costs and agree performance budgets #1167.

Change outline

Ownership diagram in both themes.

 Canonical committed Channel output → existing bounded per-Bot playback
+ safe grapheme progress → saved / closed / half-open / open
 <Avatar> → <IllustratedAvatar>
+ optional public BotPixel mouth layers, rendered once per pose
+ <AvatarSpeech> owns bounded mouth/cover fades and restoration
 unchanged Activity / attention → stable head, gaze and blink owner
 unchanged roster portraits, saved recipes, snapshots and image fallbacks

Text punctuation and whitespace close the mouth. End, cancellation, stale data, hidden/offscreen state, reduced motion and disposal restore the saved expression. Rapid updates cancel obsolete fades without accumulating a motion queue or allowing old observers to overwrite a new phase.

Runtime evidence and reproduction

Capture blocker: after Chrome was reopened, both DOM reads and screenshots continued timing out while establishing browser control. The in-app browser also refuses the same local DSH address and its normal launcher login entry with ERR_BLOCKED_BY_CLIENT, even after the Human enabled Always allow. An independent HTTP preflight confirms authenticated root access returns 200; unauthenticated root returns the expected 401 and the login entry returns 303 with a cookie. The Human also tried opening the normal login link manually and confirmed that it could not load. No disconnected SVG rendering is offered as DSH evidence. The Human explicitly authorized merging first and returning later for visual checks. Before/after screenshots in both themes, a short real-message recording and Human hand-feel acceptance remain tracked in #1143 after merge; they are not claimed complete.

The isolated verified Profile at http://127.0.0.1:31939/ retains synthetic pixel companions and an uploaded-image companion. Open a pinned pixel Bot's DM, send a short request containing punctuation, and compare its unchanged roster portrait with the companion's closed/half-open/open mouth during visible text reveal. Hover the bubble stack, send overlapping replies, then dismiss it and confirm restoration. Repeat with reduced motion and the uploaded-image companion. The production authenticated DM path has already returned a real model reply; visual mouth playback is not yet claimed.

Validation

  • Client and core Avatar suite: 128 files, 931 tests passed. Focused public companion/production Avatar coverage includes grapheme safety, punctuation, end/dismiss, reading, independent instances, rapid transitions, hidden/offscreen/reduced motion and compatibility.
  • Typechecking, lint/source policy, release-ledger checks and production build passed with the published dependency (including the 14 focused speech/Avatar tests rerun after installation). Both required code-review axes, including the final dependency delta, are clean against latest fetched origin/main (4b82a41).
  • The Windows full-suite attempt was stopped after widespread existing Host fixture timeouts/temporary-directory EPERM failures. The unchanged Window Companion 5: archive, deletion, fallback and accessible runtime acceptance #1142 parent and this revision both fail the same isolated Bridge suite's temporary-directory cleanup; this is not a full-suite pass. Linux CI 37738034121 passed all checks, including the full test suite and build.

Main integration and merge

Human authorized the complete dependency chain and design PR; this PR is merged into main. Final integrated revision 2c3dbc2d passed complete Linux CI. The only manual main-merge conflict was preserving both Release Ledger entries in both languages. The lifecycle integration test now exercises the current confirmed deletion owner; its 13 related local tests and independent Standards/Spec reviews passed. Actual mouth screenshots, recording and Human hand-feel acceptance remain explicitly deferred in open #1143; performance remains #1167.

Issue: #1143
Agent-Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269
Issue: #1143

Agent-Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269
@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 34 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: f8471909-be21-4504-9401-5bfebd1d2a0b
📥 Commits

Reviewing files that changed from the base of the PR and between c4adcf9 and 2c3dbc2.

⛔ Files ignored due to path filters (1)
  • 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
  • packages/client/src/client/avatar-speech.tsx
  • packages/client/src/client/avatar.tsx
  • packages/client/src/client/illustrated-avatar.tsx
  • packages/client/src/client/styles.ts
  • packages/client/src/client/window-companion-view.tsx
  • packages/client/src/client/window-companion.ts
  • packages/client/test/avatar-speech.test.ts
  • packages/client/test/companion-speech.test.ts
  • packages/client/test/illustrated-avatar.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.

@DoodleBears

Copy link
Copy Markdown
Contributor Author

Architecture: one text-driven mouth, independent animation ownership

The committed-output feed and Activity authority remain unchanged. Existing per-Bot text playback derives a mouth phase; the production Avatar opts into the public BotPixel 0.2.0 groups, and AvatarSpeech owns only bounded mouth/cover fades and their cleanup. Head/gaze/blink resources are retained across speech updates.

Grounded in packages/client/src/client/window-companion.ts, avatar.tsx, illustrated-avatar.tsx, avatar-speech.tsx and the public adapter in packages/core/src/bots/avatar-appearance.ts. Rendered from the validated six-node graph at head 5f5eb243 against stacked base 6bf3c8a6.

These are review diagrams. Runtime before/after screenshots and video remain explicitly pending in the PR body.

mouth-ownership-light-64b84c38756d678a9c4c39da4fc345db

mouth-ownership-dark-fb3608da0295d06ef1ad1a1b0f49ea22

Issue: #1143

Agent-Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269
Issue: #1143

Agent-Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269
@DoodleBears

Copy link
Copy Markdown
Contributor Author

Standards

Clean: no documented-standard breaches or actionable baseline smells. The lifecycle test now uses the current confirmed deletion owner and verifies completion with Memory retained.

Spec

Clean: terminal deletion still removes companion identity, selection, cards and consumption; no added capability or changed mouth behavior. Mouth runtime appearance and hand-feel remain Human-deferred in open #1143, and performance remains #1167.

Review fixed point: latest fetched origin/main 67d40142d8a830c4f66932d09a1fb317c9fca5d0. Lifecycle head: f21cbca8; inherited mouth head: 2c3dbc2d. Both independent reviewers confirmed that mouth/Avatar/companion presentation files are unchanged from the previously qualified mouth implementation. Fresh local focused deletion/lifecycle coverage: 13 tests passed; typechecking and formatting passed. Final integrated Linux CI is still running.

@DoodleBears
DoodleBears changed the base branch from codex/1142-companion-lifecycle to main October 8, 2026 07:17
@DoodleBears
DoodleBears merged commit 456a6f8 into main Oct 8, 2026
2 checks passed
@DoodleBears
DoodleBears deleted the codex/1143-companion-mouth branch October 28, 2026 04:25
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.

1 participant