Uh oh!
There was an error while loading. Please reload this page.
fix(tui): re-query terminal palette on focus for system theme refresh - #42685
fix(tui): re-query terminal palette on focus for system theme refresh#42685ar1vit0r wants to merge 1 commit into
Conversation
The following comment was made by an LLM, it may be inaccurate: Based on my search results, I found one potentially related PR: PR #37537 - This PR is related to system theme palette handling in the TUI, which is the same general area as the current PR. However, it appears to be addressing a different aspect (preserving colors vs. refreshing on focus). The other results (PR #5657 about transparent background) are less directly related. No other open PRs appear to be addressing the specific issue of re-querying the terminal palette on focus to refresh the system theme, particularly in the context of terminal multiplexers like herdr. |
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Enough1122
commented
Aug 21, 2026
Scope: one-liner TUI fix: re-query the terminal background/foreground palette on window focus when theme is
|
Issue for this PR
Closes#42635
Type of change
What does this PR do?
The system theme only refreshed on ?997 escape sequences or SIGUSR2, which never arrive inside terminal multiplexers like herdr. Added a focus event listener that re-queries the terminal palette when the system theme is active, so the theme stays current when the host terminal changes color scheme.
How did you verify your code works?
Code review -- the renderer already emits focus events (used in attention.ts), and refreshSystemTheme() handles concurrent calls safely.
Checklist