Fix macOS permissions and stale login agent #20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/task-4e2dc269-macos-login-permissions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Restore upgrade-safe macOS login launching so stale v0.1.3-v0.1.4 LaunchAgents no longer fail after upgrading and the signed app is consistently opened through Launch Services.
Task
Task: #task-4e2dc269
Changes
KvshareMacLaunchercompatibility executable that opens the installed app through Launch Services.Testing
make checkmake pre-prChecklist
./scripts/pre-pr.shpassesPR review
Summary
The compatibility launcher, stable LaunchAgent path, signing validation, package assertions, version bump, and recovery documentation are aligned with the bug. CI passed for both Rust and Swift. The required installed-upgrade and reboot evidence is still missing, so the PR is not ready to merge.
Acceptance criteria
KvshareMacLauncherpath by packaging a signed native compatibility executable that opens the current app through Launch Services.docs/MACOS_APP.mddocuments recovery for affected v0.1.5 users.Blocking issues
Warnings
Verdict
Changes requested — implementation and CI look sound, but three acceptance criteria remain partial or unverified until the real upgrade and reboot checks are recorded.
Follow-up fix and live verification
The live failure exposed a second launch problem: executing
Contents/MacOS/KvshareMacdirectly from launchd gave the process anosservice<com.caradoc.kvshare.mac>identity. The updated LaunchAgent now runs/usr/bin/open -W /Applications/KvshareMac.app, which produces the expectedapp<application.com.caradoc.kvshare.mac...>identity.System Settings also contained three stale
KvshareMacLocal Network records. Cycling every matching entry changed the live Network.framework path fromLocal network prohibitedtosatisfied, established TCP toerik-dev:24800, and reported connection statereadywithout rebooting.Added documentation for both recovery paths and a release check that requires the packaged LaunchAgent to use Launch Services.
make pre-prand persistent-identity package verification pass locally.Installed upgrade verification
Installed the persistently signed v0.1.6 test package over the affected v0.1.5 installation.
Verified:
3XP3VF6Y5V./usr/bin/open -W /Applications/KvshareMac.appand remains running without exit code 126.app<application.com.caradoc.kvshare.mac...>.erik-dev:24800becamesatisfied, TCP connected, and Network.framework reportedready.The remaining acceptance evidence is two physical reboot cycles confirming login startup and privacy grants persist.
PR review
Summary
The updated PR safely supports obsolete login configurations, launches the current app through Launch Services, validates the compatibility paths during packaging, and documents recovery. The signed v0.1.6 package was installed over the affected v0.1.5 setup and connected successfully. CI passed.
Acceptance criteria
KvshareMacLaunchercompatibility executable preserves copied v0.1.3-v0.1.4 LaunchAgent paths, while the current LaunchAgent opens the app through Launch Services.erik-dev:24800.docs/MACOS_APP.mddocuments v0.1.5 recovery, application-identity verification, and duplicate Local Network record recovery.Blocking issues
Warnings
Verdict
Approved — all current acceptance criteria have direct implementation and verification evidence.