[FEATURE] Show file path inline for single-file Read operations instead of collapsing to "Reading 1 file"
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Since the collapsed read/search groups feature was introduced (refined in v2.1.19–2.1.20),
when Claude reads a single file, the UI displays:
Reading 1 file
...instead of showing the actual file path like it used to (e.g., Reading src/components/App.tsx).
This reduces visibility into what Claude is doing. For single-file reads, the collapsed
summary removes useful information without saving meaningful screen space — it actually
makes it harder to follow the agent's actions in real time.
The collapsed grouping makes sense for multi-file reads (e.g., "Reading 5 files"), but
for a single file, the path should be shown inline.
Proposed Solution
When a collapsed read/search group contains only 1 file, display the file path
inline instead of collapsing it. Apply collapsing only when the group contains 2+ files.
This could also apply to other single-item groups like:
- "Searching 1 file" → "Searching src/utils/*.ts"
- "Globbing 1 pattern" → "Globbing **/*.tsx"
Alternative Solutions
- A setting to disable collapsing entirely — too noisy for power users who
read many files
- Always expand by default — same problem, too verbose for multi-file operations
- Show path in parentheses — e.g., "Reading 1 file (src/App.tsx)" — acceptable
but less clean than just showing the path
Priority
Critical - Blocking my work
Feature Category
CLI commands and flags
Use Case Example
Reading src/components/App.tsx ← single file: show path inline
Read src/components/App.tsx ← completed: still show path
Reading 5 files ← multi-file: collapse is fine
Read 5 files ← completed collapse is fine
Additional Context
Related discussion: #8061 (Sub-agent expansion UX)
The v2.1.20 changelog notes:
- "Changed collapsed read/search groups to show present tense while in progress,
past tense when complete"
The v2.1.19 changelog notes:
- "Fixed Bash read commands not being counted in collapsed read/search groups"
These fixes improved the collapsed groups feature, but the single-file case is an
ergonomic regression from the previous behavior where file paths were always visible.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