[PR #9591] fix: correct dot prefix display in directory names for RTL text rendering issue #9579 #13155

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

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

State: closed
Merged: Yes


Fixes file path display bug where dot prefixes from directory names (e.g., .opencode/) were incorrectly appearing on filenames in the Session changes panel.

Problem:

  • Expected: .opencode/commands/README.md
  • Actual: opencode/commands/.README.md (dot moved from directory to filename)

Root Cause:
CSS direction: rtl (used for left-truncation of long paths) triggers Unicode Bidirectional Algorithm, which treats dots as neutral characters and reorders them visually.

Solution:
Wrapped directory paths with Unicode Left-to-Right Embedding (\u202A) and Pop Directional Formatting (\u202C) to isolate the directory text and prevent character reordering while preserving left-truncation behavior.

Files Changed:

  • packages/ui/src/components/session-review.tsx - Session Review panel
  • packages/ui/src/components/session-turn.tsx - Session Turn display

Closes #9579

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9591 **State:** closed **Merged:** Yes --- Fixes file path display bug where dot prefixes from directory names (e.g., `.opencode/`) were incorrectly appearing on filenames in the Session changes panel. **Problem:** - Expected: `.opencode/commands/README.md` - Actual: `opencode/commands/.README.md` (dot moved from directory to filename) **Root Cause:** CSS `direction: rtl` (used for left-truncation of long paths) triggers Unicode Bidirectional Algorithm, which treats dots as neutral characters and reorders them visually. **Solution:** Wrapped directory paths with Unicode Left-to-Right Embedding (`\u202A`) and Pop Directional Formatting (`\u202C`) to isolate the directory text and prevent character reordering while preserving left-truncation behavior. **Files Changed:** - `packages/ui/src/components/session-review.tsx` - Session Review panel - `packages/ui/src/components/session-turn.tsx` - Session Turn display Closes #9579
yindo added the pull-request label 2026-02-16 18:18:01 -05:00
yindo closed this issue 2026-02-16 18:18:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13155