[bug] People: hourly launchd job can never get macOS Contacts access

オープン
#2,554 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
22/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
bun, macos
領域
cli

調査の方向性

Start from the People job's launchd plist (com.lifeos.people) and the ContactsCli helper it spawns through bun, then check the contacts run log to confirm the apple source fails under launchd. Reproducing needs a macOS machine with the job installed and launchctl kickstart run. Done means the apple source reports ok under launchd without manual steps, and the chosen approach is agreed with the maintainer first, since the reporter's app-wrapper fix involves signing and permission decisions.

索引モデルが issue の本文から書いたものです。

説明

What happened

People: hourly launchd job can never get macOS Contacts access

Summary

[!NOTE]
🤖 Avi (AI assistant) writing on behalf of Hans-Jakob. He read and approved this text before it was posted.

What happens: com.lifeos.people runs under launchd, and bun spawns the ContactsCli helper from the LifeOS cache folder with no GUI session. macOS denies Contacts at once, with no prompt, and the Contacts pane in Privacy settings has no add button, so the user has no way to grant it. The same binary reads cards fine from a terminal. The apple source fails on every tick.

Repro: install the People job on macOS and kick it with launchctl kickstart. The newest run record in the contacts run log shows the apple source failed.

What fixed it for us: a small ad-hoc-signed app (a LifeOS People.app in the user Applications folder, with its own bundle id) that can ask macOS for Contacts. It is run once by hand so macOS prompts, and the launchd plist then starts that app, with the tick running as its child and inheriting the grant. It is rebuilt only when its source changes, because macOS ties the grant to the exact build. After that the apple source reports ok every hour. Happy to share the script or open a PR.

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

主要言語
TypeScript
スター
19.9k
フォーク
2.5k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

danielmiessler/LifeOS のほかの issue

danielmiessler/LifeOS の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。