Repository navigation
feat(ui): preview GitHub issues and pull requests on hover - #100434
Conversation
|
Codex review: needs changes before merge. Reviewed July 5, 2026, 9:51 PM ET / 01:51 UTC. Summary PR surface: Source +1314, Tests +835, Docs +2. Total +2151 across 15 files. Reproducibility: yes. for the review blockers: source inspection of the current head shows the Escape listener ordering, redirected-response identity, and optional-auth fallback issues. The attached screenshots prove the happy-path hovercard UI but do not cover those edge cases. Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Copy recommended automerge instructionNext step before merge
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Repair the three source blockers, keep the public-repository and bounded-fetch Gateway design, and then have maintainers explicitly accept or defer the built-in Control UI preview surface. Do we have a high-confidence way to reproduce the issue? Yes for the review blockers: source inspection of the current head shows the Escape listener ordering, redirected-response identity, and optional-auth fallback issues. The attached screenshots prove the happy-path hovercard UI but do not cover those edge cases. Is this the best way to solve the issue? No as submitted: the Gateway-mediated design is the right boundary for remote Control UI and browser CORS constraints, but the implementation needs the three narrow repairs before it is the best mergeable solution. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2db5bd3394f7. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +1314, Tests +835, Docs +2. Total +2151 across 15 files. View PR surface stats
Acceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (16 earlier review cycles; latest 8 shown)
|
|
Land-ready proof for exact head
Known proof gaps: none. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6955f11894
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| - **Logbook work journal:** add a disabled-by-default bundled plugin that turns paired-node screen snapshots into a private timeline, daily standup, and timeline-grounded Q&A in a plugin-contributed Control UI tab. (#99930) | ||
| - **Control UI message context:** reveal per-message token, context, and model details from the timestamp on hover or activation instead of showing a separate Context button. | ||
| - **Control UI session titles:** reveal truncated recent-session names with a reduced-motion-safe hover animation. | ||
| - **Control UI GitHub previews:** show issue and pull request state, title, author, activity, comments, and change statistics in hover and keyboard-focus cards. |
There was a problem hiding this comment.
Remove normal-change edits from CHANGELOG
Root AGENTS.md says CHANGELOG.md is release-only and release generation owns it, while normal PRs/direct fixes should keep release-note context in the PR body or squash message. This feature commit adds an Unreleased changelog entry here and a matching Voice Call fix entry below, which can desync or duplicate the generated release notes and leaves maintainers cleanup work before merge.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ada8aaa7a5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // Established contract: any schema bump drops and rebuilds instead of migrating. Cached | ||
| // transcripts are disposable; the outbox loses at most a handful of unsent commands at a | ||
| // release boundary, which is acceptable versus carrying migrations for this store. | ||
| .fallbackToDestructiveMigration(dropAllTables = true) |
There was a problem hiding this comment.
Keep durable outbox rows out of destructive migrations
This Room database now contains both the disposable transcript cache and OutboxCommandEntity, but any future schema bump will drop every table, including outbox_commands. When a user has offline text queued and then updates across a DB version change, those commands disappear even though the outbox contract says rows survive until they are acked, expired, or deleted; put the outbox in a migrated durable store or limit destructive rebuilds to cache-only tables.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aa4a3778a0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| error: String, | ||
| ) | ||
|
|
||
| @Query("DELETE FROM outbox_commands WHERE id = :id") |
There was a problem hiding this comment.
Scope outbox deletes to the active gateway
When a Delete action races a gateway switch or is invoked from a stale rendered row, this DAO deletes by row id only even though the rest of the outbox surface loads and publishes rows by gatewayId. That can silently remove queued user text from a different gateway instead of no-oping under the current queue; pass the captured gateway id through deleteOutboxCommand and include gatewayId = :gatewayId here like the other gateway-scoped mutations.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3faf299bde
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| this.addEventListener("pointerout", this.handlePointerOut); | ||
| this.addEventListener("focusin", this.handleFocusIn); | ||
| this.addEventListener("focusout", this.handleFocusOut); | ||
| this.addEventListener("keydown", this.handleKeyDown); |
There was a problem hiding this comment.
Stop Escape before chat handlers consume it
When keyboard focus is on a GitHub link inside chat while a reply target or side result is open, this bubble-phase keydown listener runs only after the chat section's Escape handler (ui/src/pages/chat/chat-view.ts:272-281) has already cleared the reply or dismissed the side panel. The hovercard Escape path should intercept in capture phase and prevent/stop the event when a card is active, otherwise the documented Escape dismissal has an unrelated side effect.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 41f026b9ad
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (token) { | ||
| await assertPublicRepositoryUrl(repositoryApiUrl(target), fetchImpl, token); |
There was a problem hiding this comment.
Fall back when optional GitHub auth fails
When a gateway has GH_TOKEN/GITHUB_TOKEN set to an expired or repo-scoped token, this authenticated repository proof returns an auth/permission error and fetchPreview aborts before trying the anonymous GitHub path. Public issue/PR endpoints are usable without auth, so a bad optional token makes otherwise previewable public links show “GitHub preview unavailable”; retry the public proof/fetch anonymously after auth-only failures or ignore unusable tokens for public previews.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 657a08f292
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const user = isRecord(value.user) ? value.user : {}; | ||
| return { | ||
| preview: { | ||
| ...target, |
There was a problem hiding this comment.
Use final repo data for redirected GitHub items
When GitHub redirects an issue link to a different repository/number (their issue-transfer docs note old URLs redirect to the new issue), fetchGitHubApi follows that final item but this spread keeps the originally requested owner/repo/number. The card can show the transferred item's title/state under the stale repo/#, so either derive those fields from the final payload/redirect or reject redirects that change them.
Useful? React with 👍 / 👎.
|
Merged via squash.
|



Closes #100412
What Problem This Solves
Control UI users reviewing GitHub-heavy conversations must currently leave the chat and open every issue or pull request to learn its state, title, author, activity, and size.
Why This Change Was Made
This adds compact hover and keyboard-focus cards for public GitHub issue and pull request links. The connected Gateway owns bounded GitHub metadata/avatar fetching and caching, so the behavior works with remote Gateways, preserves normal link navigation, and never exposes private repository metadata through ambient host credentials.
User Impact
Users can inspect issue and pull request context without leaving the conversation. Cards show state, repository and number, title, author, recent activity, issue comments, and pull request additions, deletions, and changed files; mouse, keyboard, Escape dismissal, loading, unavailable, viewport, and theme behavior are covered.
Evidence
tbx_01kwss4nbev3bnqngyqt49t9e1(Actions run)corepack pnpm test src/gateway/control-ui-github-preview.test.ts src/gateway/server-methods/control-ui.test.ts src/gateway/server-methods-list.test.ts ui/src/components/github-link-hovercard.test.ts— 76 tests passed across selected projects/shards.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/github-link-hovercard.e2e.test.ts— passed.corepack pnpm check:changed— passed.corepack pnpm build— passed, including the Control UI bundle.AI-assisted with Codex. I understand and reviewed the implementation. Agent transcript omitted; no transcript attachment was requested.