System Settings > General > Login Items ("Allow in the Background")
listed magpie's launch agent as "Xipeng Guan" with a blank icon: a plain
LaunchAgent is attributed to the name on its program's signature unless
the plist names the app it belongs to. The launch agent now carries
AssociatedBundleIdentifiers with the bundle id read from the app's own
Info.plist (com.yetone.magpie for a release), Apple's supported way for
an app's legacy launch agent (macOS 13+; older systems ignore the key).
A program outside an .app names none. Refresh already rewrites an older
magpie's plist at start, so users who turned it on before get the key
without toggling; an Info.plist that fails to read never drops a key
written before.
SMAppService was not taken: it needs a plist inside the signed bundle and
a cgo/ObjC bridge, and changes how Enabled is read, a bigger move for a
display-name fix.
Run: TestLaunchAgentNamesItsApp fails on the old code (no
AssociatedBundleIdentifiers) and with the unread-Info.plist guard
removed; passes now, plutil -lint and plutil -extract read the key.
A plist written for /Applications/magpie.app into a sandbox HOME lints
OK and names com.yetone.magpie. go test -tags nogui ./internal/autostart,
gofmt -l, go vet, GOOS=linux/windows go vet -tags nogui pass.
Not tried: the Login Items pane itself with a real login item
(~/Library/LaunchAgents is off-limits here); the reporter confirms.