Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
82fbbb2
feat(client): add optional companion babble and spring drag tilt
DoodleBears Oct 8, 2026
e431168
Merge remote-tracking branch 'origin/main' into codex/1173-companion-…
DoodleBears Oct 8, 2026
e2e7014
fix(companion): keep throw physics alive beyond the character clip
DoodleBears Oct 8, 2026
9c4d660
Merge origin/main into codex/1173-companion-babble-spring
DoodleBears Oct 8, 2026
15cd2e8
fix(companion): hide idle chrome until deliberate interaction
DoodleBears Oct 8, 2026
a4069f7
Merge latest main into companion feedback slice
DoodleBears Oct 8, 2026
629f7ba
test(companion): comply with source comment policy
DoodleBears Oct 8, 2026
01dc9ad
test(companion): exercise collision with active status bubbles
DoodleBears Oct 8, 2026
c396fba
Merge latest main while preserving companion and WeChat notes
DoodleBears Oct 8, 2026
d6156ff
fix(companion): follow long message tails without scrollbars
DoodleBears Oct 8, 2026
4e36690
Merge latest main into companion motion and reading slice
DoodleBears Oct 8, 2026
5e0ec08
Merge latest main before companion interaction audio
DoodleBears Oct 8, 2026
451d27a
feat(client): add companion interaction sounds
DoodleBears Oct 8, 2026
4776990
fix(client): unlock companion audio on first drag
DoodleBears Oct 8, 2026
223ed1e
docs(companion): publish real interaction audio evidence
DoodleBears Oct 8, 2026
d7f3d91
docs(companion): publish real reading and mouth lifecycle evidence
DoodleBears Oct 8, 2026
3b1b591
fix(companion): admit fresh replies after final card dismissal
DoodleBears Oct 8, 2026
e492654
Merge latest main for current avatar compatibility
DoodleBears Oct 8, 2026
62d9ef7
test(companion): verify empty-reader recovery displays new output
DoodleBears Oct 8, 2026
c693867
docs(companion): publish real fresh-reply dismissal regression evidence
DoodleBears Oct 8, 2026
3c7da41
docs(companion): qualify native unpin and live repin
DoodleBears Oct 8, 2026
84f01f3
docs(companion): format sanitized unpin qualification
DoodleBears Oct 8, 2026
426167c
Keep companion anchors aligned on direct motion commits
DoodleBears Oct 9, 2026
803be5e
Record actual reduced-motion release regression and correction
DoodleBears Oct 9, 2026
3dbcce8
Merge current main into companion sound and spring branch
DoodleBears Oct 9, 2026
a4b78f2
docs(companion): qualify actual offscreen playback and return
DoodleBears Oct 9, 2026
50b4453
merge: integrate live companion requests with sound and spring
DoodleBears Oct 9, 2026
6484f6c
fix(companion): adopt flatter full speech opening from formal avatar
DoodleBears Oct 9, 2026
f07687f
build: allow the approved formal avatar release version
DoodleBears Oct 9, 2026
2c91ac2
merge: base formal companion mouth on current sound and requests
DoodleBears Oct 9, 2026
a009678
docs: record companion full speech mouth improvement
DoodleBears Oct 9, 2026
476cc0d
docs(companion): qualify sound with live multi-bot requests
DoodleBears Oct 9, 2026
afcc23d
docs(companion): compare formal speech mouth in actual DSH
DoodleBears Oct 9, 2026
2ef1106
docs(companion): record accepted formal mouth qualification
DoodleBears Oct 9, 2026
c9cc029
fix(client): keep throw gravity on elapsed frame time
DoodleBears Oct 9, 2026
fc50dde
docs: keep companion sound and drop fixes unreleased
DoodleBears Oct 9, 2026
ef1885d
fix(client): start drop integration at pointer release
DoodleBears Oct 9, 2026
024fe5f
merge: integrate latest main with companion drop clock
DoodleBears Oct 9, 2026
98edf28
docs: format integrated unreleased ledger entries
DoodleBears Oct 9, 2026
64d35cb
merge: retain formal companion mouth on updated motion prerequisite
DoodleBears Oct 9, 2026
0eb841d
End companion drag immediately at pointer release
DoodleBears Oct 9, 2026
4072b9e
Merge latest main into companion release fix
DoodleBears Oct 9, 2026
c8fec7c
Record integrated companion release and floor return
DoodleBears Oct 9, 2026
659a141
merge: preserve formal mouth with accepted pointer release
DoodleBears Oct 9, 2026
83a02c6
docs: qualify companion audio through stale recovery and repin
DoodleBears Oct 9, 2026
2ff8136
docs: qualify stale audio interval precisely
DoodleBears Oct 9, 2026
1ab4fb9
docs: qualify companion archive audio and resume
DoodleBears Oct 9, 2026
aa74d85
docs: format archive audio qualification
DoodleBears Oct 9, 2026
b48ed8a
refactor: move companions with a translated stage
DoodleBears Oct 9, 2026
774d9f6
merge: integrate latest main with companion translation
DoodleBears Oct 9, 2026
7b1eba8
docs: capture translated companion release on real DSH
DoodleBears Oct 9, 2026
3a1764e
docs: compare companion translation in both themes
DoodleBears Oct 9, 2026
5cddec3
Merge direct-motion anchor correction into companion polish
DoodleBears Oct 9, 2026
1c0651e
fix(client): keep companion stage fixed during keyboard reading
DoodleBears Oct 9, 2026
0e122cc
docs: record native companion reading and stage qualification
DoodleBears Oct 9, 2026
326d669
merge: sync companion polish with current main
DoodleBears Oct 10, 2026
34ed59e
merge: update formal mouth consumption to current companion polish
DoodleBears Oct 10, 2026
43dae15
docs: keep released companion history immutable
DoodleBears Oct 10, 2026
1418c0c
merge: update formal mouth consumption to current companion polish
DoodleBears Oct 10, 2026
38571a9
merge: update formal mouth consumption to current companion polish
DoodleBears Oct 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ Pixel Avatars can be an elf, dwarf, orc or talking flower with beards, medieval

