Skip to content

fix(macos): keep the parked macOS launcher out of Mission Control - #1114

Merged
Xoshbin merged 1 commit into
Xoshbin:mainfrom
mvanhorn:fix/690-macos-launcher-mission-control
Nov 22, 2026
Merged

Xoshbin merged 1 commit into
Xoshbin:mainfrom
mvanhorn:fix/690-macos-launcher-mission-control

Conversation

@mvanhorn

@mvanhorn mvanhorn commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

What changed

After dismissal, the launcher could flash when switching to an empty macOS desktop. It could also appear in that desktop’s Mission Control preview. The parked launcher panel could join every Space, but its collection behavior lacked the transient flag that excludes a window from Mission Control.

The panel now sets NSWindowCollectionBehaviorTransient alongside its existing flags for joining all Spaces and appearing alongside full-screen windows. The collection behavior test now checks all three flags.

Fixes #690

Affected areas

  • Launcher UI / UX (visuals, interactions, keyboard shortcuts, settings)
  • SDK / Extensions (asyar-sdk, extension runtime, IPC contracts, manifest)
  • Rust Backend / Platform (Tauri commands, search, storage, OS integration)
  • Docs / Tooling / Other (docs, CI, build scripts, locales)

Manual smoke test & Validation

  • I manually smoke-tested this in the running app (pnpm dev) and visually verified the fix/feature works.

Ran cargo test locally for the asyar change; it passed. Ran pnpm run check:design in a Linux container (localhost/osc-linux-node:22) for the asyar change; it passed. The tests passed with the asyar change applied, but no test was run with it reverted, because no test was named as covering the reported bug, so none is shown to catch this bug.

AI usage

  • AI tools helped produce this change.
  • I ran the asyar-contribution skill (.agents/skills/asyar-contribution/SKILL.md), followed it, and reviewed every generated line.

AI was used for assistance.

Boundaries

  • Zero-hardcoded-strings i18n policy respected (if UI strings were added/changed).
  • Third-party extension compatibility preserved (no breaking changes to published extension contracts without deprecation/boundary adapter).
  • Hot paths remain fast and unblocked (window reveal, keystroke search, and 120 FPS UI responsiveness).
  • pnpm check:ci (or the relevant inner-loop checks) passes locally.

Summary by CodeRabbit

  • Bug Fixes
    • macOS windows now appear correctly in transient spaces, alongside their existing support for all spaces and full-screen mode.

The panel now sets `NSWindowCollectionBehaviorTransient` alongside its
existing flags for joining all Spaces and appearing alongside
full-screen windows. The collection behavior test now checks all three
flags.

Fixes Xoshbin#690
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The macOS Spotlight collection-behavior mask now includes the transient bit. The related test checks that the returned mask includes this bit.

Changes

macOS Spotlight Collection Behavior

Layer / File(s) Summary
Update collection behavior mask
asyar-launcher/src-tauri/crates/asyar-platform/src/macos/window.rs
spotlight_collection_behavior_bits now includes the transient bit. The test asserts that the returned mask includes it.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: xoshbin

Merge Risk: Minimal · up to bb07d

This adds one window flag so the parked launcher stays out of Mission Control and Space-switch previews on macOS. The change is small and reversible, and no concrete defect was found. The PR description check currently fails and needs the contribution checklist completed. The fix has not been confirmed by a manual macOS check.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the macOS launcher fix and the goal of keeping it out of Mission Control. The change adds the transient collection-behavior bit to the parked launcher's window collection behavior and …
Linked Issues check Passed [#690] The issue asks that the macOS launcher stay hidden during Space switches and must not appear in Mission Control desktop previews unless invoked by its shortcut. The diff in asyar-platform/src/m…
Out of Scope Changes check Passed The whole-PR diff against the merge base touches one file, asyar-launcher/src-tauri/crates/asyar-platform/src/macos/window.rs, with +4/-1 lines. The changes add the transient collection-behavior bit w…
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the macOS launcher fix and the goal of keeping it out of Mission Control. The change adds the transient collection-behavior bit to the parked launcher's window collection behavior and updates the test to assert it. The title matches the main change in the changeset and the linked issue scope.

Full details: Linked Issues check

Explanation

[#690] The issue asks that the macOS launcher stay hidden during Space switches and must not appear in Mission Control desktop previews unless invoked by its shortcut. The diff in asyar-platform/src/macos/window.rs changes spotlight_collection_behavior_bits() from (1 << 0) | (1 << 8) to (1 << 0) | (1 << 3) | (1 << 8). Bit 1 << 3 is NSWindowCollectionBehaviorTransient, which excludes a window from Mission Control. The test spotlight_panel_collection_behavior_joins_all_spaces now asserts the transient bit. The code change matches the Mission Control requirement. The flash-on-empty-desktop symptom is addressed only by the author's stated mechanism. No runtime check was made, and the author reports no manual smoke test. The coding requirement is implemented; runtime behavior is not verified.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff against the merge base touches one file, asyar-launcher/src-tauri/crates/asyar-platform/src/macos/window.rs, with +4/-1 lines. The changes add the transient collection-behavior bit with a comment, and add the matching assertion to the existing collection-behavior test. Both changes directly support issue #690. No unrelated changes were found in the diff.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
Fix failing CI checks

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Xoshbin/asyar
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: cbc7317
  • Layers: Repository YAML
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: e048652c-35a7-4b0b-b1be-ba85c0d86bdb
Commits

Reviewing files that changed from the base of the PR and between cbc7317 and bb07d46.

Files selected for processing: 1

  • asyar-launcher/src-tauri/crates/asyar-platform/src/macos/window.rs

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@Xoshbin
Xoshbin merged commit 45ed944 into Xoshbin:main Nov 22, 2026
13 of 16 checks passed
@mvanhorn

Copy link
Copy Markdown
Contributor Author

@Xoshbin thanks for taking this one. With the transient flag on the parked panel, the launcher should stay out of Mission Control and stop flashing on empty desktops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Launcher flashes and forces visibility on empty macOS desktops

2 participants