[Bug]: TypeScript compiler locations lose line and column in terminal links
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
Hướng nghiên cứu
The bug is in the terminal link parser and resolver in apps/web, which desktop shares, and the report shows that path(line,col) diagnostics lose their coordinates before shell.openInEditor is called. Start by reproducing with tsc --pretty false output and comparing it with the working path:line:col form. Done means relative and absolute parenthesized locations open at the correct line and column with the link range excluding the trailing colon. Open PR #36174 already targets this, so coordinate with it before writing a competing fix.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/web (also used by desktop's integrated terminal)
Steps to reproduce
- From a T3 Code repository checkout with dependencies installed, create a disposable reproduction project:
(
demo=$(mktemp -d)
mkdir -p "$demo/src"
ln -s "$PWD/apps/marketing/node_modules/typescript/bin/tsc" "$demo/tsc"
{
printf '\n%.0s' {1..41}
printf 'const answer: number = "no";\n'
} > "$demo/src/main.ts"
printf 'Reproduction project: %s\n' "$demo"
)
- Add the printed directory as a project in T3 Code, create a thread, and open its integrated terminal. This makes the terminal link base match the compiler's project root.
- In that terminal, run:
./tsc --pretty false --noEmit src/main.ts
The actual compiler output begins:
src/main.ts(42,7): error TS2322: Type 'string' is not assignable to type 'number'.
Hover and Ctrl-click the diagnostic filename (Cmd-click on macOS).
Expected behavior
The editor opens src/main.ts at line 42, column 7. The link range includes the parenthesized location and excludes the trailing colon.
Actual behavior
Only src/main.ts is linked for this relative diagnostic. Clicking opens the file without the location. Capturing the real integrated client's shell.openInEditor request confirms that its target contains the path with no line or column. Absolute parenthesized diagnostic paths also are not understood by the terminal resolver and are treated as literal filenames; that absolute-form failure was verified at the parser/resolver layer.
Impact
Minor bug or occasional failure. Navigation to the diagnostic location is lost, although the relative-path case still opens the correct file.
Version or commit
Verified in the published nightly 0.1.10-nightly.20261113.4630, release commit 7e1a05808aaf5df39fe9d20cc5c3603f3978696a, using the unmodified released Linux x64 server and its bundled web client. Also reproduced on upstream main at 2d8a843e6be9.
Environment
Linux, published nightly server and bundled web client, TypeScript 6.0.3, isolated T3 base directory. The web parser is shared with desktop. No agent turn or source build of T3 Code was used for the nightly verification.
Verified reproduction in the published nightly
Release: v0.1.10-nightly.20261113.4630. The downloaded Linux x64 archive matched the release's SHA256SUMS, and the running server reported serverVersion: 0.1.10-nightly.20261113.4630. No T3 Code source changes or fixture RPC responses were used.
- Follow the setup above to create the disposable directory containing
src/main.tsand the TypeScript compiler symlink. - Add that directory itself as a project in the installed/nightly T3 Code app. Select the project's current checkout, start a new thread, and open its integrated terminal. Merely changing directories in a terminal belonging to another project is insufficient: links resolve against T3's project root.
- Run
./tsc --pretty false. This executes TypeScript 6.0.3 and prints the realsrc/main.ts(42,7): error TS2322: ...diagnostic. - Hover and Ctrl-click the filename. The underline stops at
src/main.ts, and the real editor-opening request omits both coordinates:
{
"cwd": "/tmp/t3-nightly-terminal-repro/src/main.ts",
"editor": "vscode",
"projectRoot": "/tmp/t3-nightly-terminal-repro"
}
- Control: run
./tsc --pretty trueand Ctrl-click itssrc/main.ts:42:7location. The same released client now sends:
{
"cwd": "/tmp/t3-nightly-terminal-repro/src/main.ts:42:7",
"editor": "vscode",
"projectRoot": "/tmp/t3-nightly-terminal-repro"
}
The screenshot below is from the actual published nightly, after running the compiler and hovering the affected link. The two requests above were captured from real clicks, not inferred from the underline. Use Cmd-click instead on macOS.
Open the nightly reproduction screenshot (PNG).

Supporting evidence
Real integrated-client hover and click evidence is included in the linked fix PR: https://github.com/pingdotgg/t3code/pull/36174.
Workaround
Use --pretty true where practical: its src/main.ts:42:7 format is already supported. This report concerns TypeScript's non-pretty parenthesized diagnostic locations.
- Ngôn ngữ chính
- TypeScript
- Star
- 24.8k
- Fork
- 6.4k
- Merge trung bình
- 59 phút
- Pull request đã merge (30 ngày)
- 418
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 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
via-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: MCP App inline frames never go below 80px, so compact apps get blank space under themĐang mở
Độ khó 2/5 Nửa ngày 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
-
Question card options show LaTeX as raw source, though the question text renders itCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Settings inheritance popover shows raw slugs for branch naming, default permissions and response streamingCó thể đã có người làm @juliusmarminge đã nhận 1 ngày trước. Đang mởvouch:denounced
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
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 72/100
nikoheikkila/nikoheikkila.fi#1131 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Resources: Update work of urumqiCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
railmapgen/rmp-gallery#4176 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
GraphQL custom headers duplicate differently cased default headersCó thể đã có người làm @yxr-2025 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
elie222/rakazo#4625 · 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 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[New Project]: PacaĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
github/forgoodfirstissue#574 ·