Repository navigation
fix(komorebi): start a bar that did not come back after a rebuild - #199
Merged
Merged
Conversation
After a dock, komorebic replace-configuration starts the bars while it holds komorebi's lock. A bar whose first state request is dropped exits, so its monitor gets no bar spacing and the recovery script restarted komorebi, which is allowed only once per 10 minutes. Now, when bar spacing is the only thing still wrong after the rebuild and a configured bar has no running process, the script starts that bar and checks again. It restarts komorebi only if that does not help. The log now says what was still wrong, not only why the rebuild started. Refs #193 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aguil
marked this pull request as ready for review
November 23, 2026 04:19
aguil
marked this pull request as draft
November 23, 2026 04:23
On two real docks the script waited out the full 20 second rebuild timeout before starting bar 0, which had exited about 4 seconds into the rebuild. That delayed putting the windows back by about 17 seconds. komorebi does not answer while it stops and starts the bars, so once it answers they have all been started. The script now checks for a missing bar while it waits for the rebuild, from 5 seconds in, and starts it once two checks in a row find the same bar missing. Refs #193 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #193
Why the change
After a dock, a bar that exits during komorebi's rebuild leaves its monitor without bar spacing, and the recovery script then restarts all of komorebi (once per 10 minutes) when starting that one bar would do.
Special things to note
bar_configurationslists, and only if every running bar's config path is known. Otherwise the script falls back to a restart. komorebi stops bars by name before every rebuild, so a bar started this way is stopped and restarted with the others.Change outline
After a rebuild:
Files:
dot_config/ workspace-recover.ps1 # Wait-Healthy returns what is still wrong; + # Get-MissingBars, bar start after a rebuild workspace-window.ps1 # + Get-BarProcessConfigs (reads -c / --config), Start-Bar komorebi-setup-notes.md # recovery steps include starting a missing bar🤖 Generated with Claude Code