Voice hook logs played lines as failed: it waits 10 s, but Pulse answers /notify only after playback ends
I maintainer di solito rispondono entro 5 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- bun, typescript
- Ambito
- backend, observability
Direzione di ricerca
Leggi hooks/handlers/VoiceNotification.ts intorno alla riga 110 e LIFEOS/PULSE/VoiceServer/voice.ts nella parte relativa a /notify e alla riproduzione attesa. Inizia confrontando il timeout del client con la durata della riproduzione normale; nell’issue viene indicato che un timeout di 40 secondi è una soluzione temporanea funzionante. Il lavoro è terminato quando le righe riprodotte vengono registrate come inviate invece che come non riuscite a causa del timeout; l’issue non indica alcun test da eseguire.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Version
LifeOS 8.761.0 · attestation: not run
What is broken
The voice hook waits 10 s for Pulse's /notify answer on a normal (non-interruptible) line. Pulse answers only after the line has finished playing: /notify awaits sendNotification, which awaits playback for a non-interruptible clip. A closing line takes Fish generation plus its playing time, usually over 10 s, so the hook aborts and logs the line as failed ("The operation timed out") although it played.
On one install, joining the hook's voice-events.jsonl with Pulse's played records: 383 of the 392 rows logged as timed out have a matching played record; median time from request to end of playback 12.9 s, longest 33 s. The log reports a voice outage that is not there. The comment at :108 sizes the wait for a server that answers in about a second.
Where (file:line)
hooks/handlers/VoiceNotification.ts:110 · LIFEOS/PULSE/VoiceServer/voice.ts:980 (/notify awaits sendNotification), :778-780 (non-interruptible playback awaited)
Repro on a clean tree
# Any 8.761.0 install with Pulse voice on (not platform-specific).
# 1. Static: the probe prints the client wait and the server lines that hold the /notify answer until
# playback ends. It reads two release files and writes nothing.
cat > probe.js <<'EOF'
const { join } = await import("node:path");
const read = (p) => Bun.file(join(process.cwd(), "skills/LifeOS/install", p)).text();
const hook = await read("hooks/handlers/VoiceNotification.ts"), srv = await read("LIFEOS/PULSE/VoiceServer/voice.ts");
const at = (src, re) => { const L = src.split(String.fromCharCode(10)); const i = L.findIndex((l) => re.test(l)); return " :" + (i + 1) + " " + L[i].trim(); };
console.log("hooks/handlers/VoiceNotification.ts (client)");
console.log(at(hook, /AbortSignal\.timeout\(/));
console.log("LIFEOS/PULSE/VoiceServer/voice.ts (/notify)");
console.log(at(srv, /pathname === "\/notify"\)/));
console.log(at(srv, /const result = await sendNotification\(/));
console.log(at(srv, /const played = enqueuePlayback/));
console.log(at(srv, /else await played/));
const ms = Number(hook.match(/interruptible \? \d+ : (\d+)/)[1]);
const afterPlayback = /else await played/.test(srv);
console.log("normal line: client gives up after " + ms + " ms; server answers " + (afterPlayback ? "only after playback ends" : "before playback"));
process.exit(afterPlayback ? 1 : 0);
EOF
bun -e "$(cat probe.js)" # exit 1
# 2. Live: let a session end with a closing line of normal length (spoken for more than ~9 s), then:
tail -n 3 LIFEOS/MEMORY/VOICE/voice-events.jsonl
# -> event_type "failed", error "The operation timed out." for a line Pulse played to the end.
Negative control
Probe: bun -e 'const { join } = await import("node:path"); const read = (p) => Bun.file(join(process.cwd(), "skills/LifeOS/install", p)).text(); const hook = await read("hooks/handlers/VoiceNotification.ts"), srv = await read("LIFEOS/PULSE/VoiceServer/voice.ts"); const at = (src, re) => { const L = src.split(String.fromCharCode(10)); const i = L.findIndex((l) => re.test(l)); return " :" + (i + 1) + " " + L[i].trim(); }; console.log("hooks/handlers/VoiceNotification.ts (client)"); console.log(at(hook, /AbortSignal\.timeout\(/)); console.log("LIFEOS/PULSE/VoiceServer/voice.ts (/notify)"); console.log(at(srv, /pathname === "\/notify"\)/)); console.log(at(srv, /const result = await sendNotification\(/)); console.log(at(srv, /const played = enqueuePlayback/)); console.log(at(srv, /else await played/)); const ms = Number(hook.match(/interruptible \? \d+ : (\d+)/)[1]); const afterPlayback = /else await played/.test(srv); console.log("normal line: client gives up after " + ms + " ms; server answers " + (afterPlayback ? "only after playback ends" : "before playback")); process.exit(afterPlayback ? 1 : 0);' · exit 1 · captured 2026-11-27T01:34:03.149Z
Red looks like: client gives up after 10000 ms; server answers only after playback ends
hooks/handlers/VoiceNotification.ts (client)
:110 signal: AbortSignal.timeout(payload.interruptible ? 20000 : 10000),
LIFEOS/PULSE/VoiceServer/voice.ts (/notify)
:964 if (pathname === "/notify") {
:980 const result = await sendNotification(title, message, voiceEnabled, voiceId, volume, false, data.interruptible === true)
:778 const played = enqueuePlayback(() => playAudio(fishAudio, callerVolume ?? fishEntry.volume ?? FALLBACK_VOLUME, "mp3", { interruptible, bypassMute }), gen)
:780 else await played
normal line: client gives up after 10000 ms; server answers only after playback ends
Suggested fix
Applied on one install: raise the normal-line wait at VoiceNotification.ts:110 from 10000 to 40000 ms (interruptible clips keep 20000). The hook runs async, so nothing waits on it; its process lives up to 40 s. Since the change, lines that played log sent, including ones that took up to 19 s from request to end of playback. A line longer than 40 s would still log as failed.
The fuller fix, not tried here: have /notify answer once the clip is generated and queued, as it already does for interruptible clips, and report playback failures some other way.
Environment
- OS: Windows (x64)
- Harness: claude-code
- bun: 1.4.2 · git: 2.56.1.
- Doctor broken: none
- Lingua principale
- TypeScript
- Stelle
- 20k
- 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
-
MemoryTurnStart: the 300 ms budget skipped memory retrieval on 1 in 4 prompts on a Windows installAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
danielmiessler/LifeOS#2983 ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
danielmiessler/LifeOS#2980 ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
danielmiessler/LifeOS#2977 ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
danielmiessler/LifeOS#2967 ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
danielmiessler/LifeOS#2966 ·
I maintainer di solito rispondono entro 5 giorni
Tutte le issue di danielmiessler/LifeOS
Issue simili
-
P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bug L3 level 1 needs-review wocs
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
SatyamPandey-07/WorkSphere#10739 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
maintenance
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
assistant-ui/assistant-ui#10946 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:auth-provider issue-rating: 🦞 diamond lobster no-stale P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
openclaw/openclaw#206303 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno