Skip to content

feat(ui): preview GitHub issues and pull requests on hover - #100434

Merged
steipete merged 3 commits into
mainfrom
codex/github-link-hovercards
Jul 6, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/github-link-hovercards

Conversation

@steipete

@steipete steipete commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

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

  • Blacksmith Testbox: tbx_01kwss4nbev3bnqngyqt49t9e1 (Actions run)
  • Focused Gateway/UI tests: 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.
  • Browser E2E: 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.
  • Changed-surface gate: corepack pnpm check:changed — passed.
  • Production build: corepack pnpm build — passed, including the Control UI bundle.
  • Source-blind behavior validation: satisfies contract, confidence 0.96, no blockers.
  • Fresh structured autoreview: no accepted/actionable findings.
  • Visual proof is attached in the artifact comment immediately below.

AI-assisted with Codex. I understand and reviewed the implementation. Agent transcript omitted; no transcript attachment was requested.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: XL maintainer Maintainer-authored PR labels Jul 5, 2026
@steipete

steipete commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Visual proof

Full Control UI context, pull request card, and issue card:

full-page pull-request-card issue-card

@clawsweeper

clawsweeper Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed July 5, 2026, 9:51 PM ET / 01:51 UTC.

Summary
Adds Gateway-backed Control UI hover and keyboard-focus cards for public GitHub issue and pull request links, with docs, UI styling, i18n baseline updates, and focused Gateway/UI tests.

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.

  • Gateway API surface: 1 advertised operator.read method added. The new method becomes callable by Control UI clients, so scope, external API behavior, and product acceptance need maintainer attention before merge.

Stored data model
Persistent data-model change detected: serialized state: src/gateway/control-ui-github-preview.test.ts, vector/embedding metadata: src/gateway/server-methods/control-ui.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #100412
Summary: This PR is the implementation candidate for the linked Control UI GitHub hover-preview feature request.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🦐 gold shrimp
Result: needs maintainer review before merge.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P2] Fix the three review findings and add focused coverage for Escape with parent chat handlers, redirected item identity, and bad optional-token anonymous fallback.
  • Rerun the focused Gateway/UI suites, browser E2E, i18n check, changed-surface gate, and exact-head CI after the repairs.

Risk before merge

  • [P1] Merging as-is leaves visible keyboard side effects plus stale redirected-item identity and bad optional-token preview failures in a new user-facing UI path.
  • [P1] The PR adds an advertised Gateway method that can use host GitHub credentials for bounded public metadata, so final product/API and security-boundary acceptance remain maintainer-owned after the mechanical blockers are fixed.
  • [P1] The latest exact head still needs normal required-check gating after the source blockers are repaired.

Maintainer options:

  1. Repair Before Acceptance (recommended)
    Fix the Escape propagation, redirected identity, and bad optional-token fallback blockers while preserving the public-only bounded Gateway fetch boundary.
  2. Defer The Built-In Surface
    Pause this PR and keep the linked feature request open if maintainers do not want a GitHub-specific Gateway method in core right now.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Fix the Control UI GitHub hovercard blockers: intercept Escape before parent chat handlers consume it, derive or reject final redirected GitHub item identity consistently, fall back to anonymous public GitHub requests when optional GH_TOKEN/GITHUB_TOKEN auth fails, and add focused regression coverage for those paths.

Next step before merge

  • [P2] The remaining blockers are narrow mechanical code/test repairs that an automated repair lane can attempt before maintainer product acceptance.

Maintainer decision needed

  • Question: After the three source blockers are fixed, should OpenClaw accept this as a built-in Gateway-backed Control UI GitHub preview feature?
  • Rationale: The PR adds a new user-facing Control UI interaction and advertised Gateway method rather than fixing a broken existing contract, and the linked feature request carries maintainer/product-decision labels.
  • Likely owner: steipete — steipete is the strongest current history signal for the Control UI/Gateway surfaces and authored the linked feature request.
  • Options:
    • Accept After Repairs (recommended): Land the Gateway-backed public GitHub preview once Escape handling, redirected identity, optional-auth fallback, and exact-head checks are repaired.
    • Defer Core Surface: Keep the linked feature request open for product/API discussion and avoid adding a GitHub-specific Gateway method until maintainers sponsor the direction.

Security
Cleared: No supply-chain, workflow, dependency, lockfile, or concrete credential-leak regression was found; the token and redirect issues are functional/security-boundary review blockers covered in findings.

