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

Resolved 💬 1 comment Opened May 18, 2026 by origimist Closed Jun 17, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] 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_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