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

Abierto
#2,554 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 5 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
22/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
bun, macos
Área
cli

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
19.9k
Forks
2.5k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de danielmiessler/LifeOS

Todos los issues de danielmiessler/LifeOS

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.