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): show checkout details when hovering a sidebar thread by flexi767 · Pull Request #35281 · pingdotgg/t3code

Conversation

@flexi767

@flexi767 flexi767 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Problem

The thread hover card names a branch, but not which version a worktree is on or how stale it is. With many worktrees, finding one that is far behind origin/main or has uncommitted changes means opening a terminal in each.

Change

  • VCS status takes an optional includeCheckoutDetails. When it is set, local status also returns the head commit, its commit date, when the checkout's HEAD last moved, and how many commits it trails the locally fetched origin/main.
  • VcsStatusBroadcaster counts streams that ask for details. While any does, refreshes it publishes for that folder include them, so the card stays current. All other status reads behave as before.
  • The sidebar hover card shows these details for the thread's worktree and for the project's main checkout.

Scope

This is the second of three smaller PRs that replace #31095. Theo closed #31095 for conflicts and asked for a fresh PR from current main (comment). It is independent of the other two.

Verification

  • New checkoutDetails tests cover the commit, dates and behind count against a real repository. The VcsStatusBroadcaster tests cover published refreshes keeping details while a detail stream is open.
  • vp run check:changed passes format, lint, knip, typecheck (37 packages), 6 test files and react compiler.
  • I checked it in a dev build seeded from real data by hovering a worktree thread. The card shows the worktree at ae1c74ed01, 224 commits behind origin/main, and the main checkout at 58e913e862.

Before:

hover card on main without checkout details

After:

hover card showing worktree and main checkout versions and how far behind origin/main they are

The comparison is against the local origin/main ref, so it is only as fresh as the last fetch, and the card says so. I could not check the desktop app, mobile, or remote environments.

🤖 Generated with Claude Code (Claude Opus 5.5)

Sorry, something went wrong.

Uh oh!

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

All reactions
@flexi767 @claude
feat(web): show checkout details when hovering a sidebar thread
f187ab0
The thread hover card names a branch, but not which version a worktree is
on or how stale it is. VCS status can now include checkout details (head
commit, its date, when the checkout last moved, and how far it trails the
local origin/main), and the hover card shows them for the thread's
worktree and the project's main checkout. Only the hover card asks for
them, so ordinary status reads stay as they were.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 12, 2026 13:50
@github-actions

github-actions Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Closing: flexi767 already has 3 or more open PRs here, which is the limit for contributors who are not vouched.

Once one of them is merged or closed, open this again. See the open PR limit.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot closed this Nov 12, 2026
@github-actions github-actions Bot added the vouch:unvouched Author is not yet trusted in the VOUCHED list. label Nov 12, 2026
Copilot AI reviewed Nov 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Sorry, something went wrong.

Uh oh!

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

All reactions
@github-actions github-actions Bot added the size:L 100-499 changed lines (additions + deletions). label Nov 12, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Nov 12, 2026
View reviewed changes
Comment thread apps/server/src/vcs/VcsStatusBroadcaster.ts
// Watch before reading so a checkout in between still publishes.
yield* Effect.acquireRelease(retainHeadWatcher(cwd), () => releaseHeadWatcher(cwd));
const initialLocal = input.includeCheckoutDetails
? yield* workflow.localStatus({ cwd, includeCheckoutDetails: true })

@macroscopeapp macroscopeapp Bot Nov 12, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium vcs/VcsStatusBroadcaster.ts:954

A detailed stream can emit a snapshot with checkout details and then deliver an older queued localUpdated event without those details, removing the hover card’s version, dates, and comparison until another refresh. The in-flight refresh may have sampled checkoutDetailDemandRef before this subscriber retained demand, and subscribing before reading the snapshot queues its event; serialize the detailed initial read with localRefreshLocks and ensure queued pre-snapshot updates cannot replace the detailed state.

🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/server/src/vcs/VcsStatusBroadcaster.ts around line 954:

A detailed stream can emit a snapshot with checkout details and then deliver an older queued `localUpdated` event without those details, removing the hover card’s version, dates, and comparison until another refresh. The in-flight refresh may have sampled `checkoutDetailDemandRef` before this subscriber retained demand, and subscribing before reading the snapshot queues its event; serialize the detailed initial read with `localRefreshLocks` and ensure queued pre-snapshot updates cannot replace the detailed state.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/web/src/components/sidebar/SessionWorkspaceDetails.tsx
<div>No Git repository</div>
) : (
<>
<div>Branch: {status?.refName ?? "Loading…"}</div>

@macroscopeapp macroscopeapp Bot Nov 12, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium sidebar/SessionWorkspaceDetails.tsx:39

A detached-HEAD checkout displays Branch: Loading… indefinitely even after the status request completes, because refName is legitimately null in that state. Since status === null already handles loading, show a detached-HEAD or unavailable label when refName is null.

Suggested change
<div>Branch: {status?.refName ?? "Loading…"}</div>
<div>Branch: {status?.refName ?? "Detached HEAD"}</div>
🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/web/src/components/sidebar/SessionWorkspaceDetails.tsx around line 39:

A detached-HEAD checkout displays `Branch: Loading…` indefinitely even after the status request completes, because `refName` is legitimately `null` in that state. Since `status === null` already handles loading, show a detached-HEAD or unavailable label when `refName` is null.

Sorry, something went wrong.

Uh oh!

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

All reactions
@macroscopeapp

macroscopeapp Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Would Approve

Macroscope's review found this PR approvable — The hover card gains read-only checkout details using local Git metadata, without fetching or modifying repositories. The supplied metadata-display findings remain subject to the separate correctness gate.

Needs human approval because:

  • 2 blocking correctness issues found at or above your repo's Minimum Blocking Severity

Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments
Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

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

Assignees

No one assigned

Labels

size:L 100-499 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.

Uh oh!

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

2 participants

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