Decision Log — 2026-07
2026-08-12 从 decision-log.md 按月份拆分(>40KB 维护规则)——内容与原文一致。索引: decision-log
2026-07-31: OpenClaw 发 Telegram 消息 — 弃用 gateway start,后台直启 gateway
Decision: SozoPC 上 OpenClaw gateway 不用 openclaw gateway start(schtasks 计划任务缺失会直接失败),改为后台直启 openclaw gateway --bind loopback --port 18789;发消息统一走 openclaw message send -t <target> -m <text>。
Context:
- 会话
20260731_193338_b023bf/20260731_194248_a380ad:用户要求给 Telegram 频道 5671991810 发消息(问候 + 测试文案 “测试:我是 Hermes Jake,很高兴为你服务!”) openclaw gateway start报schtasks run failed: ERROR: The system cannot find the file specified— “OpenClaw Gateway” 计划任务未安装(schtasks /Run 找不到任务)- 后台直启 gateway(loopback:18789)后
openclaw message send一次成功(Message ID 6251) - 参数坑:
--to/--message是错误用法,必须-t/--target+-m/--message
Open question (待用户): 是否用 openclaw gateway install 修复计划任务(一劳永逸),还是保持手动后台直启(机器重启后需重新拉起)。
Related: openclaw-gateway devops_openclaw-pc-telegram-fix openclaw