Repository navigation
feat: pinned sections beta (macOS 27) and legacy recovery fixes (#366) - #473
Merged
Merged
Conversation
This was referenced Nov 15, 2026
macOS puts a new or relaunched icon far left, which is the hidden side, so apps drifted into the hidden section after every restart (#334, #107, #366). With "Pinned sections (beta)" on (the default on the macOS 27 direct build), a per-app section table decides what is shown. A read only edits it when an app's position changed since the last read and the app did not start meanwhile (a ⌘-drag). Apps that start with no entry are visible. The table starts from the v1.11.2 last-read memory. Reset all to visible is in Preferences. With the beta off, sections come from positions as in v1.11.2.
With pinned sections on, Preferences lists every app the table knows, with its app icon (no screen capture) and a section popup that applies at once. An app pinned always-hidden stays hidden on an expanded bar, also without the always-hidden separator (#224 on 27); Option-click shows it until the next collapse, which reads the bar again so ⌘-drags made meanwhile count. NSWorkspace does not post launches of agent (LSUIElement) apps, and most menu-bar apps are agents, so their relaunches were not seen. With the beta on, agent starts and quits now come from runningApplications.
On macOS 26 and earlier the always-hidden section stayed hidden only while the stored Option-click state said so, and enabling the section stored "shown", so its icons appeared on every expand (#224). Every collapse now hides the section again; Option-click shows it until the next collapse. "Show Everything" in the arrow's right-click menu expands the bar with the section shown, to recover icons lost there (#242). Nothing changes on 27. Also documents the pinned sections beta in MANUAL and CHANGELOG, and the hidden-items menu as a follow-up in the implementation notes.
The delta from the decision brief: decisions, a finding about agent-app launches, proof per phase, the hidden-items menu follow-up and open questions. Force-added past the ignored tooling layer so it is not lost like SPEC-003.
NSWorkspace does not post launches of apps without a Dock icon, which most menu-bar apps are, so the 1.11.2 handling for apps that start while the bar is collapsed (#446) missed them. Agent starts and quits are now reported whether or not the pinned sections beta is on.
Moves the pinned sections (beta) UI into the redesigned Settings window. The Menu Bar Apps tab lists each app with its icon, its name and a section popup in the grouped style, then "Reset all to visible"; with the beta off it says so and offers Turn On. The "Pinned sections (beta)" switch is in Advanced. The beta keys join the Settings pref-key test and the App Store settings import whitelist, and -settingsSnapshotDir draws the tab on, off and empty from fixed data.
tieubao
force-pushed
the
feat/pinned-sections
branch
from
November 15, 2026 16:10
ced5d9e to
b0a283d
Compare
Run from /Applications on macOS 27.2 with a helper status-item app: a pinned app stays shown or hidden after a relaunch, measured in screenshot pixels, and the same relaunch drifts to hidden with the beta off. Crops of the menu bar for each case sit next to the notes.
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.
Implements the #366 decision (brief: #472): option B "pinned sections" as a beta on the macOS 27 direct build, plus option C's legacy patches.
macOS 27 direct (beta, on by default; Preferences checkbox "Pinned sections (beta)")
runningApplications, with the beta on or off (own commit).macOS 26 and earlier (legacy engine, also the App Store build)
Follow-ups (not built): the hidden-items menu (thin A); a per-app ignore-drags lock for apps that recreate their icon without relaunching. Decisions, open questions and per-phase proof:
docs/implementation-notes/pinned-sections.md.bash scripts/test.sh-settingsSnapshotDir: https://claude.ai/code/artifact/bc66e7cc-98c1-40e1-80c5-fcbaf3378544On screen (macOS 27.2, Debug-Direct
b0a283dand a helper app, both in /Applications; magenta square = the helper's icon)macOS kept the helper's slot right of the arrow across relaunches, so the debug boundary, moved just right of the helper after the relaunch, stands in for macOS re-placing it on the hidden side (same for both beta runs). Pixel counts per step are in
docs/implementation-notes/pinned-sections.md.