A React Native app for the ultimate thinking partner.

feat(ui): show 'updated its memory' for memory str_replace

When the memory tool is called with str_replace command, now shows
'(co updated its memory)' instead of '(co recalled)' for more accurate
labeling.

Detects str_replace by checking if the tool arguments contain
'str_replace' or 'command: str_replace'.

+10
+10
src/utils/messageLabels.ts
··· 43 43 // TOOL CALL MESSAGE 44 44 if (group.type === 'tool_call') { 45 45 const toolName = group.toolCall?.name || 'unknown_tool'; 46 + 47 + // Special handling for memory tool with str_replace command 48 + if (toolName === 'memory') { 49 + // Try to detect str_replace command in the arguments 50 + const args = group.toolCall?.args || group.content || ''; 51 + if (args.includes('str_replace') || args.includes('command: str_replace')) { 52 + return isStreaming ? '(co is updating its memory)' : '(co updated its memory)'; 53 + } 54 + } 55 + 46 56 const action = TOOL_ACTIONS[toolName]; 47 57 48 58 if (action) {