Skip to content

fix: pr-bug-scan findings from #1429#1463

Closed
buf0-bot[bot] wants to merge 1 commit intomainfrom
bot/pr-bug-scan-1429-1778016282
Closed

fix: pr-bug-scan findings from #1429#1463
buf0-bot[bot] wants to merge 1 commit intomainfrom
bot/pr-bug-scan-1429-1778016282

Conversation

@buf0-bot
Copy link
Copy Markdown
Contributor

@buf0-bot buf0-bot Bot commented May 5, 2026

Automated fix-PR from pr-bug-scan for parent #1429.

Fixer summary: Narrowed App.tsx theme useEffect dependency from full settings object to settings?.theme so unrelated settings mutations no longer re-run applyDocumentTheme and kill in-progress UI transitions.
Typecheck: skipped

Findings addressed

  • [medium] src/renderer/src/App.tsx:500-518 — Theme effect re-runs on every settings change, briefly killing all transitions

This PR was generated by the pr-bug-scan automation and reviewed by an agent reviewer. Human approval required before merge.

Narrowed App.tsx theme useEffect dependency from full settings object to settings?.theme so unrelated settings mutations no longer re-run applyDocumentTheme and kill in-progress UI transitions.
@nwparker
Copy link
Copy Markdown
Contributor

nwparker commented May 7, 2026

Closing — stale-main silent-revert risk.

This PR was branched off the merge of parent #1429 (commit f0de1437) and reports +1/−1 on GitHub, but git diff origin/main..pr-1463 shows it would silently revert at least five PRs that have landed since:

The actual intended fix — narrowing the theme useEffect dep from [settings] to [settings?.theme] — is a one-line change. If the regression is still present on current main, please regenerate the fix from a fresh main checkout so it lands as a clean +1/−1 diff. Not landing via --admin squash because that would erase the five PRs above.

@nwparker nwparker closed this May 7, 2026
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.

1 participant