Skip to content

direction:rtl reorders leading dot in directory paths (.config → config.) #36489

Description

@windlandneko

Description

CSS direction: rtl on [data-slot="message-part-directory"] (used for left-side ellipsis) causes the Unicode bidi algorithm to reposition leading dots in path names like .config/opencode/, rendering as config/opencode./.

Same root cause as PR #9591 (session-review.tsx / session-turn.tsx), but the 3 message-part-directory sites in message-part.tsx were not covered.

Plugins

No response

OpenCode version

1.17.18

Steps to reproduce

  1. Open opencode web in your browser.
  2. Let agent edit some file with /.abc/ in the path.
  3. The path revealed incorrectly.

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions