Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

fix(macos): bring the menu bar Settings window to the front

victorcescf48e98846412
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 55cc2895..2f8b303f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Fixed
+- Fixed the macOS menu bar companion's **Settings…** item opening the
+ Settings window behind the frontmost app, so clicking it appeared to do
+ nothing. The item now activates the app before opening the window, as
+ **Show Status…** already did. (#1161)
+
## [2.6.2] - 2026-10-08
### Fixed
diff --git a/companions/ai-memory-macos/Sources/AIMemoryMenu/MenuBarView.swift b/companions/ai-memory-macos/Sources/AIMemoryMenu/MenuBarView.swift
index b3fca585..9ce5fc5b 100644
--- a/companions/ai-memory-macos/Sources/AIMemoryMenu/MenuBarView.swift
+++ b/companions/ai-memory-macos/Sources/AIMemoryMenu/MenuBarView.swift
@@ -5,6 +5,7 @@ import AIMemoryMenuCore
struct MenuBarView: View {
@Environment(AppModel.self) private var model
@Environment(\.openWindow) private var openWindow
+ @Environment(\.openSettings) private var openSettings
var body: some View {
Text(model.headlineVersion)
@@ -57,8 +58,11 @@ struct MenuBarView: View {
model.openLogs()
}
Divider()
- SettingsLink {
- Text("Settings…")
+ // An accessory app is never frontmost, so a bare SettingsLink opens the
+ // window behind every other app. Activate first, as "Show Status…" does.
+ Button("Settings…") {
+ NSApp.activate(ignoringOtherApps: true)
+ openSettings()
}
Button("Quit") {
NSApp.terminate(nil)