<span id="管理规则与运行历史"></span>

# Manage rules and run history

Automation separates rule configuration from individual runs. The rule list controls future execution; history records what has already happened. The overview also summarizes triggers and paused rules.

```{figure} /assets/images/agents/guide-5-hd/26-automation-list.png
:alt: Automation overview: trigger and pause totals appear above the rule list used to manage tasks.
:class: agent-guide-image
:figclass: agent-guide-shot

Automation overview: the top summarizes triggers and suspension; the rule list manages tasks.
```

<span id="查找规则"></span>

## Find rules

Search by task name, filter by agent, or use pagination. Open the intended rule's edit action to inspect its execution instructions rather than relying on similar names.

<span id="编辑启停立即运行与删除"></span>

## Edit, enable, disable, run now, and delete

| Task | Purpose | Checks after the operation |
| --- | --- | --- |
| Edit | Adjust execution content, model, or editable trigger configuration | Reopen the form to check saved values |
| Disable | Pause future rule scheduling | Check suspension state and schedule information |
| Enable | Make prepared rules executable | Check state and next trigger |
| Run now | Start one execution of a runnable rule | Wait for actual historical records and results |
| Delete | Remove unneeded rules | Confirm objects and check the list |

**Run now** may be disabled for a paused task. Prepare the configuration, enable it, and verify the saved state before a trial run. Disabling does not imply reversal of external actions already performed.

<span id="查看历史记录"></span>

## View history

```{figure} /assets/images/agents/guide-5-hd/32-automation-history.png
:alt: Browse history by date; if no records appear, check the date, rule state, and trigger conditions.
:class: agent-guide-image
:figclass: agent-guide-shot

Browse history by date. If there are no records, check the date, rule state, and trigger conditions.
```

Open **History**, select the relevant date, and locate the run. Review its status, errors, and results. Follow an available detail or conversation link to inspect the complete execution.

An empty history can mean no run occurred on that date, the rule is disabled, the scheduled time has not arrived, or a trigger did not reach it. Rule creation alone does not establish execution.

See [Check results and troubleshoot](agent-loop.md).

<span id="删除规则与保留运行记录"></span>

## Delete a rule and retain run history

Deletion warns when executions are still unfinished. Inspect them before confirming, and distinguish removing a rule from cancelling an execution. Removing the rule from the list does not prove external work was undone.

Historical runs are marked **Task deleted** after rule deletion. Check the original task, trigger time and result. Before recreating the same name, confirm that the old rule was deleted rather than resubmitting an unresolved creation request.
