fix: keep menu bar app alive on launch#50
Conversation
|
Reviewed the diff end-to-end. Direction is right but a couple things to address before merge: Diff (single file,
Remaining concerns:
Code itself is correct; the gating items are: deferred auto-update timer + version bump + ready-for-review. |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Comment |
Summary
applicationDidFinishLaunching; users can still check for updates manually from the menu.Root Cause
The downloaded menu bar app could start, create its status item, launch the local dashboard server, and then exit shortly afterward. Once the
LSUIElementhost process exited, Control Center removed the menu bar item, making the app appear to flash and disappear.The startup path also triggered silent update checks, which can enter the install/relaunch path immediately after launch. That is too aggressive for a menu bar host process because it can terminate the visible app before users can interact with it.
Validation
xcodebuild -scheme TokenTrackerBar -configuration Release -derivedDataPath build/DerivedData CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= build/Applications/TokenTrackerBar.app.TokenTrackerBarwas still running after the previous failure window.http://127.0.0.1:7680/functions/tokentracker-user-statusreturned200.