Skip to content

feat(launch): support quiet offline relaunch and settings reopen - #170

Merged
wflixu merged 1 commit into
wflixu:devfrom
SonneFish:codex/pr166-launch
Nov 2, 2026
Merged

wflixu merged 1 commit into
wflixu:devfrom
SonneFish:codex/pr166-launch

Conversation

@SonneFish

@SonneFish SonneFish commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Keep Copy Path available locally in the Finder extension when the host is offline, while disabling actions that require the host. Make the offline hint clickable to relaunch the host quietly. Manual launches and reopens request the settings window; automatic scene opening and window restoration are suppressed. Distinguish hint-triggered launches using an environment flag and an App Group marker.

This is an independent part of #166, split at the maintainer’s request and targeting dev.

Acceptance criteria

  • Copy Path executes inside the extension without requiring the host. Other file operations continue through the host's authorization and confirmation flows.
  • Clicking the offline hint launches without document URLs, sets activates = false, and writes the quiet-launch marker into the authorized App Group shared with the configuration store.
  • Manual launch/reopen handling requests settings, subject to the timing limitations below. Hint-triggered launches stay quiet, and SwiftUI scene APIs suppress automatic opening and restoration.
  • The shared App Group identifier is consistent with the upstream configuration and entitlements.

Validation

  • Xcode 27 build-for-testing: the app, Finder extension, and test targets build independently (arm64, code signing disabled).
  • All 62 existing tests pass in the temporary SwiftPM library test host. Launch-source detection and Finder/LaunchServices behavior still require testing with the signed app.
  • The combined branches build successfully; all 68 tests in 12 suites pass in the temporary library test host.
  • git diff --check passes. Fork-specific signing, bundle identifiers, App Groups, and packaging scripts are excluded.
  • GitHub Actions builds and tests complete for this branch: run 41402821446 is action_required, awaiting maintainer approval via Approve and run; tests have not executed.
  • Verify offline Copy Path, quiet relaunch, manual cold launch/reopen, reopening settings with the menu bar icon hidden, clicking the offline hint during shutdown, and actual login launches.

Risks and limitations

Login launch detection still uses “login item enabled and system uptime below 180 seconds,” and the hint marker suppresses settings for five seconds. These heuristics can misclassify a later login, an early manual launch, or a manual reopen immediately after hint-triggered startup. The notification subscription with a hidden menu bar icon and relaunch during shutdown also remain to be validated. This PR preserves the current strategy rather than redesigning it.

The regular local Xcode test host exited before executing tests. The temporary SwiftPM library host compiles the same production sources, excluding the app entry point; its results do not replace end-to-end testing of the signed app.

Related PRs

Split from #166 at the maintainer's suggestion:

Each PR targets dev and builds independently. Combining them in the order above was verified to merge without conflicts.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants