{"success":true,"name":"reply-pacing-background-wait","description":"Use when node agents/reply.mjs is moved to background after 120s timeout, or sleep is blocked by the harness while waiting for a WhatsApp ack Also when: Use when node agents/reply.mjs is moved to background after 120s and the session is ending","category":"unitary","path":"unitary/reply-pacing-background-wait/SKILL.md","file":"SKILL.md","content":"---\nname: reply-pacing-background-wait\ndescription: Use when node agents/reply.mjs is moved to background after 120s timeout, or sleep is blocked by the harness while waiting for a WhatsApp ack Also when: Use when node agents/reply.mjs is moved to background after 120s and the session is ending\n---\n> Imported from [PRIVATE_HOST] `~/unitary/generated/agents/handoff/data/skills/solobro/reply-pacing-background-wait`. Paths are relative to `[PRIVATE_HOST]:[PATH]`; run commands there via `ssh [PRIVATE_HOST] 'cd ~/unitary && ...'`. Owner send rules from skill i7-remote-ops still apply.\n\n\n1. reply.mjs peut attendre le pacing WhatsApp (1-3 min) et dépasser 120 s: la commande part en arrière-plan. 2. Ne pas utiliser `sleep N; cat` (bloqué par le harness). 3. Utiliser Monitor avec `until grep -q -E \"provider ack|refus|error\" <output>; do sleep 3; done`. 4. Si la session s'arrête pendant le pacing, l'envoi est perdu: vérifier le thread avec `node agents/tools/client.mjs brief <cl_id>` avant de conclure que le message est parti, puis renvoyer avec --now (répondre à un entrant). 5. Ne clore la promesse (`client.mjs done <cl_id> --id <p_id>`) qu'après l'ack.\n\nLinked: S:brimind-send-verification (verify the send before closing a promise); S:brimind-sms-rail (similar unconfirmed-send handling)\nLearned: 2026-10-13, handoff h_solobro_202610132305_08eb.\n\n## Field notes (from session handoffs)\n- 2026-10-13: When reply.mjs is paced (~4 min wait) and the session may end, the background job dies with the session and nothing is sent. For an inbound answer, rerun with --now to skip the pacing wait. Check agents/data/replies.jsonl for the ack before resending. (when: Use when node agents/reply.mjs is moved to background after 120s and the session is ending)\n","linked_files":[],"origin":"brimind","owner_id":null,"source":"router"}