[PR #9752] fix(ui): preserve filename casing in edit/write tool titles #13217

Closed
opened 2026-02-16 18:18:05 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9752

State: closed
Merged: Yes


Summary

  • Separates title text from filename in edit/write tool triggers
  • CSS text-transform: capitalize now only applies to action label (Edit/Write), not the filename
  • Fixes incorrect display of filenames like "myFile.tsx" being shown as "Myfile.tsx"

Fixes #9751

Changes

  • Modified packages/ui/src/components/message-part.tsx: Split title into separate <span> elements for title text and filename
  • Modified packages/ui/src/components/message-part.css: Added new CSS selectors for title-text (with capitalize) and title-filename (without capitalize)

Test plan

  • Open a session with edit/write tool usage
  • Verify filenames display with original casing (e.g., "myFile.tsx" not "Myfile.tsx")
  • Verify action labels still show capitalized (e.g., "Edit", "Write")

🤖 Generated with Claude Code

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9752 **State:** closed **Merged:** Yes --- ## Summary - Separates title text from filename in edit/write tool triggers - CSS `text-transform: capitalize` now only applies to action label (Edit/Write), not the filename - Fixes incorrect display of filenames like "myFile.tsx" being shown as "Myfile.tsx" Fixes #9751 ## Changes - Modified `packages/ui/src/components/message-part.tsx`: Split title into separate `<span>` elements for title text and filename - Modified `packages/ui/src/components/message-part.css`: Added new CSS selectors for title-text (with capitalize) and title-filename (without capitalize) ## Test plan - [ ] Open a session with edit/write tool usage - [ ] Verify filenames display with original casing (e.g., "myFile.tsx" not "Myfile.tsx") - [ ] Verify action labels still show capitalized (e.g., "Edit", "Write") 🤖 Generated with [Claude Code](https://claude.com/claude-code)
yindo added the pull-request label 2026-02-16 18:18:05 -05:00
yindo closed this issue 2026-02-16 18:18:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13217