a digital person for bluesky

Add tidy tool call display for archival_memory_insert

- Display archival memory insert content in Rich panel with preview
- Show success/error messages for archival memory insert results
- Consistent formatting with other tool calls

๐Ÿค– Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

+20 -4
+20 -4
bsky.py
··· 461 console.print(tool_panel) 462 else: 463 log_with_panel(f"query: \"{query}\"", f"Tool call: {tool_name}", "blue") 464 elif tool_name == 'update_block': 465 label = args.get('label', 'unknown') 466 value_preview = str(args.get('value', ''))[:50] + "..." if len(str(args.get('value', ''))) > 50 else str(args.get('value', '')) ··· 545 # Just show success for bluesky posts, the text was already shown in tool call 546 log_with_panel("Post queued successfully", f"Bluesky Post โœ“", "green") 547 elif tool_name == 'archival_memory_insert': 548 - # Skip archival memory insert results (always returns None) 549 - pass 550 elif tool_name == 'update_block': 551 log_with_panel("Memory block updated", f"Tool result: {tool_name} โœ“", "green") 552 else: ··· 561 error_str = str(chunk.tool_return) if hasattr(chunk, 'tool_return') and chunk.tool_return else "Error occurred" 562 log_with_panel(error_str, f"Bluesky Post โœ—", "red") 563 elif tool_name == 'archival_memory_insert': 564 - # Skip archival memory insert errors too 565 - pass 566 else: 567 error_preview = "" 568 if hasattr(chunk, 'tool_return') and chunk.tool_return:
··· 461 console.print(tool_panel) 462 else: 463 log_with_panel(f"query: \"{query}\"", f"Tool call: {tool_name}", "blue") 464 + elif tool_name == 'archival_memory_insert': 465 + content = args.get('content', '') 466 + # Show a preview of the content being inserted 467 + content_preview = content[:100] + "..." if len(content) > 100 else content 468 + if USE_RICH: 469 + tool_panel = Panel( 470 + f"content={content_preview}", 471 + title=f"Tool call: {tool_name}", 472 + title_align="left", 473 + border_style="blue", 474 + padding=(0, 1) 475 + ) 476 + console.print(tool_panel) 477 + else: 478 + log_with_panel(f"content={content_preview}", f"Tool call: {tool_name}", "blue") 479 elif tool_name == 'update_block': 480 label = args.get('label', 'unknown') 481 value_preview = str(args.get('value', ''))[:50] + "..." if len(str(args.get('value', ''))) > 50 else str(args.get('value', '')) ··· 560 # Just show success for bluesky posts, the text was already shown in tool call 561 log_with_panel("Post queued successfully", f"Bluesky Post โœ“", "green") 562 elif tool_name == 'archival_memory_insert': 563 + # Show simple success for archival memory insert 564 + log_with_panel("Memory saved successfully", f"Tool result: {tool_name} โœ“", "green") 565 elif tool_name == 'update_block': 566 log_with_panel("Memory block updated", f"Tool result: {tool_name} โœ“", "green") 567 else: ··· 576 error_str = str(chunk.tool_return) if hasattr(chunk, 'tool_return') and chunk.tool_return else "Error occurred" 577 log_with_panel(error_str, f"Bluesky Post โœ—", "red") 578 elif tool_name == 'archival_memory_insert': 579 + # Show error details for archival memory insert 580 + error_str = str(chunk.tool_return) if hasattr(chunk, 'tool_return') and chunk.tool_return else "Error occurred" 581 + log_with_panel(error_str, f"Tool result: {tool_name} โœ—", "red") 582 else: 583 error_preview = "" 584 if hasattr(chunk, 'tool_return') and chunk.tool_return: