Answer stability round 1: 1 🔴, 5 🟡 (0 misread); catch a broken HTTP answer, drop typed keys before the DM, DM every stop but Ctrl-C and a crash, inject home and http, and test the gaps

This commit is contained in:
2026-11-11 22:37:52 +01:00
parent f10170bf8b
commit 23af106b47
11 changed files with 131 additions and 46 deletions
+4 -6
View File
@@ -9,12 +9,10 @@ holds three KEY=value lines, and only its owner may read it, since it holds the
MATTERMOST_TOKEN=<the bot's access token>
MATTERMOST_RECIPIENT=<the recipient's username>
Where that file exists, loop-claude sends the human a DM when it asks a question, a release is
ready to cut, or the loop stops with exit 1.
Exit 0 once sent, 1, saying why, when the send failed, and 2 on misuse: bad arguments, an empty
message, or a ~/.claude/.env that is missing, lacks a key, names a server off https or that
others may read.
Exit 0 once the message is sent.
Exit 1, saying why, when Mattermost cannot be reached or refuses the message.
Exit 2, saying why, on misuse: bad arguments, an empty message, or a ~/.claude/.env that is
missing or unreadable, lacks a key, names a server off https, or that others may read.
"""
import typing