Fix showing actual file path when listing read_file in session view
Problem
Currently, when viewing sessions that contain read_file operations, the session view doesn't consistently show the actual file path being read. Instead of displaying something like "Read file dir/file.js", it only shows "Read file" with the file path nested under tool_info.
Current Behavior
- Session view shows generic "Read file" text
- File path is buried in
tool_infoand not visible to users - Inconsistent with other flows where file paths are properly displayed
Expected Behavior
- Session view should display "Read file [actual_file_path]"
- File path should be clearly visible in the activity list
- Consistent behavior across all flows
Context
This issue was identified when comparing different flows:
- Chat Flows: Working correctly - shows "Read file dir/file.js" with file path included in message content
- Other flows: Not working - only shows "Read file" with file path nested under tool_info
The inconsistency suggests different normalization approaches between flows. Each tool has different payloads, but we want the activity to be rendered as the title (based on type) plus the relevant content.
Technical Notes
- Issue appears to be in the service layer based on API payload differences
- Need to investigate content normalization differences between Chat Flows and other flows
- File path information is available but not being surfaced properly in the UI
Edited by 🤖 GitLab Bot 🤖