Show file details for "read" and "modified" counts in session view #94

Closed
opened 2026-01-22 21:44:14 +00:00 by jack · 2 comments
Owner

Problem

The session view displays counts like "1 read" and "1 modified" but there's no way to see which files were actually read or modified.

Current Behavior

  • Session cards show aggregated counts (e.g., "1 read", "1 modified")
  • No way to expand or click to see the actual file paths

Desired Behavior

  • Clicking on "1 read" / "1 modified" should expand to show the file list
  • Or: hover tooltip showing the files
  • Or: expandable section within the session card

Implementation Options

  1. Expandable accordion: Click count to show file list inline
  2. Hover tooltip: Quick preview on hover
  3. Modal/drawer: Click to open detailed file list with more context
  4. Inline expansion: Always show files if count is small (≤3), collapse if more
## Problem The session view displays counts like "1 read" and "1 modified" but there's no way to see which files were actually read or modified. ## Current Behavior - Session cards show aggregated counts (e.g., "1 read", "1 modified") - No way to expand or click to see the actual file paths ## Desired Behavior - Clicking on "1 read" / "1 modified" should expand to show the file list - Or: hover tooltip showing the files - Or: expandable section within the session card ## Implementation Options 1. **Expandable accordion**: Click count to show file list inline 2. **Hover tooltip**: Quick preview on hover 3. **Modal/drawer**: Click to open detailed file list with more context 4. **Inline expansion**: Always show files if count is small (≤3), collapse if more
Author
Owner

Status Check:

The current Session view (Sessions.tsx) does not display "read" and "modified" counts at all. It shows:

  • observation_count - Number of observations
  • prompt_count - Number of prompts

However, the Projects view (Projects.tsx) already has this feature implemented:

  • "Most Read Files" section with file paths and counts
  • "Most Modified Files" section with file paths and counts

Options:

  1. Close as N/A - Session view doesn't show file counts, so nothing to expand
  2. Extend scope - Add file count display to Session view (would require backend aggregation)
  3. Redirect users - Document that file details are available in Projects view

The Projects view implementation could be reused if we want to add this to Sessions. @jack - please clarify the intended scope.

**Status Check:** The current Session view (`Sessions.tsx`) does **not** display "read" and "modified" counts at all. It shows: - `observation_count` - Number of observations - `prompt_count` - Number of prompts However, the **Projects view** (`Projects.tsx`) already has this feature implemented: - "Most Read Files" section with file paths and counts - "Most Modified Files" section with file paths and counts **Options:** 1. **Close as N/A** - Session view doesn't show file counts, so nothing to expand 2. **Extend scope** - Add file count display to Session view (would require backend aggregation) 3. **Redirect users** - Document that file details are available in Projects view The Projects view implementation could be reused if we want to add this to Sessions. @jack - please clarify the intended scope.
Author
Owner

Analysis:

The Session view currently shows observation_count and prompt_count, but not file read/modified counts. The files_read and files_modified data exists on individual Observations, not on Sessions.

Current State:

  • Project view has a "Files" tab showing aggregated file stats per project
  • ObservationDetails component shows files_read/files_modified per observation
  • Session entity doesn't have aggregated file counts

Implementation Options:

  1. Backend aggregation: Add SQL query to aggregate files_read/files_modified across all observations in a session
  2. Frontend aggregation: When expanding a session, fetch observations and aggregate client-side
  3. Show in ObservationDetails: The file details are already visible when clicking on individual observations

Needs decision on which approach to take. Option 3 is already working - users can click on observations to see file details.

**Analysis:** The Session view currently shows `observation_count` and `prompt_count`, but not file read/modified counts. The `files_read` and `files_modified` data exists on individual **Observations**, not on Sessions. **Current State:** - Project view has a "Files" tab showing aggregated file stats per project - ObservationDetails component shows files_read/files_modified per observation - Session entity doesn't have aggregated file counts **Implementation Options:** 1. **Backend aggregation**: Add SQL query to aggregate `files_read`/`files_modified` across all observations in a session 2. **Frontend aggregation**: When expanding a session, fetch observations and aggregate client-side 3. **Show in ObservationDetails**: The file details are already visible when clicking on individual observations Needs decision on which approach to take. Option 3 is already working - users can click on observations to see file details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
customable/claude-mem#94
No description provided.