The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(human): remove reaction emoji support from mascot face selection
Steven Enamakel77c6a5708b28
diff --git a/app/src/features/human/useHumanMascot.test.ts b/app/src/features/human/useHumanMascot.test.tsindex 625c2eadd3..57c716ad11 100644--- a/app/src/features/human/useHumanMascot.test.ts+++ b/app/src/features/human/useHumanMascot.test.ts@@ -205,45 +205,18 @@ describe('pickVisemeCode', () => {});describe('pickConversationAckFace', () => {- it('prefers explicit reaction emoji from chat_done', () => {- expect(pickConversationAckFace({ full_response: 'Done', reaction_emoji: '✅' })).toBe('happy');- expect(pickConversationAckFace({ full_response: 'Done', reaction_emoji: '🤔' })).toBe(- 'confused'- );- // ⚠️ is now cautious (heads-up), not concerned.- expect(pickConversationAckFace({ full_response: 'Done', reaction_emoji: '⚠️' })).toBe(- 'cautious'- );- expect(pickConversationAckFace({ full_response: 'Done', reaction_emoji: '❌' })).toBe(- 'concerned'- );- });-- it('maps proud and curious reaction emojis', () => {- expect(pickConversationAckFace({ full_response: 'Done', reaction_emoji: '🏆' })).toBe('proud');- expect(pickConversationAckFace({ full_response: 'Done', reaction_emoji: '⭐' })).toBe('proud');- expect(pickConversationAckFace({ full_response: 'Done', reaction_emoji: '🔍' })).toBe(- 'curious'- );- expect(pickConversationAckFace({ full_response: 'Done', reaction_emoji: '🧐' })).toBe(- 'curious'- );- });-- it('falls back to deterministic response text cues', () => {+ it('maps deterministic response text cues', () => {expect(- pickConversationAckFace({ full_response: 'All set, this is fixed.', reaction_emoji: null })+ pickConversationAckFace({ full_response: 'All set, this is fixed.' })).toBe('happy');expect(pickConversationAckFace({full_response: 'I need more detail to clarify which workspace you mean.',- reaction_emoji: null,})).toBe('confused');expect(pickConversationAckFace({full_response: 'Sorry, the provider failed and I cannot continue.',- reaction_emoji: null,})).toBe('concerned');});@@ -252,7 +225,6 @@ describe('pickConversationAckFace', () => {expect(pickConversationAckFace({full_response: 'Successfully completed all tasks done!',- reaction_emoji: null,})).toBe('proud');});@@ -261,7 +233,6 @@ describe('pickConversationAckFace', () => {expect(pickConversationAckFace({full_response: 'Heads up, this might cause unexpected side effects.',- reaction_emoji: null,})).toBe('cautious');});@@ -270,7 +241,6 @@ describe('pickConversationAckFace', () => {expect(pickConversationAckFace({full_response: 'Interesting — let me check what is happening here.',- reaction_emoji: null,})).toBe('curious');});@@ -279,19 +249,18 @@ describe('pickConversationAckFace', () => {expect(pickConversationAckFace({full_response: 'Sorry, this failed. Make sure you try again.',- reaction_emoji: null,})).toBe('concerned');});it('returns null when there is no strong cue', () => {expect(- pickConversationAckFace({ full_response: 'Here is the summary.', reaction_emoji: null })+ pickConversationAckFace({ full_response: 'Here is the summary.' })).toBeNull();});it('returns null when the response text is missing', () => {- expect(pickConversationAckFace({ reaction_emoji: null })).toBeNull();+ expect(pickConversationAckFace({})).toBeNull();});});@@ -421,33 +390,12 @@ describe('useHumanMascot state machine', () => {expect(result.current.face).toBe('idle');});- it('uses reaction emoji for the post-turn acknowledgement face', () => {- const { result } = renderHook(() => useHumanMascot({ speakReplies: false }));- act(() => {- capturedListeners?.onDone?.(- fakeEvent({- full_response: 'I need more detail before I can choose.',- reaction_emoji: '🤔',- rounds_used: 1,- total_input_tokens: 1,- total_output_tokens: 1,- })- );- });- expect(result.current.face).toBe('confused');- act(() => {- vi.advanceTimersByTime(ACK_FACE_HOLD_MS + 1);- });- expect(result.current.face).toBe('idle');- });-- it('uses response text cues when no reaction emoji is present', () => {+ it('uses response text cues for the post-turn acknowledgement face', () => {const { result } = renderHook(() => useHumanMascot({ speakReplies: false }));act(() => {capturedListeners?.onDone?.(fakeEvent({full_response: 'Sorry, that failed because the provider is unavailable.',- reaction_emoji: null,rounds_used: 1,total_input_tokens: 1,total_output_tokens: 1,@@ -526,7 +474,6 @@ describe('useHumanMascot state machine', () => {capturedListeners?.onDone?.(fakeEvent({full_response: 'Here is the result.',- reaction_emoji: null,rounds_used: 2,total_input_tokens: 1,total_output_tokens: 1,@@ -547,7 +494,6 @@ describe('useHumanMascot state machine', () => {capturedListeners?.onDone?.(fakeEvent({full_response: 'Here is the result.',- reaction_emoji: null,rounds_used: 1,total_input_tokens: 1,total_output_tokens: 1,@@ -573,7 +519,6 @@ describe('useHumanMascot state machine', () => {capturedListeners?.onDone?.(fakeEvent({full_response: 'Research complete.',- reaction_emoji: null,rounds_used: 1,total_input_tokens: 1,total_output_tokens: 1,@@ -618,7 +563,6 @@ describe('useHumanMascot state machine', () => {capturedListeners?.onDone?.(fakeEvent({full_response: 'Sorry, the researcher failed.',- reaction_emoji: null,rounds_used: 2,total_input_tokens: 1,total_output_tokens: 1,@@ -639,7 +583,6 @@ describe('useHumanMascot state machine', () => {capturedListeners?.onDone?.(fakeEvent({full_response: 'Done.',- reaction_emoji: null,rounds_used: 2,total_input_tokens: 1,total_output_tokens: 1,@@ -656,7 +599,6 @@ describe('useHumanMascot state machine', () => {capturedListeners?.onDone?.(fakeEvent({full_response: 'Here you go.',- reaction_emoji: null,rounds_used: 1,total_input_tokens: 1,total_output_tokens: 1,@@ -689,7 +631,6 @@ describe('useHumanMascot state machine', () => {capturedListeners?.onDone?.(fakeEvent({full_response: 'Here you go.',- reaction_emoji: null,rounds_used: 1,total_input_tokens: 1,total_output_tokens: 1,diff --git a/app/src/features/human/useHumanMascot.ts b/app/src/features/human/useHumanMascot.tsindex fbf135f331..f9a1062dab 100644--- a/app/src/features/human/useHumanMascot.ts+++ b/app/src/features/human/useHumanMascot.ts@@ -148,17 +148,7 @@ type ConversationAckFace = Extract<| 'dancing'| 'waving'>;-type ConversationAckEvent = { full_response?: string | null; reaction_emoji?: string | null };--const HAPPY_REACTION_EMOJIS = new Set(['✅', '🎉', '🙌', '😊', '😄', '👍', '💪']);-const PROUD_REACTION_EMOJIS = new Set(['⭐', '🌟', '🏆', '🎯', '💯', '🚀', '✨', '🥇']);-const CURIOUS_REACTION_EMOJIS = new Set(['🔍', '💭', '🧐', '🤓', '👀']);-const CONFUSED_REACTION_EMOJIS = new Set(['🤔', '❓', '❔']);-const CAUTIOUS_REACTION_EMOJIS = new Set(['⚠️', '⚠', '💡', '⚡']);-const CONCERNED_REACTION_EMOJIS = new Set(['🚨', '❌', '😕', '😟']);-const CELEBRATING_REACTION_EMOJIS = new Set(['🥳', '🍾', '🎊', '🎈', '🪅']);-const DANCING_REACTION_EMOJIS = new Set(['💃', '🕺', '🎵', '🎶', '🎸']);-const WAVING_REACTION_EMOJIS = new Set(['👋', '🤝', '🫡']);+type ConversationAckEvent = { full_response?: string | null };const CONCERNED_TEXT_RE =/\b(sorry|apolog(?:y|ize|ise)|failed|failure|error|cannot|can't|unable|blocked|problem)\b/i;@@ -182,19 +172,6 @@ const GREETING_TEXT_RE =* states; this only decides the post-turn emotional beat.*/export function pickConversationAckFace(event: ConversationAckEvent): ConversationAckFace | null {- const reaction = event.reaction_emoji?.trim();- if (reaction) {- if (CELEBRATING_REACTION_EMOJIS.has(reaction)) return 'celebrating';- if (DANCING_REACTION_EMOJIS.has(reaction)) return 'dancing';- if (WAVING_REACTION_EMOJIS.has(reaction)) return 'waving';- if (PROUD_REACTION_EMOJIS.has(reaction)) return 'proud';- if (HAPPY_REACTION_EMOJIS.has(reaction)) return 'happy';- if (CURIOUS_REACTION_EMOJIS.has(reaction)) return 'curious';- if (CONFUSED_REACTION_EMOJIS.has(reaction)) return 'confused';- if (CAUTIOUS_REACTION_EMOJIS.has(reaction)) return 'cautious';- if (CONCERNED_REACTION_EMOJIS.has(reaction)) return 'concerned';- }-const text = event.full_response?.trim() ?? '';if (!text) return null;// Priority: concerned > cautious > proud > confused > curious > happy.diff --git a/app/src/services/chatService.ts b/app/src/services/chatService.tsindex cee7e0afc9..a72769c86a 100644--- a/app/src/services/chatService.ts+++ b/app/src/services/chatService.ts@@ -124,8 +124,6 @@ export interface ChatDoneEvent {* Absent on synthetic done events that never ran a real turn.*/usage?: TurnUsageWire | null;- /** Emoji reaction decided by the local model (if any). */- reaction_emoji?: string | null;/** Total segments when the response was split into bubbles by Rust. */segment_total?: number | null;/** Memory citations captured during retrieval for this response. */@@ -168,7 +166,6 @@ export interface ChatSegmentEvent {seq?: number;segment_index: number;segment_total: number;- reaction_emoji?: string | null;citations?: ChatCitation[] | null;}diff --git a/app/src/utils/tauriCommands/localAi.ts b/app/src/utils/tauriCommands/localAi.tsindex 863eab9614..fab80c00a0 100644--- a/app/src/utils/tauriCommands/localAi.ts+++ b/app/src/utils/tauriCommands/localAi.ts@@ -106,11 +106,6 @@ export interface LocalAiTtsResult {voice_id: string;}-export interface ReactionDecision {- should_react: boolean;- emoji: string | null;-}-export interface SentimentResult {emotion: string;valence: string;@@ -320,20 +315,6 @@ export async function openhumanLocalAiTts(});}-/**- * Ask the configured inference provider whether the assistant should react to- * a user message with an emoji.- */-export async function openhumanLocalAiShouldReact(- message: string,- channelType: string-): Promise<CommandResponse<ReactionDecision>> {- return await callCoreRpc<CommandResponse<ReactionDecision>>({- method: 'openhuman.inference_should_react',- params: { message, channel_type: channelType },- });-}-/*** Classify the emotion and sentiment of a user message via the configured* inference provider.