[Bug]: Preview annotation comments do not support RTL text direction
Maintainer thường phản hồi trong vòng 1 ngày
@abdelrhmanehab10 đang làm issue này rồi.
Từ ngày 9/9/2026.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- typescript
Hướng nghiên cứu
Bắt đầu tại apps/desktop/src/preview/PickPreload.ts, khoảng các dòng 414-419, nơi textarea chú thích được tạo. Tái hiện vấn đề bằng một chú thích tiếng Ả Rập trên trang LTR, sau đó kiểm tra cách overlay chú thích nhận hướng từ tài liệu được kiểm tra. Được xem là hoàn tất khi văn bản chú thích RTL và chú thích có hướng hỗn hợp hiển thị chính xác, trong khi thanh công cụ và các điều khiển của trình chỉnh sửa vẫn giữ bố cục ổn định.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Area
apps/desktop
Summary
Arabic and other RTL comments in the browser annotation editor use the inspected page's text direction instead of the comment's own content. On a normal LTR page, the RTL comment is aligned incorrectly; on an RTL page, the entire annotation toolbar is mirrored.
Steps to reproduce
- Open any left-to-right page in the T3 Code desktop browser panel, for example
https://example.com. - Click Annotate preview.
- Select any element so the annotation comment editor appears.
- Type an Arabic comment, for example
كبّر هذا العنوان.
Expected behavior
The comment field should infer direction from the entered text. Arabic, Hebrew, Persian, and other RTL comments should start from the right and preserve readable bidirectional ordering.
The annotation toolbar and editor controls should keep their own stable layout regardless of the inspected page's direction.
Actual behavior
The annotation comment field inherits the inspected page's direction:
- On an LTR page, Arabic annotation text remains in an LTR field and is aligned/ordered incorrectly.
- On an RTL page, the comment flows RTL, but the annotation chrome is also mirrored, including the tool order and Attach button placement.
This couples the annotation UI to the host document instead of handling the comment direction independently.
Impact
Minor bug or occasional failure. RTL users can enter a comment, but the field is awkward to edit and mixed RTL/LTR content such as URLs, selectors, and code tokens can be displayed in the wrong visual order.
Version or commit
Reproduced on 0.0.29-nightly.20260724.893 (ece05087a70e).
Environment
T3 Code desktop nightly, Linux/X11, Electron.
Screenshots, recordings, or supporting files
Actual behavior on an LTR page: the short Arabic comment is anchored to the left side of the field.

Diagnostic control with the host page set to RTL: the same comment moves to the right, but the toolbar order and Attach button also reverse. This shows that the annotation overlay inherits direction from the inspected page.

Related but not duplicate: #1771 is a broad proposal for bidi-ready renderer styling and message bodies. This report is narrowly about the desktop preview annotation overlay and its comment textarea.
Technical note
Current main at 5719e8ac4020 creates the annotation <textarea> without a dir attribute. Giving the comment field content-based direction such as dir="auto", while explicitly isolating the annotation chrome from the host document direction, appears to be the smallest relevant scope.
Workaround
No practical per-comment workaround. Temporarily changing the inspected document's root direction to RTL also changes the page and annotation controls.
- Ngôn ngữ chính
- TypeScript
- Star
- 24.8k
- Fork
- 6.4k
- Merge trung bình
- 6 giờ 53 phút
- Pull request đã merge (30 ngày)
- 222
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pingdotgg/t3code
-
bug via-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pingdotgg/t3code#20128 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: T3_CODE_ORCHESTRATION_INSTRUCTIONS has no carve-out for user- or repo-mandated CLI review workflows (unlike T3_CODE_BROWSER_TOOL_INSTRUCTIONS)Có thể đã có người làm @nivethass15102007-tech đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
pingdotgg/t3code#19908 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accepted bug via-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
pingdotgg/t3code#19536 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Diff panel hides the current branch name and the arrow overlaps the base ref when the panel is narrowCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởaccepted bug via-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pingdotgg/t3code#19048 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pingdotgg/t3code
Issue tương tự
-
bug engine
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
frostney/GocciaScript#1746 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
agilepathway/label-checker#739 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Wrong key location at startupĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
CopilotKit/OpenBot#800 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Endpoint links in the tag operations list are below the 24px target sizeCó thể đã có người làm @AdzerKI đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
ehmpathy/rhachet-roles-bhuild#471 ·
Maintainer thường phản hồi trong vòng 1 ngày