Repository navigation
[Repo Assist] fix: refresh channel list when channels are added/removed on gateway - #57
Merged
shanselman merged 1 commit intoMar 17, 2026
Conversation
Two bugs prevented #55 from working correctly: 1. ParseChannelHealth (OpenClawGatewayClient) suppressed ChannelHealthUpdated when the gateway returned an empty channel object. This meant removing the last channel never cleared _lastChannels in the UI. 2. OnChannelHealthUpdated (App.xaml.cs) updated _lastChannels but never pushed the new list to an open StatusDetailWindow, so the window showed stale channel data until the user closed and reopened it. Fix: - Remove the 'if (healthList.Count > 0)' guard so ChannelHealthUpdated always fires, even when all channels have been removed. - In OnChannelHealthUpdated, enqueue a StatusDetailWindow.UpdateStatus call on the dispatcher so an already-open status window reflects channel changes immediately. Also adds three unit tests covering the channel health parsing path. Closes #55 Co-authored-by: Copilot <[email protected]>
36 tasks
vincentkoc
deleted the
repo-assist/fix-channel-refresh-55-eddad905e7b76999
branch
August 2, 2026 07:51
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 two bugs that together caused issue #55.
Root causes:
Empty channel list suppressed in ParseChannelHealth — the \if (healthList.Count > 0)\ guard prevented \ChannelHealthUpdated\ from firing when the gateway returned an empty channel map, so removing the last channel never cleared the UI.
Open StatusDetailWindow not refreshed on channel update — _lastChannels\ was updated but an already-open \StatusDetailWindow\ was never pushed the updated list.
Fix:
Tests: 3 new unit tests covering channel health parsing. 478/478 shared tests pass.
Closes #55