Skip to content

Try to fix focus view showing on git commands#8842

Merged
alexr00 merged 2 commits into
mainfrom
alexr00/distinguished-baboon
Jul 15, 2026
Merged

Try to fix focus view showing on git commands#8842
alexr00 merged 2 commits into
mainfrom
alexr00/distinguished-baboon

Conversation

@alexr00

@alexr00 alexr00 commented Jul 14, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings July 14, 2026 12:30
@alexr00 alexr00 self-assigned this Jul 14, 2026

Copilot AI 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.

Pull request overview

This PR adjusts the “focused review mode” reveal behavior so that a deferred “show the PR” request is consumed only once, reducing unintended repeated reveals (e.g., when triggered around git commands).

Changes:

  • Convert the ShowPullRequest “should show” flag into a one-shot value via takeShouldShow() (read-and-reset).
  • Update ReviewManager.layout() to use the one-shot value and to guard against multiple listener firings triggering repeated reveals.
  • Add a unit test to ensure a deferred reveal only happens once.
Show a summary per file
File Description
src/view/reviewManager.ts Consumes the deferred “show PR” signal via takeShouldShow() so it doesn’t repeatedly trigger focus reveals.
src/test/view/reviewManager.test.ts Adds coverage asserting a deferred focused reveal triggers only once across repeated layout() calls.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Low

Copilot AI review requested due to automatic review settings July 15, 2026 09:52
@alexr00 alexr00 enabled auto-merge (squash) July 15, 2026 09:52

Copilot AI 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.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Low

@alexr00 alexr00 merged commit 7a07aaf into main Jul 15, 2026
8 checks passed
@alexr00 alexr00 deleted the alexr00/distinguished-baboon branch July 15, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants