Windows: tryExec probes binaries with `command -v`, so every binary check false-negatives (DetectEnv reports bun/git absent; LinkUser silently skips git init)
Los mantenedores suelen responder en 5 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- bun, typescript
- Área
- operating-systems, tooling
Línea de trabajo
Empieza por skills/LifeOS/Tools/InstallEngine.ts, especialmente tryExec, detectTool, detectHarness e initLocalRepo, y luego ejecuta la prueba detectTool proporcionada en Windows. Sustituye la detección de binarios exclusiva de POSIX por una búsqueda segura para todas las plataformas, conservando los comandos de versión, y verifica DetectEnv, la detección del harness y la inicialización del repositorio mediante LinkUser. La tarea está completa cuando se detectan los binarios git, bun y del harness instalados en Windows, se ejecuta git init cuando Git está disponible y el comportamiento existente en sistemas distintos de Windows sigue funcionando.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Version
LifeOS 8.761.0 · attestation: unattested (could not extract v8.761.0: tar (child): Cannot connect to C: resolve failed
gzip: stdin: unexpected end of file
tar: Child returned status 128
tar: Error is not recoverable: exiting now)
What is broken
On Windows every binary-presence probe in the install tools returns a false negative, because tryExec hands its argument to execSync with no shell override: Node then spawns %ComSpec% (cmd.exe), where command -v is not a command, so the call throws and the helper returns null. Three call sites read that as "the binary is not installed". detectTool backs the bun and git fields of DetectEnv and the environment block of Report.ts collect, both of which report the tools absent on a machine where they run normally. detectHarness's hasBin can never match a harness binary, so harness confidence is pinned at assumed even when the claude CLI is on PATH, and Setup step 1 asks the operator to confirm a harness the code could have proven. initLocalRepo takes its git-missing branch, so LinkUser skips git init on both the USER tree and the config root and records "reason": "git not found on PATH". That last one is the costly symptom: the boundary symlinks are established and the install reports success, so a Windows install silently ends up with no local history on the principal's personal tree, which is the thing that step exists to provide.
Where (file:line)
skills/LifeOS/Tools/InstallEngine.ts:85 (tryExec); call sites :113 detectTool, :137 detectHarness hasBin, :1070 initLocalRepo
Repro on a clean tree
# Windows 11, git-bash shell. git and bun are both installed and resolve on PATH.
git clone --depth 1 https://github.com/danielmiessler/LifeOS # HEAD 94bd8f2
T="$PWD/LifeOS/LifeOS"
# p.ts calls the SHIPPED exported detectTool and prints no filesystem paths:
# const root = process.argv[2];
# const { detectTool } = await import(`${root}/Tools/InstallEngine.ts`);
# for (const [bin, v] of [["git","git --version"], ["bun","bun --version"]])
# console.log(bin, detectTool(bin, v).installed, !!Bun.which(bin));
bun p.ts "$T"
# Seen: git: detectTool says installed=false | resolves on PATH=true
# bun: detectTool says installed=false | resolves on PATH=true
# Expected: installed=true for both
# The same cause, observed through the shipped tools on a real install:
bun Tools/DetectEnv.ts
# "bun": { "installed": false } <- bun is running this very script
# "git": { "installed": false }
# "harness": { "name": "claude-code", "confidence": "assumed" } <- claude IS on PATH
bun Tools/InstallAll.ts --yes --json
# LinkUser "repo" -> { "action": "skipped", "reason": "git not found on PATH" }
# "configRepo" -> { "action": "skipped", "reason": "git not found on PATH" }
# ...while `git --version` in the same shell prints git version 2.56.1.windows.1
Negative control
Probe: bun C:/lifeos-repro/probes/p-commandv.ts C:/lifeos-repro/upstream/LifeOS · exit 1 · captured 2026-11-29T01:31:58.967Z
Red looks like: RED: shipped detectTool reports a binary absent while it is installed and on PATH
git: detectTool says installed=false | resolves on PATH=true
bun: detectTool says installed=false | resolves on PATH=true
RED: shipped detectTool reports a binary absent while it is installed and on PATH
Suggested fix
Untested shape. Resolve binary presence with a runtime API rather than a POSIX shell builtin: Bun.which(name) is already used elsewhere in the payload (LIFEOS/TOOLS/lifeos.ts uses it for the claude lookup) and is platform-correct. detectTool could use it for the presence check and keep tryExec only for the version string, which is a real command on every platform. Alternatively branch tryExec on process.platform and use where instead of command -v on Windows. The guard at :1070 has a third option: drop the probe entirely and let git init fail, since initLocalRepo already handles a failed init and reports it.
Note that the POSIX assumption in tryExec is wider than these three call sites: detectOS also shells out to sw_vers, uname and cat /etc/os-release through the same helper, which is why the Windows branch there already special-cases ver.
Environment
- OS: Windows (x64)
- Harness: claude-code
- bun: not found · git: not found
- Doctor broken: identity-placeholders, ripgrep, imagemagick, ffmpeg, ytdlp, jq
- Lenguaje dominante
- TypeScript
- Estrellas
- 20k
- 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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de danielmiessler/LifeOS
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
danielmiessler/LifeOS#3028 ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
danielmiessler/LifeOS#3022 ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
danielmiessler/LifeOS#3020 ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 Medio día Aptitud para principiantes 78/100
danielmiessler/LifeOS#3018 ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
danielmiessler/LifeOS#3017 ·
Los mantenedores suelen responder en 5 días
Todos los issues de danielmiessler/LifeOS
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
iOS: last line of a long UITextView text is sometimes not drawn (frame a fraction of a point short)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
Koenkk/zigbee2mqtt#33855 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
yavorsky/unbuilt.app#65 ·