Repository navigation
Keep PR context readable while the app is unfocused - #884
Conversation
The access lease must keep renewing while another app holds focus, so foreground means the window is on screen: visible and not minimized. The work-item card opens the item's page on the profile server because a Linear-keyed issue link arrives without a tracker URL. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
PR Summary by QodoKeep PR context readable when the app loses focus
AI Description
Diagram
High-Level Assessment
Files changed (16)
|
Code Review by Qodo
1.
|
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Closes #883 — AI-2700
What & why
The PR card and reader masked every protected field the moment another app took keyboard focus, because the window fed the PR context a foreground flag that required it to be active. Foreground is now the window being on screen, visible and not minimized, so the reader stays readable beside another window and keeps its access lease renewed. The pane's single refresh reloads the work item and the pull requests together; the card has no refresh of its own. The open button beside the work item key opens the item's page in the web UI on the profile server, since a Linear-keyed issue link arrives without a tracker URL. The external-link icon beside a label sits on the glyphs' visual centre, 1px above the line-box centre.
Where to look
MainWindow.UpdateActivityVisibilityis the one predicate; hiding to the tray and minimizing still mask. The new smoke test deactivates the headless window through the platform interface map, because that hook is internal to Avalonia.Verification
dotnet run --project test/Capacitor.App.Tests.Unit: 1684 passed, 0 failed.pullRequests.CanRevealright after focus loss.dotnet build src/Capacitor.App --no-incremental: 0 warnings.🤖 Generated with Claude Code