daemon install: LaunchAgent points at the versioned node binary, so every Node upgrade adds a new background item
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 48/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- node.js, typescript
- Domaine
- devtools
Piste de recherche
Start with dist/ports/service-manager.js at plistFor, then read daemon/service-main.js and cli/index.js to trace how nodePath reaches the LaunchAgent. Compare the stable launcher and explicit command suggestions against the reported upgrade behavior. Done when the installed agent keeps a stable program path across Node upgrades and the worker uses the current Node; the payload names no tests.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
simlock 0.9.0, macOS 27.2, Node from a version manager (mise; nvm/fnm/asdf behave the same)
simlock daemon install writes com.callstack.simlock.worker.plist with process.execPath and a script under that Node version's global node_modules:
<key>ProgramArguments</key>
<array>
<string>~/.local/share/mise/installs/node/24.22.3/bin/node</string>
<string>~/.local/share/mise/installs/node/24.22.3/lib/node_modules/simlock/dist/daemon/main.js</string>
</array>
(from dist/ports/service-manager.js, plistFor, with nodePath: process.execPath in daemon/service-main.js and cli/index.js)
Why it matters on an unattended Mac: macOS Background Task Management tracks a LaunchAgent by its program path. When a Node upgrade (and the reinstall that follows) rewrites the plist with a new path, macOS registers it as a new item and posts a persistent "Background Items Added" alert. We confirmed that rewriting a plist under the same label with a different program path posts a new alert. On a shared agent Mac nobody is at the screen, so these alerts pile up. Until the reinstall, the worker also keeps running on the old Node.
Suggestion: make the program path stable, for example:
- install a small launcher at a fixed path (for instance
$SIMLOCK_HOME/bin/simlock-worker, a#!/bin/shthat execs the current node andmain.js) and pointProgramArgumentsat it; a rewritten launcher doesn't change the registered item; or - accept an explicit command (
simlock daemon install --node /path/to/stable/node, or an env var) so users can point it at a version-manager shim or a stable symlink.
Happy to test a fix.
- Langage dominant
- TypeScript
- Étoiles
- 730
- Forks
- 44
- Merge moyen
- 15 h 28 min
- PR mergées (30 j)
- 387
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de callstackincubator/simlock
-
bug:new
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
callstackincubator/simlock#2088 ·
Les mainteneurs répondent en général sous 1 jour
-
bug:new
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
callstackincubator/simlock#2080 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
task:ready
Difficulté 4/5 3-5 jours Accessibilité débutants 52/100
callstackincubator/simlock#2079 ·
Les mainteneurs répondent en général sous 1 jour
-
platform:ios task:ready
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 18/100
callstackincubator/simlock#2078 ·
Les mainteneurs répondent en général sous 1 jour
-
iOS copy: keep the app database at the copy's own UDIDPeut-être pris @V3RON l’a pris aujourd’hui. Ouverteplatform:ios task:ready
callstackincubator/simlock#2077 · 2 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de callstackincubator/simlock
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
earendil-works/gondolin#222 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
endora-commerce/endora-commerce#2203 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement priority:medium ready-for-human
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
wondermoney/wondermoney#1079 ·
Les mainteneurs répondent en général sous 1 jour