Repro (intermittent — timing-sensitive)
- Connected tray, hub window open with full left nav visible.
- Settings → toggle Allow screen recording ON.
- Watch the left navigation: Chat / Sessions / Skills / Channels / Instances / Advanced briefly disappear and the gateway separator goes away (only Voice & Audio / Settings / Permissions / Sandbox remain).
- Toggle OFF; the nav usually restores before the user notices, which is why this doesn't always repro.
Expected
Toggling a recording-consent setting should have zero effect on the left nav.
Actual
Left nav briefly "simplifies" — the 6 gateway-gated items collapse for the duration of a reconnect blip.
Root cause (suspected)
HubWindow.UpdateGatewayNavVisibility(bool connected) at
src/OpenClaw.Tray.WinUI/Windows/HubWindow.xaml.cs:371 collapses NavChat, NavSessions, NavSkills, NavChannels, NavInstances, NavAdvanced, and NavGatewaySeparator whenever the gateway connection is not in the Connected state.
Trigger chain:
SettingsPage.xaml.cs:92 → ScreenRecordingToggle.Toggled
SettingsPage.xaml.cs:103 → Persist() calls settings.Save() then NotifySettingsSaved()
- Some downstream subscriber (suspected NodeService capability re-registration, since
ScreenRecordingConsentGiven gates screen.* command exposure) causes a brief gateway disconnect/reconnect, which fires the visibility collapse for the duration of the gap.
Suggested fix (either or both)
- NodeService should re-register screen capability state in-place without dropping the gateway connection, OR
UpdateGatewayNavVisibility should debounce / require >N seconds disconnected before collapsing the nav so transient reconnect blips do not strobe the UI.
Found during MSIX-E2E manual test pass on packaged build (Mike Harsh, 2026-05-19).
Repro (intermittent — timing-sensitive)
Expected
Toggling a recording-consent setting should have zero effect on the left nav.
Actual
Left nav briefly "simplifies" — the 6 gateway-gated items collapse for the duration of a reconnect blip.
Root cause (suspected)
HubWindow.UpdateGatewayNavVisibility(bool connected)atsrc/OpenClaw.Tray.WinUI/Windows/HubWindow.xaml.cs:371collapses NavChat, NavSessions, NavSkills, NavChannels, NavInstances, NavAdvanced, and NavGatewaySeparator whenever the gateway connection is not in the Connected state.Trigger chain:
SettingsPage.xaml.cs:92→ScreenRecordingToggle.ToggledSettingsPage.xaml.cs:103→Persist()callssettings.Save()thenNotifySettingsSaved()ScreenRecordingConsentGivengatesscreen.*command exposure) causes a brief gateway disconnect/reconnect, which fires the visibility collapse for the duration of the gap.Suggested fix (either or both)
UpdateGatewayNavVisibilityshould debounce / require >N seconds disconnected before collapsing the nav so transient reconnect blips do not strobe the UI.Found during MSIX-E2E manual test pass on packaged build (Mike Harsh, 2026-05-19).