### Fixed

- Window Companions use a flatter full speech opening, preserving the half-open mouth, saved expression, portraits and speaking rhythm ([#1241](https://github.com/BotHarness/DeepSeekBot/issues/1241)).

- Window Companion bubbles update their origin together with the character during dragging, keyboard movement and reduced-motion release, without waiting for another animation frame ([#1248](https://github.com/BotHarness/DeepSeekBot/issues/1248)).

- Reading a Window Companion bubble with the keyboard or resizing the window no longer scrolls the outer stage and leaves the character above the floor; the bubble itself still scrolls ([#1173](https://github.com/BotHarness/DeepSeekBot/issues/1173)).
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@

### Fixed

- 窗口伙伴说话时全张嘴改为更平的开口,保留半张嘴、原有表情、头像和说话节奏([#1241](https://github.com/BotHarness/DeepSeekBot/issues/1241))。

- 窗口伙伴在拖拽、键盘移动与减少动效下松手时,同步更新人物和气泡来源锚点,无需等待下一动画帧([#1248](https://github.com/BotHarness/DeepSeekBot/issues/1248))。

- 用键盘阅读窗口伙伴气泡或调整窗口尺寸时,不再滚动外层舞台、让人物悬在底部上方;气泡内部仍可滚动([#1173](https://github.com/BotHarness/DeepSeekBot/issues/1173))。
Expand Down
40 changes: 40 additions & 0 deletions docs/assets/pr/1241-formal-mouth/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Formal package mouth comparison in actual DSH

Before: source `50b44535a8180a138268c4f52a7fb5581f61de13`, formal
`@botharness/pixel-avatar@0.8.0`. After: source
`a009678599dcc7913e0c3a26de00a856a71f2e7d`, formal `0.10.1` and explicit
Companion-only `speechMouthVersion: 2`. No local tarball or distribution patch.

Both runs use the same isolated Profile, Bot, saved default illustrated
recipe, Chinese/light theme and 1559 × 865 viewport. Each run sends the
same requested text through the real native model and `channel_send`;
canonical reply IDs are newly committed in each run. Earlier history is
retained between runs, so the ordinary Chat history and delivery timing
differ. The opening UI and speaking samples are comparable rather than
pixel-identical captures. Keyboard focus intentionally shows the toolbar.

`qualification.json` records equal recipe, portrait and full-text hashes.
All five captured saved, closed and half-open SVG layers match exactly;
all five full-open layers change to the new flatter artwork. The public
renderer regression independently covers the five pre-rendered turns.
Actual DOM samples observe saved, closed, half-open and open in both runs.
The native bubble close restores the saved mouth in the same document.
Fresh mounts show no historical cards. There are no console errors.

`before.webm` (44.633 seconds) and `after.webm` (40.600 seconds) are
continuous silent official Chrome DevTools MCP screencasts, container-remuxed
only. They show real text revelation, transitions and native dismissal.
Screenshots are unfrozen speaking samples: the filenames `half-open` and
`open` describe the requested capture targets, not a phase guarantee.
The mouth changes while the tool captures; observed states immediately
before/after are included in the qualification. Use the continuous videos
to judge the moving full opening rather than claiming phase-synchronized
screenshots. No interpolation, dubbing, fake text or forced animation state.

Owned browsers are closed after both recordings. Failed onboarding and an
initial activity-dependent turn-count assumption are retained privately and
excluded. The successful runs have five layers in both captured snapshots;
the component normally reduces to its base pose when Activity becomes idle.
Human accepted the formal after recording on 2026-10-09, confirming the
new full opening, preserved half-open mouth and restored expression. Current
delivery status is tracked in Issue #1241 and PR #1254.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/pr/1241-formal-mouth/after-open.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/pr/1241-formal-mouth/after.webm
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/pr/1241-formal-mouth/before-open.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/pr/1241-formal-mouth/before.webm
Binary file not shown.
55 changes: 55 additions & 0 deletions docs/assets/pr/1241-formal-mouth/qualification.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"before": {
"source": "50b44535a8180a138268c4f52a7fb5581f61de13",
"formalVersion": "0.8.0"
},
"after": {
"source": "a009678599dcc7913e0c3a26de00a856a71f2e7d",
"formalVersion": "0.10.1"
},
"viewport": {
"width": 1559,
"height": 865
},
"locale": "zh-CN",
"theme": "light",
"sameProfileAndBot": true,
"recipeHash": "3fab67b8fd87ba27e391eacee28ca87c1991c9cd58e1670d85ff13640378cb3b",
"portraitHash": "285a563c4c0114e7ef9bd08224c81b6481738096e525bf5eac3ecffbb8b17677",
"bodyHash": "2e87c36b8c19dc01ee18caeb3a57cd0a343dd9cf52ffaeb16b13597989e9f334",
"identicalPortrait": true,
"identicalSavedClosedHalfOpenAllFiveLayers": true,
"changedFullOpeningAllFiveLayers": true,
"capturesAreUnfrozenSpeakingSamples": true,
"speechStates": {
"before": ["saved", "half-open", "closed", "open"],
"after": ["saved", "closed", "half-open", "open"]
},
"captureObservedStates": {
"before": {
"half-open": {
"before": ["closed"],
"after": ["closed"]
},
"open": {
"before": ["half-open"],
"after": ["half-open"]
}
},
"after": {
"half-open": {
"before": ["closed"],
"after": ["closed"]
},
"open": {
"before": ["half-open"],
"after": ["closed"]
}
}
},
"canonicalNewReplyBoth": true,
"dismissRestoresSavedSameDocument": true,
"historicalCardsOnFreshMount": [0, 0],
"consoleErrors": [0, 0],
"ownedBrowsersClosed": true
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"./package.json": "./package.json"
},
"dependencies": {
"@botharness/pixel-avatar": "0.10.0",
"@botharness/pixel-avatar": "0.10.1",
"@botharness/pixel-banner": "0.1.0",
"@resvg/resvg-js": "2.6.2",
"silk-wasm": "3.7.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/bots/avatar-appearance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ export function avatarSvg(
if (recipe.family === 'illustrated' && options.surface === 'companion') {
if (!isIllustratedAvatarRecipe(recipe)) throw new Error('invalid Avatar recipe');
const yaw = { front: 0, left: -25, right: 25 }[recipe.pose];
const base = pixelFigure(recipe, yaw, options);
const base = pixelFigure(recipe, yaw, { ...options, speechMouthVersion: 2 });
const turns = (options.turns ?? [])
.map((delta) => {
const pose = pixelFigure(recipe, yaw + delta, options);
const pose = pixelFigure(recipe, yaw + delta, { ...options, speechMouthVersion: 2 });
const layers = `${pose.body}${pose.head}`.replaceAll(
'class="bh-illustrated-',
'data-turn-part="',
Expand Down
34 changes: 34 additions & 0 deletions packages/core/test/companion-mouth-artwork.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { expect, it } from 'vitest';
import {
avatarSvg,
AVATAR_TURNS,
DEFAULT_ILLUSTRATED_RECIPE,
illustratedAvatarSvg,
} from '../src/bots/avatar-appearance.js';

it('uses the flatter opening only for Companion speech and preserves portraits and accepted mouth layers', () => {
const recipe = DEFAULT_ILLUSTRATED_RECIPE;
const saved = JSON.stringify(recipe);
const options = { mouthLayers: true, turns: AVATAR_TURNS };
const portrait = avatarSvg(recipe, options);
const companion = avatarSvg(recipe, { ...options, surface: 'companion' });
expect(portrait).toBe(illustratedAvatarSvg(recipe, options));
expect(avatarSvg(recipe)).toBe(illustratedAvatarSvg(recipe));
const layers = (svg: string, state: string) =>
[
...svg.matchAll(new RegExp(`<g data-avatar-mouth="${state}" opacity="[01]">(.*?)</g>`, 'gu')),
].map((match) => match[1]);
for (const state of ['saved', 'closed', 'half-open']) {
expect(layers(companion, state)).toHaveLength(5);
expect(layers(companion, state)).toEqual(layers(portrait, state));
}
expect(layers(companion, 'open')).toHaveLength(5);
expect(
layers(companion, 'open').every((layer, index) => layer !== layers(portrait, 'open')[index]),
).toBe(true);
expect(layers(companion, 'open')[0]).toContain(
'<rect x="15" y="20" width="3" height="1" fill="#b8415a"/>',
);
expect(avatarSvg(recipe, { surface: 'companion' })).not.toContain('data-avatar-mouth=');
expect(JSON.stringify(recipe)).toBe(saved);
});
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ minimumReleaseAgeExclude:
- '@deepseek-ai/dsh-experimental-schedule-bundle@0.2.0-rc.1'
- '@deepseek-ai/dsh-host-product-telemetry-otel@0.2.0-rc.1'
- '@deepseek-ai/dsh-otel@0.2.0-rc.1'
- '@botharness/pixel-avatar@0.1.0 || 0.2.0 || 0.3.0 || 0.4.0 || 0.5.0 || 0.6.0 || 0.7.0 || 0.8.0 || 0.9.0 || 0.10.0'
- '@botharness/pixel-avatar@0.1.0 || 0.2.0 || 0.3.0 || 0.4.0 || 0.5.0 || 0.6.0 || 0.7.0 || 0.8.0 || 0.9.0 || 0.10.0 || 0.10.1'
- '@botharness/pixel-banner@0.1.0'
- '@botharness/pixel-morph@0.1.0 || 0.2.0'

Expand Down
Loading