claude-code - 💡(How to fix) Fix [BUG] [Cowork] present_files cards truncate path and omit filename, making multiple files visually indistinguishable

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

When the assistant calls mcp__cowork__present_files with multiple files, each file renders as a card showing only a truncated path (e.g. C:\Users\Tim…) and a generic type label (Document, Code). The filename itself is never displayed. If two or more files share the same parent directory, the cards become visually identical and the user has no way to tell which file is which without opening each one.

The card has plenty of horizontal whitespace available, so this is a layout choice, not a space constraint.

Error Message

Error Messages/Logs

Root Cause

When the assistant calls mcp__cowork__present_files with multiple files, each file renders as a card showing only a truncated path (e.g. C:\Users\Tim…) and a generic type label (Document, Code). The filename itself is never displayed. If two or more files share the same parent directory, the cards become visually identical and the user has no way to tell which file is which without opening each one.

The card has plenty of horizontal whitespace available, so this is a layout choice, not a space constraint.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Title: [BUG] [Cowork] present_files cards truncate path and omit filename, making multiple files visually indistinguishable

Body:

Summary

When the assistant calls mcp__cowork__present_files with multiple files, each file renders as a card showing only a truncated path (e.g. C:\Users\Tim…) and a generic type label (Document, Code). The filename itself is never displayed. If two or more files share the same parent directory, the cards become visually identical and the user has no way to tell which file is which without opening each one.

The card has plenty of horizontal whitespace available, so this is a layout choice, not a space constraint.

Repro

  1. Have the assistant call mcp__cowork__present_files with several files from the same deep parent directory (e.g. multiple files under C:\Users\<name>\OneDrive\…\drafts\).
  2. Observe the rendered cards in the chat.

Expected

The filename (basename) is the primary, prominently displayed line on each card. The path is secondary and may be truncated, but if truncation is necessary, truncate from the middle of the path so the basename survives — never truncate the filename away.

Actual

Every card shows the same C:\Users\<name>… prefix and one of two type labels (Document / Code). With 7 files from the same parent directory, 6 of 7 cards are visually identical. The feature is effectively unusable for picking a specific file.

Environment

  • OS: Windows 11
  • Claude desktop: current (May 2026)
  • Mode: Cowork
  • Repro frequency: 100% whenever present_files is called with ≥2 files in the same deep parent directory

Related

  • #17443 — same class of bug (UI truncation despite available space), different surface (Claude Code @ autocomplete). Suggests this is a recurring pattern that may benefit from a shared truncation utility that prefers preserving the basename.
<img width="945" height="670" alt="Image" src="https://github.com/user-attachments/assets/ebfbc8a1-5d52-44fc-90b8-5a0bcc325281" />

What Should Happen?

Use the whitespace, prioritize showing the filename at least.

Error Messages/Logs

Steps to Reproduce

Generate multiple file edits in CoWork and ask for them to be presented for viewing.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Claude for Windows - Version 1.7196.0 (2dbd78)

Platform

Other

Operating System

Windows

Terminal/Shell

Other

Additional Information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING