{"version":"2.1.326","anchor":"workflow-resume-now-reports-cache-hits-and-first-miss","canonical_anchor":"workflow-logs-when-journal-replay-first-diverges","heading":"Workflow resume now replays cached results only up to the first changed call, and runId operations are gone","tier":"notice","area":"Workflows","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/workflow-resume-now-reports-cache-hits-and-first-miss","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Workflow resume now replays cached results only up to the first changed call, and runId operations are gone\n\nResuming a workflow replays saved agent() results only up to the first changed or failed call, explains cache misses, and the Workflow tool drops runId\n\n**Unclear.** It is not clear whether the resume summary is shown to you or only given to Claude.\n\n**What**\n\nA workflow is a script Claude Code runs to coordinate several `agent()` calls, each of which starts a helper agent. A run keeps a journal, a saved record of each call's result, so a stopped run can be resumed with `resumeFromRunId`. This release changes how that resume works and removes the run-control side of the Workflow tool.\n\n- Resume is now a positional cache. Saved `agent()` results are replayed in order up to the first call that failed, no longer matches or never started. That call and every call after it run again. The old text said completed agents, or agents whose prompt and options were unchanged, return cached results.\n\n- A new resume summary says how many of the journal's saved results were served from cache, which call is the first to run fresh and why, for example \"Call N and every call after it run fresh, not from cache\".\n\n- When replay reaches a started or failed entry it cannot reuse, it writes a `workflow_log` message. Saving to the journal no longer checks one particular stop signal.\n\n- The workflow completion notice now says `agent()` calls replay from cache up to the first one that fails or no longer matches.\n\n- The hint shown when a background workflow is found stopped after a session resumes now says to relaunch with `Workflow({scriptPath, resumeFromRunId})` using the run id from the summary \"and the same args, if it had any\". It also says cached results stop at the first call that has to run again, unless a call failed or never finished.\n\n- The Workflow tool no longer handles `runId` operations, and its summary no longer shows run state. `runId` is gone from its input, so the error is now \"Must provide script, name, or scriptPath\" instead of \"Must provide script, name, scriptPath, or runId\". The tool's prompt also drops the `leanRewrite` parameter.\n\n- The list of workflow event names loses `workflow_journal`, `workflow_kill`, `workflow_after_kill` and `workflow_steer`, and gains `workflow_shared_head`. A workflow child launched by script path no longer carries `scriptPath`.\n\n**Why**\n\nResuming a workflow is easier to predict: you can see which saved results were reused and why a later call ran again. To get the most from the cache, resume with the same args the run started with. Anything that relied on passing `runId` to the Workflow tool will now be rejected.\n\n- Area: Workflows\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}