GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): terminal TypeScript links preserve error locations by saphitv · Pull Request #36174 · pingdotgg/t3code

Conversation

@saphitv

@saphitv saphitv commented Nov 13, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

TypeScript's non-pretty diagnostics print locations as src/main.ts(42,7). Terminal links dropped the position for relative paths and treated it as part of the filename for absolute paths.

Fixes #36183.

Recognize the TypeScript diagnostic marker and normalize its extracted target to the existing :42:7 format while keeping raw underline offsets. Literal paths, including PowerShell prompt directories ending in (42,7), retain their names. Shared file-link parsing stays unchanged.

Validation: 72 terminal-link tests and vp run check:changed pass. Four focused TypeScript cases cover relative, absolute, Windows, and route-group paths; three fallback-path cases cover the council regressions. Real TypeScript 6.0.3 output was hovered and Ctrl-clicked in the integrated web client: the editor request changed from src/main.ts to src/main.ts:42:7, with the same file metadata lookup. After the council fix, real-client Ctrl-click verification also confirms a literal folder(42,7) directory is passed unchanged to metadata lookup and editor opening.

Before After
Before: compiler location omitted from the link After: compiler location preserved

Council review

Rounds: 3

Delegate Round 1 Round 2 Round 3
Claude Opus 5.5 9/10 7/10 9/10
GPT-6.1 Sol 10/10 10/10 10/10
GPT-6.1 Terra 8/10 10/10 10/10

Round 1 identified literal parenthesized paths being reinterpreted. Conversion now requires TypeScript diagnostic context, preserving those paths.

Round 2 identified the relative matcher consuming parenthesized suffixes without a TypeScript marker. Suffix matching now requires the same marker, preserving the prior filename-only fallback for other output. One row added to the existing fallback-path table fails before this correction and passes after it.

Round 3: all three reviewers found no actionable issues and consider the patch ready. Opus and Sol independently reran all 72 terminal-link tests successfully. Captured client requests confirm both the TypeScript location and the existing non-TypeScript filename-only fallback.

Created with GPT-6.1 Sol in the Codex harness.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@saphitv
fix(web): terminal TypeScript links preserve error locations
0ab5bd0
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 13, 2026
@saphitv
fix(web): preserve literal parenthesized terminal paths
edbcaa8
@saphitv saphitv mentioned this pull request Nov 13, 2026
[Bug]: TypeScript compiler locations lose line and column in terminal links #36183
Closed
2 tasks done
@saphitv
fix(web): retain terminal path fallback outside TypeScript diagnostics
59f46af
@saphitv
saphitv marked this pull request as ready for review November 13, 2026 13:51
@saphitv
saphitv marked this pull request as draft November 13, 2026 13:52
@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The terminal-link parser now recognizes TypeScript diagnostics with parenthesized line and column locations. It converts those locations to colon-separated form and adds tests for path formats and preserved targets.

Changes: TypeScript terminal diagnostic links

Layer / File(s) Summary
Recognize and normalize diagnostic locations
apps/web/src/terminal-links.ts, apps/web/src/terminal-links.test.ts
The parser matches parenthesized locations before TypeScript errors or warnings and converts them to :line:column form. Tests cover relative, POSIX, Windows, and parenthesized-directory paths, plus unchanged PowerShell, filesystem, and C# targets.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: tiliakoos, juliusmarminge

Merge Risk: Minimal · up to 59f46

Terminal links for TypeScript non-pretty diagnostics such as src/main.ts(42,7) now open at the reported line and column, and literal parenthesized paths keep their names. No actionable merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title follows the conventional commit format and names the main change: TypeScript diagnostic locations in terminal links now keep their line and column. The changeset adds TypeScript compiler-loc…
Linked Issues check Passed Issue #36183 requires that hovering or Ctrl-clicking a TypeScript non-pretty diagnostic such as src/main.ts(42,7) opens the file at line 42, column 7, with the link range including (42,7) and excl…
Out of Scope Changes check Passed The reviewed whole-PR changes (base 2d8a843 to head 59f46af) touch the terminal link parser and its tests. The parser diff changes only the FILE_PATH_PATTERN parenthesized-suffix alternation, it…
Description check Passed The description follows the repository template and covers the Problem, Change, Scope, and Verification sections. It explains that TypeScript non-pretty diagnostics such as src/main.ts(42,7) lose thei…
Full details: Title check

Explanation

The title follows the conventional commit format and names the main change: TypeScript diagnostic locations in terminal links now keep their line and column. The changeset adds TypeScript compiler-location recognition in terminal-links.ts and matching tests, which fits the title.

Full details: Linked Issues check

Explanation