Review findings

  • [P2] Stop Escape before chat handlers consume it — ui/src/components/github-link-hovercard.ts:359-362
  • [P2] Use final repo data for redirected GitHub items — src/gateway/control-ui-github-preview.ts:284-285
  • [P2] Fall back when optional GitHub auth fails — src/gateway/control-ui-github-preview.ts:361-362
Review details

Best 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:

  • [P2] Stop Escape before chat handlers consume it — ui/src/components/github-link-hovercard.ts:359-362
    When keyboard focus is on a GitHub link inside chat while a reply target or side result is open, this bubble-phase handler closes the hovercard only after the parent chat section has already consumed Escape and cleared that other UI. Register this listener in capture phase and prevent/stop Escape when a hovercard is active, then cover the parent-handler case.
    Confidence: 0.91
  • [P2] Use final repo data for redirected GitHub items — src/gateway/control-ui-github-preview.ts:284-285
    fetchGitHubApi can follow a redirected issue or pull URL, but parseGitHubResponse still returns the originally requested owner/repo/number. A transferred or renamed item can therefore show the final title/state under a stale repo and number; derive the displayed identity from the final payload/redirect or reject changed identities.
    Confidence: 0.9
  • [P2] Fall back when optional GitHub auth fails — src/gateway/control-ui-github-preview.ts:361-362
    When GH_TOKEN or GITHUB_TOKEN is expired or lacks access, the authenticated public-repository proof throws before the anonymous public API path is tried. Public issue and pull endpoints still work anonymously, so retry without the optional token on auth or permission failures instead of making previews unavailable.
    Confidence: 0.88

Overall correctness: patch is incorrect
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 2db5bd3394f7.

Label changes

Label changes:

  • add merge-risk: 🚨 security-boundary: The PR adds a Gateway method that fetches GitHub metadata and may use host GitHub tokens, so maintainer review must preserve the public-only credential boundary before merge.

Label justifications:

  • P2: This is a normal-priority user-facing Control UI feature PR with source-confirmed blockers but no current broken core workflow or release-blocking path.
  • merge-risk: 🚨 security-boundary: The PR adds a Gateway method that fetches GitHub metadata and may use host GitHub tokens, so maintainer review must preserve the public-only credential boundary before merge.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (screenshot): The attached screenshots directly show the visible Control UI hovercards in context, including PR and issue cards; no contributor proof action is needed for the happy path.
  • proof: sufficient: Contributor real behavior proof is sufficient. The attached screenshots directly show the visible Control UI hovercards in context, including PR and issue cards; no contributor proof action is needed for the happy path.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The attached screenshots directly show the visible Control UI hovercards in context, including PR and issue cards; no contributor proof action is needed for the happy path.
Evidence reviewed

PR surface:

Source +1314, Tests +835, Docs +2. Total +2151 across 15 files.

View PR surface stats
Area Files Added Removed Net
Source 9 1319 5 +1314
Tests 5 835 0 +835
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 2156 5 +2151

Acceptance criteria:

  • [P1] 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.
  • [P1] 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.
  • [P1] node --import tsx scripts/control-ui-i18n.ts check.
  • [P1] pnpm check:changed.

What I checked:

  • Live PR state: Live GitHub data shows this PR is open, non-draft, contributor-authored, protected by the maintainer label, and still at head 4a3fe4e37ed527cc432d40e6f779b06184385d87. (4a3fe4e37ed5)
  • Current main lacks this feature: Current main has no githubPreview method, hovercard component, or Control UI GitHub preview docs, so the PR is not obsolete on main. (2db5bd3394f7)
  • New Gateway API surface: The PR appends an advertised operator.read Gateway method, which makes this a new product/API surface rather than a strict bug fix. (src/gateway/methods/core-descriptors.ts:248, 4a3fe4e37ed5)
  • Escape blocker remains: The hovercard handles Escape in a bubble-phase listener, while the parent chat view also handles Escape for replies and side results before that listener can protect the hovercard-only dismissal. (ui/src/components/github-link-hovercard.ts:359, 4a3fe4e37ed5)
  • Parent Escape behavior: Current main chat handling clears replies or dismisses side results on Escape when the event has not already been prevented. (ui/src/pages/chat/chat-view.ts:272, 2db5bd3394f7)
  • Redirect identity blocker remains: parseGitHubResponse still spreads the originally requested target into the returned preview after fetchGitHubApi may follow a GitHub redirect, so transferred or renamed items can display stale repo/number identity. (src/gateway/control-ui-github-preview.ts:285, 4a3fe4e37ed5)

