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 — feat(web): review comment previews look like GitHub's by adampeterhiggins · Pull Request #264 · adampeterhiggins/t3code

Conversation

@adampeterhiggins

@adampeterhiggins adampeterhiggins commented Oct 9, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Owner

Hovering a PR review chip showed a plain path, a PR #N review · L4 line, and the whole thread flattened into one block with login: prefixes. It didn't look like the comment on GitHub, and you couldn't see the code being discussed.

Screenshots

The same review thread (ccc509's comment on PR pingdotgg#6058 plus two replies), attached by pasting its comment URL into the composer, with the chip's preview open.

Before After
Before: flat text block After: GitHub-style card

What changed

The chip preview (composer and sent messages) now uses a GitHub-style card:

  • File bar: monospace path with the directory dimmed. A line pill appears only when there's no code to show.
  • Code: the lines the thread was written against, with add/delete tinting and line numbers. When there's no code (file-level comments, or hosts other than GitHub), the card skips this section.
  • Conversation: each remark gets its own row with the author's avatar and name, rendered as markdown. Replies stack under the first comment. Bot bookkeeping (HTML-comment-only bodies) is dropped.
  • Footer: always shown. It has the section title, plus a "View on GitHub" link when the thread has a URL. The link goes through the app's link handler, so the in-app browser setting is respected.

How

  • PullRequestReviewThread gains an optional diffHunk. The GitHub review-thread query asks for diffHunk on each thread's first comment only (an aliased comments(first: 1)), so replies don't repeat it. The server keeps only the last 4 lines and renumbers the @@ header (trimDiffHunk). GitHub's hunk can run hundreds of lines, so this keeps the websocket payload small. GitLab, Bitbucket and Forgejo don't report a hunk and fall back to the card without code.
  • ReviewCommentContextRecord gains an optional thread (url plus {author, avatarUrl, body}[]), so the structured conversation survives sending and reloading drafts. What the agent receives (text) is unchanged. The thread's code now goes into diff, so the agent also sees the lines the reviewer saw. Before this, it had no copy of them.
  • New shared ReviewCommentCard used by both the composer chip and the sent-message chip. The sent-message preview no longer mounts a FileDiff with its worker pool just to show a few quoted lines. The trade-off is that the code isn't syntax-highlighted.

Surfaces

  • Web/desktop: both chip previews (composer and timeline).
  • Mobile: the new fields are optional, so mobile is unaffected. It will now show the thread's code through its existing review card, but it doesn't get the threaded layout. That's a possible follow-up.
  • Providers/agents: no change. Agents now also receive the code the thread was written against.

Tests

  • gitHubPullRequestJson.test.ts: the hunk tail is kept and renumbered.
  • pullRequestDetail.logic.test.ts: a thread carries its code and each visible remark under its author, with the link.
  • reviewCommentContext.test.ts: code lines are numbered by side for diffs, and from the comment's start for file comments.

🤖 Generated with Claude Code (Opus 5.5, in T3 Code)

Sorry, something went wrong.

Uh oh!

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

All reactions
@adampeterhiggins @claude
feat(web): review comment previews look like GitHub's
d01aad6
Review chips now show the file bar, the lines the thread was written
against, each remark under its author's avatar, and a footer that links
back to the thread on the host.

GitHub threads carry the tail of their diff hunk, and review context
records carry the structured conversation alongside the agent-facing text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@adampeterhiggins
adampeterhiggins force-pushed the ah/github-style-previews branch from 25119b9 to d01aad6 Compare October 9, 2026 15:00
@adampeterhiggins
adampeterhiggins merged commit 25265c3 into main Oct 9, 2026
@adampeterhiggins adampeterhiggins mentioned this pull request Oct 22, 2026
fix(web): restore the last fork behaviour lost in the #415 upstream sync #465
Merged
@adampeterhiggins adampeterhiggins mentioned this pull request Nov 7, 2026
chore: sync upstream through 202d5b5616 #560
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

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

1 participant

@adampeterhiggins
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.