Skip to content

Commit b8a6ea1

Browse files
authored
refactor(macos): remove the custom menu bar hover card (#118116)
* refactor(macos): remove the custom menu bar hover card The status item showed two hover affordances at once: the native AppKit tooltip and a custom SwiftUI panel rendering an "Idle / No recent activity" card. Keep the native tooltip and drop the custom HUD. The HUD was the only consumer of the status item's hover tracking, so the NSTrackingArea and onHoverChanged plumbing in StatusItemMouseRouter goes with it; click routing is unchanged. WorkActivityStore.lastToolLabel had no other reader either. * chore(i18n): refresh native i18n inventory after hover card removal Deleting HoverHUD.swift shifted the MenuBar.swift line numbers that apps/.i18n/native-source.json records. Regenerated with `pnpm native:i18n:baseline`; only line numbers change, no strings added or removed. * refactor(macos): drop the orphaned anchored chat panel Removing the hover card left WebChatManager.togglePanel() without a caller, and it was the only thing that created the menu-bar-anchored chat popover. Delete that presentation path: togglePanel/panelHidden, the panel controller state, WebChatPresentation, WebChatPanel, presentAnchored and its dismiss monitor, and WindowPlacement.anchoredBelowFrame. Chat is unaffected as a window - WebChatManager.show() still backs the Dock menu, --chat and deep links. The status item highlight that tracked chat window visibility is preserved, renamed to onChatWindowVisibilityChanged now that no panel exists to confuse it with. Periphery reports no unused code. * chore: drop CHANGELOG edit from this PR AGENTS.md: CHANGELOG.md is release-only and release generation derives it from merged PRs. Release-note context lives in the PR body instead. * chore: restore CHANGELOG to the branch base Correct the previous commit, which restored CHANGELOG.md from current origin/main and so pulled in an unrelated entry added after this branch forked. Reset to the merge-base content: this PR now touches no changelog.
1 parent d9c9ad8 commit b8a6ea1

10 files changed

Lines changed: 128 additions & 781 deletions

‎apps/.i18n/native-source.json‎

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34355,79 +34355,79 @@
3435534355
},
3435634356
{
3435734357
"kind": "ui-call",
34358-
"line": 108,
34358+
"line": 102,
3435934359
"path": "apps/macos/Sources/OpenClaw/MenuBar.swift",
3436034360
"source": "New Gateway Window…",
3436134361
"surface": "apple",
3436234362
"id": "native.apple.130664b1dd61cbbf"
3436334363
},
3436434364
{
3436534365
"kind": "ui-call",
34366-
"line": 113,
34366+
"line": 107,
3436734367
"path": "apps/macos/Sources/OpenClaw/MenuBar.swift",
3436834368
"source": "New Thread",
3436934369
"surface": "apple",
3437034370
"id": "native.apple.13f96467014cf344"
3437134371
},
3437234372
{
3437334373
"kind": "ui-call",
34374-
"line": 119,
34374+
"line": 113,
3437534375
"path": "apps/macos/Sources/OpenClaw/MenuBar.swift",
3437634376
"source": "Settings...",
3437734377
"surface": "apple",
3437834378
"id": "native.apple.185a1b27c9859cc0"
3437934379
},
3438034380
{
3438134381
"kind": "ui-call",
34382-
"line": 127,
34382+
"line": 121,
3438334383
"path": "apps/macos/Sources/OpenClaw/MenuBar.swift",
3438434384
"source": "Back",
3438534385
"surface": "apple",
3438634386
"id": "native.apple.f6048387f9b99c8e"
3438734387
},
3438834388
{
3438934389
"kind": "ui-call",
34390-
"line": 132,
34390+
"line": 126,
3439134391
"path": "apps/macos/Sources/OpenClaw/MenuBar.swift",
3439234392
"source": "Forward",
3439334393
"surface": "apple",
3439434394
"id": "native.apple.c19b0989064c0020"
3439534395
},
3439634396
{
3439734397
"kind": "ui-call",
34398-
"line": 139,
34398+
"line": 133,
3439934399
"path": "apps/macos/Sources/OpenClaw/MenuBar.swift",
3440034400
"source": "Command Palette…",
3440134401
"surface": "apple",
3440234402
"id": "native.apple.ef646bce7927b2f0"
3440334403
},
3440434404
{
3440534405
"kind": "conditional-branch",
34406-
"line": 157,
34406+
"line": 147,
3440734407
"path": "apps/macos/Sources/OpenClaw/MenuBar.swift",
3440834408
"source": "OpenClaw - Voice Wake live meter active",
3440934409
"surface": "apple",
3441034410
"id": "native.apple.13a7356f48278757"
3441134411
},
3441234412
{
3441334413
"kind": "conditional-branch",
34414-
"line": 158,
34414+
"line": 148,
3441534415
"path": "apps/macos/Sources/OpenClaw/MenuBar.swift",
3441634416
"source": "OpenClaw",
3441734417
"surface": "apple",
3441834418
"id": "native.apple.fae2cf18519da0d5"
3441934419
},
3442034420
{
3442134421
"kind": "conditional-branch",
34422-
"line": 455,
34422+
"line": 405,
3442334423
"path": "apps/macos/Sources/OpenClaw/MenuBar.swift",
3442434424
"source": "Close Canvas",
3442534425
"surface": "apple",
3442634426
"id": "native.apple.ef59188264be95d4"
3442734427
},
3442834428
{
3442934429
"kind": "conditional-branch",
34430-
"line": 455,
34430+
"line": 405,
3443134431
"path": "apps/macos/Sources/OpenClaw/MenuBar.swift",
3443234432
"source": "Open Canvas",
3443334433
"surface": "apple",
@@ -39691,119 +39691,119 @@
3969139691
},
3969239692
{
3969339693
"kind": "ui-named-argument",
39694-
"line": 201,
39694+
"line": 179,
3969539695
"path": "apps/macos/Sources/OpenClaw/WebChatManager.swift",
3969639696
"source": "Could Not Open Gateway Window",
3969739697
"surface": "apple",
3969839698
"id": "native.apple.7dd4d4d2fc36ffce"
3969939699
},
3970039700
{
3970139701
"kind": "ui-localized-call",
39702-
"line": 958,
39702+
"line": 934,
3970339703
"path": "apps/macos/Sources/OpenClaw/WebChatSwiftUI.swift",
3970439704
"source": "Talk mode uses the primary Gateway window",
3970539705
"surface": "apple",
3970639706
"id": "native.apple.93ad62dac611bdcd"
3970739707
},
3970839708
{
3970939709
"kind": "ui-localized-call",
39710-
"line": 960,
39710+
"line": 936,
3971139711
"path": "apps/macos/Sources/OpenClaw/WebChatSwiftUI.swift",
3971239712
"source": "Talk mode off",
3971339713
"surface": "apple",
3971439714
"id": "native.apple.282d11786f2f4c4b"
3971539715
},
3971639716
{
3971739717
"kind": "ui-localized-call",
39718-
"line": 962,
39718+
"line": 938,
3971939719
"path": "apps/macos/Sources/OpenClaw/WebChatSwiftUI.swift",
3972039720
"source": "Talk mode paused",
3972139721
"surface": "apple",
3972239722
"id": "native.apple.133d737c2b59e66d"
3972339723
},
3972439724
{
3972539725
"kind": "ui-localized-call",
39726-
"line": 965,
39726+
"line": 941,
3972739727
"path": "apps/macos/Sources/OpenClaw/WebChatSwiftUI.swift",
3972839728
"source": "Talk mode ready",
3972939729
"surface": "apple",
3973039730
"id": "native.apple.c11a8fc78a7b2cf8"
3973139731
},
3973239732
{
3973339733
"kind": "ui-localized-call",
39734-
"line": 966,
39734+
"line": 942,
3973539735
"path": "apps/macos/Sources/OpenClaw/WebChatSwiftUI.swift",
3973639736
"source": "Listening",
3973739737
"surface": "apple",
3973839738
"id": "native.apple.62a4d588f4259d54"
3973939739
},
3974039740
{
3974139741
"kind": "ui-localized-call",
39742-
"line": 967,
39742+
"line": 943,
3974339743
"path": "apps/macos/Sources/OpenClaw/WebChatSwiftUI.swift",
3974439744
"source": "Thinking",
3974539745
"surface": "apple",
3974639746
"id": "native.apple.d602e6304c3ef523"
3974739747
},
3974839748
{
3974939749
"kind": "ui-localized-call",
39750-
"line": 968,
39750+
"line": 944,
3975139751
"path": "apps/macos/Sources/OpenClaw/WebChatSwiftUI.swift",
3975239752
"source": "Speaking",
3975339753
"surface": "apple",
3975439754
"id": "native.apple.2328556b7443e453"
3975539755
},
3975639756
{
3975739757
"kind": "ui-localized-call",
39758-
"line": 972,
39758+
"line": 948,
3975939759
"path": "apps/macos/Sources/OpenClaw/WebChatSwiftUI.swift",
3976039760
"source": "What would you like to work on?",
3976139761
"surface": "apple",
3976239762
"id": "native.apple.b42b8777035baf64"
3976339763
},
3976439764
{
3976539765
"kind": "ui-localized-call",
39766-
"line": 976,
39766+
"line": 952,
3976739767
"path": "apps/macos/Sources/OpenClaw/WebChatSwiftUI.swift",
3976839768
"source": "Check OpenClaw status",
3976939769
"surface": "apple",
3977039770
"id": "native.apple.448dfe21a7f3a883"
3977139771
},
3977239772
{
3977339773
"kind": "ui-localized-call",
39774-
"line": 977,
39774+
"line": 953,
3977539775
"path": "apps/macos/Sources/OpenClaw/WebChatSwiftUI.swift",
3977639776
"source": "Summarize the current OpenClaw status and tell me what needs attention.",
3977739777
"surface": "apple",
3977839778
"id": "native.apple.00f4977e0123ce7a"
3977939779
},
3978039780
{
3978139781
"kind": "ui-localized-call",
39782-
"line": 980,
39782+
"line": 956,
3978339783
"path": "apps/macos/Sources/OpenClaw/WebChatSwiftUI.swift",
3978439784
"source": "What can you do?",
3978539785
"surface": "apple",
3978639786
"id": "native.apple.9c1a9be47ac92727"
3978739787
},
3978839788
{
3978939789
"kind": "ui-localized-call",
39790-
"line": 981,
39790+
"line": 957,
3979139791
"path": "apps/macos/Sources/OpenClaw/WebChatSwiftUI.swift",
3979239792
"source": "Show me what you can help with on this Mac right now.",
3979339793
"surface": "apple",
3979439794
"id": "native.apple.5101b6cab56c0faf"
3979539795
},
3979639796
{
3979739797
"kind": "ui-localized-call",
39798-
"line": 984,
39798+
"line": 960,
3979939799
"path": "apps/macos/Sources/OpenClaw/WebChatSwiftUI.swift",
3980039800
"source": "Catch me up",
3980139801
"surface": "apple",
3980239802
"id": "native.apple.070fa91f6622e6cf"
3980339803
},
3980439804
{
3980539805
"kind": "ui-localized-call",
39806-
"line": 985,
39806+
"line": 961,
3980739807
"path": "apps/macos/Sources/OpenClaw/WebChatSwiftUI.swift",
3980839808
"source": "Summarize what happened in my threads since yesterday.",
3980939809
"surface": "apple",

0 commit comments

Comments
 (0)