Skip to content

Nudge running Hunk sessions to pick up new theme colors - #13518

Merged
dhh merged 1 commit into
quattrofrom
theme-set-hunk
Sep 28, 2026
Merged

dhh merged 1 commit into
quattrofrom
theme-set-hunk

Conversation

@dhh

@dhh dhh commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Hunk's new default terminal theme draws from the terminal's own foreground, background, and ANSI palette, and re-reads them on SIGWINCH (modem-dev/hunk#1128). Terminals that don't send a color-scheme notification when Omarchy reloads their palette would otherwise leave a running Hunk on the old theme's colors.

omarchy-theme-set-hunk sends SIGWINCH to running hunk processes during omarchy-theme-set. Terminals reload their colors in parallel with the theme hooks, so it nudges once immediately and once a second later; Hunk only repaints when the palette actually changed. With no Hunk running it does nothing. Hunk sessions inside tmux were already covered by omarchy-theme-set-tmux, and a second signal is harmless.

Tests: added test/cli coverage for signaling running sessions and skipping when none run. ./test/cli otherwise stops at vscode generated theme references current theme file, which fails the same way on quattro without this change.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dhh
dhh merged commit 4ba4a53 into quattro Sep 28, 2026
@dhh
dhh deleted the theme-set-hunk branch September 28, 2026 08:25
omarchybot added a commit to salemsayed/omarchy that referenced this pull request Sep 28, 2026
Resolves the test/cli conflict with the Hunk theme-sync tests (omacom#13518), which landed at the same spot: both blocks are kept, Hunk's first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sgruendel pushed a commit to sgruendel/omarchy that referenced this pull request Oct 3, 2026
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@emirb emirb added this to the 4.5 milestone Oct 17, 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.

2 participants