Skip to content

Conversation

@crystalin
Copy link
Contributor

Summary

  • Shows sub-agent names (e.g., 'project-documenter', 'thinkdeep') instead of request hash IDs in the conversation tree view
  • Improves readability and user experience when viewing conversation flows
  • Adds proper security measures with HTML escaping and length truncation

Changes

  • Extract subagent_type from task_tool_invocation for display
  • Add displayName property to ConversationNode and LayoutNode interfaces
  • Implement XSS-safe rendering with HTML escaping
  • Add truncation for long names with tooltip for full text
  • Improve task invocation handling to find first valid subagent_type
  • Add proper TypeScript types for TaskToolInvocation

Test Plan

  • TypeScript compilation passes
  • Security review completed (HTML escaping implemented)
  • Manual testing in dashboard with various conversation types
  • Verify fallback to request hash for non-Task messages

🤖 Generated with Claude Code

- Extract subagent_type from task_tool_invocation for display
- Add displayName property to ConversationNode and LayoutNode interfaces
- Implement XSS-safe rendering with HTML escaping
- Add truncation for long names with tooltip for full text
- Improve task invocation handling to find first valid subagent_type
- Add proper TypeScript types for TaskToolInvocation

This improves readability by showing meaningful agent names (e.g., 'project-documenter', 'thinkdeep') instead of cryptic request hash IDs in the conversation tree view.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants