Repository navigation
fix: hand off native macOS reopen requests during confirmed quit - #567
Conversation
Signed-off-by: Ci Nie <codezzzsleep@gmail.com>
Signed-off-by: Ci Nie <codezzzsleep@gmail.com>
Signed-off-by: Ci Nie <codezzzsleep@gmail.com>
Signed-off-by: Ci Nie <codezzzsleep@gmail.com>
|
CI and native acceptance follow-up for head This PR stays draft pending native acceptance. The source HTTP job and the synthetic native-event probe do not establish Finder/Dock behavior. Target-platform acceptance on the PR's current-main merge needs an isolated profile and a real execution still shutting down after quit confirmation:
Record macOS and Electron versions, the tested source/merge commit, old and new process IDs, and the observed file outcomes. A Linux host is the only available local execution environment in this session, so native Mac and running-model acceptance remain outstanding. Update: the author has now pushed a source-identical signed-off CI retry commit, |
Signed-off-by: Ci Nie <codezzzsleep@gmail.com>
Signed-off-by: Ci Nie <codezzzsleep@gmail.com>
Signed-off-by: Ci Nie <codezzzsleep@gmail.com>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
During a confirmed quit, macOS Finder file requests and Dock activation still reach the exiting process through
open-fileandactivate. The previous handlers queue files or reveal windows in that process, so the application can exit with the new request lost.Route both paths through the existing
quit-relaunch.deferLaunchstate. Requests contribute to one bounded, deduplicated handoff at the finalwill-quitboundary; a later activation retains earlier files. Cold startup, ordinary running requests and declining the exit confirmation keep their existing behavior.Fixes #563.
Validation uses the current-main merge: main
3134d8a6, PR head1739592f, mergec0da08cb, treeda8c1e5d.1739592f, including Linux/Windows clients, macOS HTTP startup and Runner TLS/cleanup, backend acceptance and PostgreSQL migration/backup/restore.c0da08cb; observer wrappers call the original methods without synthetic app events or artificial cleanup delays. Packaging uses the unchanged committed npm lockfile and public beforePack pipeline, with an ad-hoc signature verified bycodesign.33375schedules one relaunch to PID47284; exactly the first 20 files are forwarded, claimed and acknowledged once. Earlier startup files are not replayed, and the saved account, encrypted model reference, Hub selection and workspace remain usable.Native evidence is available in the fork Actions logs: detailed cancellation, four completed native cases, and complete twenty-file acceptance. The diagnostic test scaffolding is pinned at 70ff3ae5; the earlier four-case source
011b0cb9has identical product files.Evidence limits: the four-case worker reached every assertion and printed each success, then timed out in its unfinished budget case before detailed aggregate logging; the remaining budget was completed independently on identical product code with full traces and screenshots. The final fork Mac job completed all native setup/acceptance stages, then failed an unrelated workflow-consistency assertion because its preserved older workflow tree lacks
client-packages.yml; that full fork workflow is not a passing CI run. The current upstream PR has 12 successful checks. Developer ID notarization, official signed-release distribution and Intel Mac were not tested.Compatibility: the effective current-main product diff adds only the native reopen routing. Persisted fields, version-1 file envelopes, authentication hooks, dependencies, limits, startup/profile arguments and cleanup policy retain their existing formats and behavior. Normal source/packaged requests keep authorization and private-snapshot handling; native relaunch acceptance verifies continued use of the existing saved profile and model configuration.
The native arm64 source acceptance is complete and this PR is ready for maintainer review. No upstream merge or production deployment is claimed.