GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — feat(web): review comment previews look like GitHub's by adampeterhiggins · Pull Request #264 · adampeterhiggins/t3code Conversation
|
| Before | After |
|---|---|
![]() |
![]() |
The chip preview (composer and sent messages) now uses a GitHub-style card:
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.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.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.
There was an error while loading. Please reload this page.
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]>
25119b9 to
d01aad6
Compare
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.