Likely related people:

  • steipete: Current-main blame and recent history for the Control UI shell, chat Escape handling, and Gateway method descriptor table point to Peter Steinberger's July 2026 work, and the linked feature request is in the same surface. (role: recent area contributor; confidence: high; commits: 655b18c7064c, 60cf7eaa005b; files: ui/src/app/app-host.ts, ui/src/pages/chat/chat-view.ts, src/gateway/methods/core-descriptors.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (16 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-05T21:58:31.886Z sha c15d79f :: needs changes before merge. :: [P2] Remove release-owned changelog edits
  • reviewed 2026-07-05T22:51:44.614Z sha aa4a377 :: found issues before merge. :: [P2] Remove the release-owned changelog entry
  • reviewed 2026-07-05T23:20:36.461Z sha 3faf299 :: found issues before merge. :: [P1] Route ownerless watch snapshots before applying them | [P2] Remove the release-owned changelog entry | [P2] Add the Room license bundle entry | [P2] Scope outbox retries to the selected gateway | [P2] Scope outbox deletes to the selected gateway | [P2] Recheck the gateway before sending outbox rows
  • reviewed 2026-07-05T23:39:25.152Z sha 3ea7366 :: found issues before merge. :: [P1] Route ownerless watch snapshots before applying them | [P2] Stop Escape before chat handlers consume it | [P2] Scope outbox retries to the selected gateway | [P2] Scope outbox deletes to the selected gateway | [P2] Recheck the gateway before sending outbox rows | [P2] Keep durable outbox rows out of destructive migrations
  • reviewed 2026-07-05T23:59:11.040Z sha 0ae3f2e2c1001a5685eafce7d53d41f2f1d9960e :: found issues before merge. :: [P2] Stop Escape before chat handlers consume it
  • reviewed 2026-07-06T00:44:42.816Z sha 657a08f :: needs changes before merge. :: [P2] Stop Escape before chat handlers consume it | [P2] Use final repo data for redirected GitHub items | [P2] Fall back when optional GitHub auth fails | [P2] Remove the release-owned changelog entry
  • reviewed 2026-07-06T01:13:18.038Z sha 3c8f0fd :: needs changes before merge. :: [P2] Stop Escape before chat handlers consume it | [P2] Use final repo data for redirected GitHub items | [P2] Fall back when optional GitHub auth fails | [P2] Remove the release-owned changelog entry
  • reviewed 2026-07-06T01:44:41.683Z sha 4a3fe4e37ed527cc432d40e6f779b06184385d87 :: needs changes before merge. :: [P2] Stop Escape before chat handlers consume it | [P2] Use final repo data for redirected GitHub items | [P2] Fall back when optional GitHub auth fails

@steipete

steipete commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head 1badfd6e18fe96504f5b715ba23352176542ba00:

  • Blacksmith Testbox: tbx_01kwss4nbev3bnqngyqt49t9e1 (run 28750877286).
  • Focused Gateway/UI regression suite: 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 passed.
  • Browser behavior: 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 — 1 passed.
  • Changed-surface gate: corepack pnpm check:changed — passed.
  • Production build: corepack pnpm build — passed, including the Control UI bundle.
  • Source-blind behavior validation: satisfies contract, confidence 0.96, no blockers.
  • Fresh structured autoreview and required review artifacts: zero accepted/actionable findings; best-fix judgment confirmed.
  • Control UI i18n baseline check: node --import tsx scripts/control-ui-i18n.ts check — passed.
  • Hosted exact-head PR CI after syncing current main: run 28762946846 — passed.
  • Visual proof: feat(ui): preview GitHub issues and pull requests on hover #100434 (comment)

Known proof gaps: none.

@openclaw-barnacle openclaw-barnacle Bot added channel: voice-call Channel integration: voice-call cli CLI command changes plugin: logbook Logbook automatic work journal plugin labels Jul 5, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 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".

Comment thread CHANGELOG.md Outdated
- **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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Jul 5, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts channel: irc app: android App: android app: ios App: ios app: macos App: macos agents Agent runtime and tooling labels Jul 5, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Jul 5, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: imessage Channel integration: imessage channel: slack Channel integration: slack labels Jul 5, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 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".

Comment on lines +175 to +178
// 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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Jul 5, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 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")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 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);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. and removed P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 5, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 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".

Comment on lines +361 to +362
if (token) {
await assertPublicRepositoryUrl(repositoryApiUrl(target), fetchImpl, token);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 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,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@steipete

steipete commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Control UI: preview GitHub issues and pull requests on hover

1 participant