CLI 命令

`openclaw commitments`

检查并清除已停用的推断式跟进承诺实验所留下的记录。 OpenClaw 不再创建或交付新的跟进承诺,但仍保留维护命令, 以便升级时审计并清理现有的 SQLite 行。

不带子命令时,openclaw commitments 会列出待处理的跟进承诺。

用法

bash
openclaw commitments [--all] [--agent <id>] [--status <status>] [--json]openclaw commitments list [--all] [--agent <id>] [--status <status>] [--json]openclaw commitments dismiss <id...> [--json]

选项

  • --all:显示所有状态,而非仅显示待处理的跟进承诺。
  • --agent <id>:按一个 Agent ID 筛选。
  • --status <status>:按状态筛选。可选值:pendingsentdismissedsnoozedexpired。未知值会导致程序报错退出。
  • --json:输出机器可读的 JSON。

dismiss 将给定的跟进承诺 ID 标记为 dismissed

示例

列出待处理的跟进承诺:

bash
openclaw commitments

列出所有已存储的跟进承诺:

bash
openclaw commitments --all

筛选到一个 Agent:

bash
openclaw commitments --agent main

查找已延后的跟进承诺:

bash
openclaw commitments --status snoozed

清除一个或多个跟进承诺:

bash
openclaw commitments dismiss cm_abc123 cm_def456

导出为 JSON:

bash
openclaw commitments --all --json

输出

文本输出会显示跟进承诺数量、共享 SQLite 数据库路径、所有生效的筛选条件, 并为每项跟进承诺输出一行:

  • 跟进承诺 ID
  • 状态
  • 类型(event_check_indeadline_checkcare_check_inopen_loop
  • 最早到期时间
  • 范围(Agent/渠道/目标)
  • 建议的跟进文本

JSON 输出包含数量、生效的状态和 Agent 筛选条件、 共享 SQLite 数据库路径以及完整的存储记录。

相关内容

Was this useful?
On this page

On this page