openclaw/apps/macos/Tests/OpenClawIPCTests
Brian Ernesto ab1da26f4d
fix(macos): show sessions after controls in tray menu (#38079)
* fix(macos): show sessions after controls in tray menu

When many sessions are active, the injected session rows push the
toggles, action buttons, and settings items off-screen, requiring
a scroll to reach them.

Change findInsertIndex and findNodesInsertIndex to anchor just before
the separator above 'Settings…' instead of before 'Send Heartbeats'.
This ensures the controls section is always immediately visible on
menu open, with sessions appearing below.

* refactor: extract findAnchoredInsertIndex to eliminate duplication

findInsertIndex and findNodesInsertIndex shared identical logic.
Extract into a single private helper so any future anchor change
(e.g. Settings item title) only needs one edit.

* macOS: use structural tray menu anchor

---------

Co-authored-by: Brian Ernesto <bernesto@users.noreply.github.com>
Co-authored-by: ImLukeF <92253590+ImLukeF@users.noreply.github.com>
2026-03-18 11:29:11 +11:00
..
AgentEventStoreTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
AgentWorkspaceTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
AnyCodableEncodingTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
AppStateRemoteConfigTests.swift fix(ci): scope secrets scan to branch changes 2026-03-08 22:21:49 +02:00
AudioInputDeviceObserverTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
CLIInstallerTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
CameraCaptureServiceTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
CameraIPCTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
CanvasFileWatcherTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
CanvasIPCTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
CanvasWindowSmokeTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
ChannelsSettingsSmokeTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
CommandResolverTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
ConfigStoreTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
CoverageDumpTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
CritterIconRendererTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
CronJobEditorSmokeTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
CronModelsTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
DeepLinkAgentPolicyTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
DeviceModelCatalogTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
ExecAllowlistTests.swift fix: harden macos shell continuation parsing 2026-03-13 20:54:10 +00:00
ExecApprovalHelpersTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
ExecApprovalsGatewayPrompterTests.swift macOS: respect exec-approvals.json settings in gateway prompter (#13707) 2026-03-14 12:00:15 +11:00
ExecApprovalsSocketAuthTests.swift fix(macos): harden exec approval socket auth 2026-03-16 23:00:22 -07:00
ExecApprovalsSocketPathGuardTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
ExecApprovalsStoreRefactorTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
ExecHostRequestEvaluatorTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
ExecSkillBinTrustTests.swift fix: bind macOS skill trust to resolved paths 2026-03-13 21:00:59 +00:00
ExecSystemRunCommandValidatorTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
FileHandleLegacyAPIGuardTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
FileHandleSafeReadTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
GatewayAgentChannelTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
GatewayAutostartPolicyTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
GatewayChannelConfigureTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
GatewayChannelConnectTests.swift macOS/onboarding: prompt for remote gateway auth tokens (#43100) 2026-03-11 13:53:19 +02:00
GatewayChannelRequestTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
GatewayChannelShutdownTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
GatewayConnectionControlTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
GatewayDiscoveryHelpersTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
GatewayDiscoveryModelTests.swift fix(macos): improve tailscale gateway discovery (#40167) 2026-03-08 21:49:42 +02:00
GatewayDiscoverySelectionSupportTests.swift fix(macos): improve tailscale gateway discovery (#40167) 2026-03-08 21:49:42 +02:00
GatewayEndpointStoreTests.swift macos: add remote gateway token field for remote mode 2026-03-08 21:28:17 +02:00
GatewayEnvironmentTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
GatewayFrameDecodeTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
GatewayLaunchAgentManagerTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
GatewayProcessManagerTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
GatewayWebSocketTestSupport.swift macOS/onboarding: prompt for remote gateway auth tokens (#43100) 2026-03-11 13:53:19 +02:00
HealthDecodeTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
HealthStoreStateTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
HostEnvSanitizerTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
HoverHUDControllerTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
InstancesSettingsSmokeTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
InstancesStoreTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
LaunchAgentManagerTests.swift fix(macos): stop relaunching the app after quit when launch-at-login is enabled (#40213) 2026-03-17 20:59:56 +11:00
LogLocatorTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
LowCoverageHelperTests.swift fix(macos): block canvas symlink escapes 2026-03-16 23:56:35 -07:00
LowCoverageViewSmokeTests.swift fix: follow up #39321 and #38445 landings 2026-03-08 13:58:13 +00:00
MacGatewayChatTransportMappingTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
MacNodeBrowserProxyTests.swift fix(macos): use foundationValue when serializing browser proxy POST body (#43069) 2026-03-11 19:14:01 +08:00
MacNodeRuntimeTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
MasterDiscoveryMenuSmokeTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
MenuContentSmokeTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
MenuSessionsInjectorTests.swift fix(macos): show sessions after controls in tray menu (#38079) 2026-03-18 11:29:11 +11:00
ModelCatalogLoaderTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
NixModeStableSuiteTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
NodeManagerPathsTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
NodePairingApprovalPrompterTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
NodePairingReconcilePolicyTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
NodeServiceManagerTests.swift fix: update macOS node service to use current CLI command shape (closes #43171) (#46843) 2026-03-17 20:46:54 +11:00
OnboardingCoverageTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
OnboardingRemoteAuthPromptTests.swift fix: switch pairing setup codes to bootstrap tokens 2026-03-12 22:23:07 +00:00
OnboardingViewSmokeTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
OnboardingWizardStepViewTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
OpenClawConfigFileTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
PermissionManagerLocationTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
PermissionManagerTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
Placeholder.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
RemotePortTunnelTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
RuntimeLocatorTests.swift fix(macos): align minimum Node.js version with runtime guard (22.16.0) (#45640) 2026-03-14 13:43:21 +11:00
ScreenshotSizeTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
SemverTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
SessionDataTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
SessionMenuPreviewTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
SettingsViewSmokeTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
SkillsSettingsSmokeTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
TailscaleIntegrationSectionTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
TailscaleServeGatewayDiscoveryTests.swift fix(macos): improve tailscale gateway discovery (#40167) 2026-03-08 21:49:42 +02:00
TalkAudioPlayerTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
TalkModeConfigParsingTests.swift refactor: require canonical talk resolved payload 2026-03-08 16:22:48 +00:00
TalkModeRuntimeSpeechTests.swift fix: follow up #39321 and #38445 landings 2026-03-08 13:58:13 +00:00
TestFSHelpers.swift refactor(tests): dedupe swift gateway and chat fixtures 2026-03-02 09:39:45 +00:00
TestIsolation.swift refactor(tests): dedupe macos ipc smoke setup blocks 2026-03-02 09:55:46 +00:00
UtilitiesTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
VoicePushToTalkHotkeyTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
VoicePushToTalkTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
VoiceWakeForwarderTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
VoiceWakeGlobalSettingsSyncTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
VoiceWakeHelpersTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
VoiceWakeOverlayControllerTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
VoiceWakeOverlayTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
VoiceWakeOverlayViewSmokeTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
VoiceWakeRuntimeTests.swift fix(voicewake): avoid crash on foreign transcript ranges 2026-03-14 12:48:12 +11:00
VoiceWakeTestSupport.swift refactor(tests): dedupe swift gateway and chat fixtures 2026-03-02 09:39:45 +00:00
VoiceWakeTesterTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
WebChatMainSessionKeyTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
WebChatManagerTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
WebChatSwiftUISmokeTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
WideAreaGatewayDiscoveryTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
WindowPlacementTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00
WorkActivityStoreTests.swift fix(macos): clean swiftformat pass and sendable warning 2026-03-08 13:22:46 +00:00