mirror of
https://github.com/dagucloud/dagu.git
synced 2026-12-05 21:34:48 +00:00
A desktop step always needed a model, and a replay that missed always handed the task to it. People who run the same task at volume, or whose screens must not leave the device, need to choose. `with.ai` sets the choice for a step, and `ai` on an act or an extract overrides it: - `every_run`: the model decides every run; a successful act still records. - `on_miss` (default): replay while the screens match, and let the model repair the recording from the first screen that differs. This is what ran before. - `never`: replay only. A miss fails the step and says why: no recording on this host, the turn whose screen differed, the action that failed, or the final screen that differed. The recording is kept, so a run under `on_miss` repairs it. No screenshot leaves the host and no model is called. `cache: false` keeps its meaning as `every_run`; setting both fails validation. A step needs an `llm` only when some operation can call the model under its choice, replacing the unconditional check. `expect`, `when`, and `extract` are refused under a step-level `never`, since v1 has no form of them that works without a model. Each operation's timeline event now carries `via` (`screen` or `model`), `durationMs`, and `tokens`, which before reached only the log line, so a UI can show what each operation cost and suggest a cheaper choice from real runs. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>