fix: frame inbox messages as tasks with instruction to acknowledge

Claude was just echoing raw text. Now messages include framing:
"[MCP Bridge Task from claude.ai] <message>" with instruction
to acknowledge and begin working.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mikkel Georgsen 2026-03-30 12:41:24 +00:00
parent 65f84f9552
commit 10f6dbbd19

View file

@ -263,7 +263,7 @@ class BridgeBot:
inbox_path = Path.home() / "homelab" / "telegram" / "inbox"
try:
with open(inbox_path, "a") as f:
f.write(f"[{attribution}] {text}\n")
f.write(f"[MCP Bridge Task from {attribution}] {text}\nAcknowledge this task and begin working on it. Respond in the group chat.\n")
logger.info(f"Wrote to homelab inbox: {text[:50]}...")
except Exception as e:
logger.error(f"Failed to write to homelab inbox: {e}")