Pulse Today shows a disabled [modules] entry as an HTTP 404 error in Blockers
I maintainer di solito rispondono entro 6 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- bun, typescript
Direzione di ricerca
Inizia da LIFEOS/PULSE/modules/today.ts:642 e leggi getJson, unavailableFrom e il ciclo di probe per modulo che alimenta il Today aggregator, poi trova dove resolveModules decide che un modulo è disattivato in base a [modules] in PULSE.user.toml. Scegli una delle due correzioni suggerite e tienila in un solo posto. È finito quando il controllo negativo della repro passa: curl -s 'http://localhost:31337/api/today?fresh=1' | jq .errors non ha alcuna voce HTTP 404 per un modulo disabilitato, mentre un modulo abilitato continua a far emergere errori reali.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Version
LifeOS 8.761.0 · attestation: 3 system file(s) differ from danielmiessler/[email protected]:
- LIFEOS/TOOLS/models.ts
- LIFEOS/TOOLS/model-pricing.json
- LIFEOS/DOCUMENTATION/ARCHITECTURE_SUMMARY.md
What is broken
When a Pulse module is switched off in USER/CONFIG/PULSE.user.toml under [modules] (for example vigil = false or work = false), its API route stops answering and returns HTTP 404. The Today page's aggregator (/api/today) does not recognise that as "module off": getJson only maps a body with available: false or setup_required: true to an unavailable source, so a plain 404 falls through to throw new Error(...). The result is a red error line in the Blockers panel ("/api/work → HTTP 404 · /api/vigil → HTTP 404") for a module the user deliberately disabled. The [modules] comment in PULSE.toml says disabling a module hides its tab instead of leaving an empty page; Today should treat a disabled module the same way (skip it, or show the designed not-installed state), not as a failure.
Where (file:line)
LIFEOS/PULSE/modules/today.ts:642
Repro on a clean tree
1. On a v8.761.0 install with Pulse running, add `vigil = false` under `[modules]` in `LIFEOS/USER/CONFIG/PULSE.user.toml`.
2. Restart Pulse: `launchctl kickstart -k gui/$(id -u)/com.lifeos.pulse`.
3. `curl -s 'http://localhost:31337/api/today?fresh=1' | jq .errors` shows `{"vigil": "/api/vigil → HTTP 404"}`.
4. Open Pulse → Today: the Blockers panel shows the red error line.
Negative control: the captured probe exits 1 because `.errors` contains an HTTP 404 entry for the disabled module.
Negative control
Probe: out=$(curl -s --max-time 30 'http://localhost:31337/api/today?fresh=1'); echo "$out" | jq -c .errors; echo "$out" | jq -e '[(.errors // {})[] | select(test("HTTP 404"))] | length == 0' >/dev/null · exit 1 · captured 2026-11-15T07:42:54.539Z
Red looks like: /api/vigil → HTTP 404
{"work":"/api/work → HTTP 404","vigil":"/api/vigil → HTTP 404"}
Suggested fix
Two possible places, maintainer's choice: (a) have a disabled module's routes answer { available: false, reason: "module disabled" } instead of 404, which unavailableFrom already handles; or (b) in modules/today.ts skip the probe for any module that resolveModules reports as off, so it never reaches getJson.
Environment
- OS: macOS 26.6.2 (arm64)
- Harness: claude-code
- bun: 1.3.8 · git: 2.39.5
- Doctor broken: none
- Lingua principale
- TypeScript
- Stelle
- 19.8k
- Fork
- 2.5k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di danielmiessler/LifeOS
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
danielmiessler/LifeOS#2830 ·
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
danielmiessler/LifeOS#2824 ·
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
danielmiessler/LifeOS#2822 ·
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
danielmiessler/LifeOS#2818 ·
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
danielmiessler/LifeOS#2808 ·
I maintainer di solito rispondono entro 6 giorni
Tutte le issue di danielmiessler/LifeOS
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
tintinweb/pi-subagents#459 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
freshframework/fresh#3920 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
area: client enhancement priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
opensro-dev/opensro#3681 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno