DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
fix(pet): feed the working-motion bubble from ACTIVITY_COPY, not STATUS_COPY (#969)
knightxiaoxi7731ffd8534c
diff --git a/src/pet/hooks/use-bubble-tracker.helpers.test.ts b/src/pet/hooks/use-bubble-tracker.helpers.test.tsindex 8332adbe..a3382a5a 100644--- a/src/pet/hooks/use-bubble-tracker.helpers.test.ts+++ b/src/pet/hooks/use-bubble-tracker.helpers.test.ts@@ -121,6 +121,13 @@ describe('bubbleContent', () => {.toEqual({ title: '会话一', description: '系统运行中', loading: true })})+ it('selects the tool-activity copy for a working session by its tool name', () => {+ expect(bubbleContent({ id: '0', title: '会话一', liveActivity: { name: 'grep' } }, 'working'))+ .toEqual({ title: '会话一', description: '正在检索', loading: true })+ expect(bubbleContent({ id: '0', title: '会话一', liveActivity: { name: 'write' } }, 'working'))+ .toEqual({ title: '会话一', description: '正在修改', loading: true })+ })+it('keeps the subagent prefix and selects the running copy', () => {expect(bubbleContent({ id: '0', origin: 'subagent', title: '会话一' }, 'running')).toEqual({ title: '子代理 · 会话一', description: '任务运行中', loading: true })diff --git a/src/pet/hooks/use-bubble-tracker.helpers.ts b/src/pet/hooks/use-bubble-tracker.helpers.tsindex 9a928047..1306b1e5 100644--- a/src/pet/hooks/use-bubble-tracker.helpers.ts+++ b/src/pet/hooks/use-bubble-tracker.helpers.ts@@ -175,7 +175,7 @@ export function bubbleContent(session: BubbleSession, motion: Motion) {const fallbackCopy = motion === 'waiting'? statusCopy(session.phase === 'approval' ? 'approval' : 'waiting', seed): motion === 'working'- ? statusCopy(toolActivityGroup(String((session.liveActivity as Record<string, unknown> | undefined)?.name ?? '')), seed)+ ? activityCopy(toolActivityGroup(String((session.liveActivity as Record<string, unknown> | undefined)?.name ?? '')), seed): statusCopy(motion, seed)const candidates = [