Issue #36183 requires that hovering or Ctrl-clicking a TypeScript non-pretty diagnostic such as src/main.ts(42,7) opens the file at line 42, column 7, with the link range including (42,7) and excluding the trailing colon. The diff to apps/web/src/terminal-links.ts at head 59f46af covers this in three ways. (1) The FILE_PATH_PATTERN suffix alternation now accepts \(\d+,\d+\) only when followed by :\s+(?:error|warning) TS\d+:, so the relative case is matched with its location. (2) collectMatches rewrites a trailing (line,column) to :line:column only when the same TypeScript diagnostic lookahead follows the match, so the extracted target is normalized. (3) Absolute POSIX and Windows forms reach the same branch through the existing path alternatives, and the trailing : is removed by the existing trailing-punctuation trim. Literal parenthesized directory paths without a TypeScript diagnostic context keep their text. The PR also reports 72 passing terminal-link tests, including relative, absolute, Windows, and route-group TypeScript cases. I did not run or inspect the test file, so the test results rest on the PR description and summary. The source evidence is consistent with the issue requirements.

Full details: Out of Scope Changes check

Explanation

The reviewed whole-PR changes (base 2d8a843 to head 59f46af) touch the terminal link parser and its tests. The parser diff changes only the FILE_PATH_PATTERN parenthesized-suffix alternation, its explanatory comment, and the collectMatches text normalization. The shared quoted-path pattern and other file-link logic are unchanged, as the PR description states. The changes implement issue #36183 directly. The regex change from the original (?::\d+){0,2} to (?::\d+){1,2} sits inside an optional group, so colon-form matching behaves as before. The summary lists no unrelated files.

Full details: Description check

Explanation

The description follows the repository template and covers the Problem, Change, Scope, and Verification sections. It explains that TypeScript non-pretty diagnostics such as src/main.ts(42,7) lose their location in terminal links, and it describes the fix as recognizing the diagnostic marker and normalizing it to :42:7 while preserving literal parenthesized paths. It links issue #36183 for scope. Verification lists 72 passing terminal-link tests, the check:changed run, four focused TypeScript cases, three fallback-path cases, and real-client Ctrl-click checks with before/after screenshots. The author also states the council review rounds and the model used, which the template requests for agent-driven work. The title is not shown in the description, so conventional-commit formatting cannot be verified from the provided context. The description is largely complete and specific, so it passes.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 2d8a843
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 064759ee-d91a-4f79-b7d9-3f551d44945a
Commits

Reviewing files that changed from the base of the PR and between 2d8a843 and 59f46af.

Files selected for processing: 2

  • apps/web/src/terminal-links.test.ts
  • apps/web/src/terminal-links.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@saphitv
