File links with a line range (file.py:67-69) are either not linked or open a missing file
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đá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
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- desktop
Hướng nghiên cứu
Bắt đầu từ packages/shared/src/markdownLinks.ts tại inlineCodeFilePathCandidate, nơi các kiểm tra đường dẫn tương đối từ chối :67-69, sau đó đọc splitFilePathPosition và mẫu của nó trong packages/shared/src/fileLinks.ts, mẫu này không loại bỏ phạm vi đối với đường dẫn tuyệt đối. Mở rộng cả hai mẫu hậu tố vị trí để chấp nhận :N-M và mở tại dòng N. Hoàn thành khi các liên kết path:1-3 hoạt động với đường dẫn tương đối và tuyệt đối và mở đúng tệp, thay vì một tệp không tồn tại có tên chứa phạm vi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happened
Agents often write line ranges. In v0.1.5 a range never opens the file:
src/foo.py:67-69andfoo.py:1-3(relative): rendered as plain code, no link./abs/path/foo.py:67-69(absolute): rendered as a file link, but the click targets a file literally namedfoo.py:67-69, which does not exist.
Diagnosis
Confirmed by a click in the desktop app (v0.1.5): an absolute <root>/pyproject.toml:1-3 link opens the panel with "The file could not be accessed or read", attempted path <root>/pyproject.toml:1-3. Source:
inlineCodeFilePathCandidate(packages/shared/src/markdownLinks.ts:173): POSITION_SUFFIX_PATTERN/:\d+(?::\d+)?$/does not match:67-69, so a relative candidate without/returns null (line 179), and with/its basenamefoo.py:67-69fails FILE_EXTENSION_PATTERN (line 198).- Absolute paths skip those checks;
splitFilePathPosition(packages/shared/src/fileLinks.ts:37, pattern line 8) does not strip:67-69, so the range stays in the path.
Steps to reproduce
- Message containing
`<absolute path of an existing file>:1-3`. - Click it: panel says "The file could not be accessed or read", attempted path ends in
:1-3. - A relative
`<dir>/file.py:1-3`renders as plain code (from source; not clicked).
Version
0.1.5 (desktop, t3code-bin). Link code unchanged on main as of 2026-11-01. Triage CLI: 0.1.6.
Environment
Linux x64 (Arch, Hyprland), desktop app against local server, Claude provider.
Evidence
Click result above (screenshot available). Shipped bundle (app.asar, version 0.1.5) has only `/:(\d+)(?::(\d+))?$/` as its position parser (fileLinks-*.js). An agent emitted an absolute `locomo.py:67-69` link in practice.
Related issues
Companion to the issue about relative links in worktrees (filed alongside).
Fix applied or workaround
Local Stop hook rejects ranges and asks for :N. Suggested fix: accept :N-M in POSITION_SUFFIX_PATTERN and POSITION_SUFFIX_CAPTURE_PATTERN (open at N, optionally highlight to M).
Filed by
Claude Opus 5.5 (claude-opus-5-5) via Claude Code, t3 triage.
- Ngôn ngữ chính
- TypeScript
- Star
- 24.8k
- Fork
- 6.4k
- Merge trung bình
- 13 giờ 49 phút
- Pull request đã merge (30 ngày)
- 179
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
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Pi provider reports "timed out" on pi --version because the version probe timeout is only 4 sĐang mởvia-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Dragging a sidebar thread from the lower part of the list auto-scrolls the sidebar to the bottomCó thể đã có người làm @juliusmarminge đã nhận 3 ngày trước. Đ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 78/100
pingdotgg/t3code#27146 · 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ự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Broken links in the docsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
🔊 a11y
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
betagouv/mon-entreprise#4726 ·
Maintainer thường phản hồi trong vòng 9 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Deltares/fews-pi-requests#357 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug confirmed js v6
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày