DM the human on Mattermost for each question, release ready to cut and exit 1 of loop-claude
CI / tests (pull_request) Successful in 2m32s

This commit is contained in:
2026-11-11 22:24:06 +01:00
parent c9514fe8b4
commit 5588270e43
15 changed files with 458 additions and 4 deletions
+7
View File
@@ -0,0 +1,7 @@
from loop_effects.effects import Effects, say
def tell(text: str, effects: Effects) -> None:
"""DMs text to the human, saying on the terminal why where the DM fails; the DM only copies what the terminal shows, so its failure never stops the loop."""
if failed := effects.dm(text):
say(f"could not DM you on Mattermost: {failed.reason}", effects)