saphitv marked this pull request as ready for review November 13, 2026 14:25
@juliusmarminge
juliusmarminge merged commit 79dd6d7 into pingdotgg:main Nov 13, 2026
49 of 50 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Pipyakas pushed a commit to Pipyakas/t3code that referenced this pull request Nov 13, 2026
@saphitv @Pipyakas
fix(web): terminal TypeScript links preserve error locations (pingdot…
ff66671
…gg#36174)

(cherry picked from commit 764c047)
@Yarden-zamir Yarden-zamir mentioned this pull request Nov 14, 2026
fix(fork): daily release notes name an upstream pull request once Yarden-zamir/t3code#551
Merged
aorwall pushed a commit to aorwall/t3code that referenced this pull request Nov 14, 2026
@soap-agentops
chore: merge upstream t3code to 37714a8 (pingdotgg#287)
02cb717
Merges `pingdotgg/t3code` `37714a8de5` (231 commits from `bedc8658c3`)
into the fork. Tracker entry: `docs/fork/upstream-merge-log.md` §
2026-11-14.

## Merge

- Landed 854 files against 853 in the upstream range (the extra is
`docs/fork/inventory.json`). Fork delta 772 files.
- 5 conflicts, each resolved by its preflight verdict: `AGENTS.md`
(decide: fork shape plus upstream's provider list),
`agentContextBudget.json` (upstream + the fork's 108 bytes = 49914),
`ThreadTerminalDrawer.tsx` (upstream's `resolveTerminalLinkTarget` kept
behind the `FEATURES.openInEditor` return), `vite.config.ts` (upstream's
`configuredAppVersion` inside the fork's `defineConfig`),
`FilePreviewPanel.browser.test.tsx` (upstream's variable plus the fork's
`onRetargetFile`).
- Lockfile re-derived from upstream's copy.
- `duplicate-adds`, `resolution-check`, `inventory-check` and
`tripwires` are clean. `apps/mobile/src/state/use-terminal-session.ts`
joined the `terminal-metadata-state` entry.
- Union: ADD `pullRequests.subscribeLinkedThreadRefreshes` applied; no
DROP.
- Upstream's new provider-row edge-click test (pingdotgg#32537) needed
`FEATURES.providerConfiguration` turned on, because it clicks an
unconfigured row the fork hides.

## Verification

Format, lint, types, build, lockfile and every merge check pass. Tests:
the provider-opencode and t3 failures are the sandbox gaps already in
`docs/fork/gaps.md` (`/tmp` sticky bit, git `insteadOf`, OpenCode
process groups, Node 24), plus the server-browser and Antigravity
installation tests. The only one of those files in the fork delta is
`GitVcsDriverCore.test.ts`, and it fails on `insteadOf`. Web was run
against a fetched Chromium 1248, because the image ships 1254: 620 of
624 files passed, three passed when run alone, and the fourth is fixed
here.

## Upstream features

### Usable as-is
- Client fixes across chat, composer, terminal links, file preview,
settings and accessibility (e.g. pingdotgg#36497, pingdotgg#34964, pingdotgg#36466, pingdotgg#36435, pingdotgg#36174,
pingdotgg#36380, pingdotgg#36363, pingdotgg#36437).
- Theme CSS editor in Settings → Appearance (pingdotgg#35247), on the client
side. It shows only where the server reports `environmentThemes`.

### Unsupported in Moatless / needs implementation
- `pullRequests.subscribeLinkedThreadRefreshes` and the
`linkedThreadRefreshes` capability (pingdotgg#35865). Without them the client
polls `pullRequests.linkedThreads` every 10s. Now refused through
`UnsupportedMethodError`. Recorded in gaps under methods not dispatched
and capabilities.
- T3 Connect device approval (pingdotgg#36419). This is a decided-out surface.
- Agent theme MCP tools (pingdotgg#35247), which write `css` into environment
themes.

### Backend behavior to consider reproducing in Moatless
- `ServerConfig.serverTime` so live timers count against the host clock
(pingdotgg#36420).
- A thread list that builds metadata only for its page (pingdotgg#36434), and a
thread visit that stores only read state (pingdotgg#36233).
- An auto-settle sweep that stops rereading idle branches (pingdotgg#36371).
- `frame-ancestors`: other sites can no longer frame the web app
(pingdotgg#36395).
- A send to an unrecoverable worktree fails instead of reporting started
(pingdotgg#36251), and turns recreate a lost worktree checkout (pingdotgg#34894).
- Scheduled deliveries follow the thread's current model (pingdotgg#34149).
- Delegated children wait for awaited background work and subagents
(pingdotgg#36411, pingdotgg#34958).
- Fetched upstream commits are no longer shown as agent changes
(pingdotgg#36332), and turn diffs follow branch switches (pingdotgg#36343).

All are listed under "Runtime fixes upstream made to its own server" in
`docs/fork/gaps.md`.

## After merging
- `moat gh workflow disable issue-vouch.yml -R soaplabs/t3code` (new
upstream workflow that arrives enabled).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---
Moatless task:
https://moatless.soaplabstest.com/tasks/c89558cd-26c7-4a4c-a68f-04675720d7b7
TomCohenDev pushed a commit to TomCohenDev/t3code that referenced this pull request Nov 14, 2026
@Yarden-zamir
fix(fork): daily release notes name an upstream pull request once
5403801
Upstream landed pingdotgg#36174 twice, so the notes data held two changes with
the ref pingdotgg#36174. No plan could name both, and the daily release of
2026-11-14 stopped at the notes check. The upstream group now keeps one
change per pull request number.
JoshuaHayesWasHere pushed a commit to JoshuaHayesWasHere/t3code that referenced this pull request Nov 18, 2026
@saphitv @JoshuaHayesWasHere
fix(web): terminal TypeScript links preserve error locations (pingdot…
04d785c
…gg#36174)
JoshuaHayesWasHere pushed a commit to JoshuaHayesWasHere/t3code that referenced this pull request Nov 18, 2026
@saphitv @JoshuaHayesWasHere
fix(web): terminal TypeScript links preserve error locations (pingdot…
5bdf677
…gg#36174)
JoshuaHayesWasHere pushed a commit to JoshuaHayesWasHere/t3code that referenced this pull request Nov 19, 2026
@saphitv @JoshuaHayesWasHere
fix(web): terminal TypeScript links preserve error locations (pingdot…
d6e9ca0
…gg#36174)
JoshuaHayesWasHere pushed a commit to JoshuaHayesWasHere/t3code that referenced this pull request Nov 19, 2026
@saphitv @JoshuaHayesWasHere
fix(web): terminal TypeScript links preserve error locations (pingdot…
b8fa1ca
…gg#36174)
JoshuaHayesWasHere pushed a commit to JoshuaHayesWasHere/t3code that referenced this pull request Nov 19, 2026
@saphitv @JoshuaHayesWasHere
fix(web): terminal TypeScript links preserve error locations (pingdot…
f5c4a2e
…gg#36174)
JoshuaHayesWasHere pushed a commit to JoshuaHayesWasHere/t3code that referenced this pull request Nov 20, 2026
@saphitv @JoshuaHayesWasHere
fix(web): terminal TypeScript links preserve error locations (pingdot…
2bddae2
…gg#36174)
This was referenced Nov 25, 2026
fix(web): grep matches under ./ or an absolute path become terminal links #43033
Closed
fix(web): dotnet build errors and PHP stack frames become terminal links #43295
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: TypeScript compiler locations lose line and column in terminal links

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@saphitv @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.