Repository navigation
fix: explain when a previous automation run keeps the agent from starting - #207180
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: ae02d6c0-57fb-48a2-9d4d-2ccb1e483322
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
The matched comparisons show the same synthetic Morning briefing job in the real Control UI (1100 × 720, light theme). Before: main at Clean comparisonBefore After Annotated comparisonBefore After When the previous run is not the causeClean Annotated What happened after the previous work settledThis last frame uses history from the isolated scheduler. The first run finished, then the harness held its session to simulate unfinished work. The second failed before a model call. After the harness released the work, clicking Run now sent one forced-run request through the fixture transport to the scheduler. It completed a third run: 1, 0, 1 model calls. The saved job’s latest error cleared and the failed history entry remained unchanged. The Completed row in the screenshot is not a signal that another run can safely start immediately. |
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
Co-authored-by: vyctorbrzezowski <[email protected]>
…s the agent from starting Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: fefe9614-d530-419c-9b63-8fa35e8e0e49
* commit '262f14aab89ca286633992760fa45aeeded998f9': (207 commits) fix(ui): remove redundant type argument from Board browser test (#207352) test(channels): distinguish status and batch fixtures (#207232) fix(ui): type the Board drop test mock as void (#207348) fix(ui): break the Skill Workshop import cycle (#207345) test(channels): expose label guard regressions (#207195) fix: explain when a previous automation run keeps the agent from starting (#207180) refactor(test): consolidate loader proof and repair rollback coverage (#207152) fix(agents): one tool-result bound on every route, untrusted-content wrapper intact (#207101) test(plugins): verify staged SDK named exports (#207170) fix(ui): truncate empty Compose hints on narrow screens (#207301) fix: keep unsent Cmd+K Compose drafts when reopened (#207307) fix: explain chat update errors when a session changes (#206419) fix(ios): keep consecutive commands on one line in chat (#207242) fix(ios): keep connection messages from flashing when chat reopens (#207233) fix(ios): give Sessions groups more breathing room (#207221) fix(ui): show chat completions as activity rows (#201891) fix(ui): make empty composer hints look distinct from drafts (#207295) fix: explain why chat won’t attach an empty file (#206402) fix(agents): show Doctor's restore-first warning before deleting a held store (#207290) test(channels): fix join failure proof and trim probe fixture (#207264) ...
* commit '262f14aab89ca286633992760fa45aeeded998f9': (207 commits) fix(ui): remove redundant type argument from Board browser test (#207352) test(channels): distinguish status and batch fixtures (#207232) fix(ui): type the Board drop test mock as void (#207348) fix(ui): break the Skill Workshop import cycle (#207345) test(channels): expose label guard regressions (#207195) fix: explain when a previous automation run keeps the agent from starting (#207180) refactor(test): consolidate loader proof and repair rollback coverage (#207152) fix(agents): one tool-result bound on every route, untrusted-content wrapper intact (#207101) test(plugins): verify staged SDK named exports (#207170) fix(ui): truncate empty Compose hints on narrow screens (#207301) fix: keep unsent Cmd+K Compose drafts when reopened (#207307) fix: explain chat update errors when a session changes (#206419) fix(ios): keep consecutive commands on one line in chat (#207242) fix(ios): keep connection messages from flashing when chat reopens (#207233) fix(ios): give Sessions groups more breathing room (#207221) fix(ui): show chat completions as activity rows (#201891) fix(ui): make empty composer hints look distinct from drafts (#207295) fix: explain why chat won’t attach an empty file (#206402) fix(agents): show Doctor's restore-first warning before deleting a held store (#207290) test(channels): fix join failure proof and trim probe fixture (#207264) ...
* commit '262f14aab89ca286633992760fa45aeeded998f9': (207 commits) fix(ui): remove redundant type argument from Board browser test (#207352) test(channels): distinguish status and batch fixtures (#207232) fix(ui): type the Board drop test mock as void (#207348) fix(ui): break the Skill Workshop import cycle (#207345) test(channels): expose label guard regressions (#207195) fix: explain when a previous automation run keeps the agent from starting (#207180) refactor(test): consolidate loader proof and repair rollback coverage (#207152) fix(agents): one tool-result bound on every route, untrusted-content wrapper intact (#207101) test(plugins): verify staged SDK named exports (#207170) fix(ui): truncate empty Compose hints on narrow screens (#207301) fix: keep unsent Cmd+K Compose drafts when reopened (#207307) fix: explain chat update errors when a session changes (#206419) fix(ios): keep consecutive commands on one line in chat (#207242) fix(ios): keep connection messages from flashing when chat reopens (#207233) fix(ios): give Sessions groups more breathing room (#207221) fix(ui): show chat completions as activity rows (#201891) fix(ui): make empty composer hints look distinct from drafts (#207295) fix: explain why chat won’t attach an empty file (#206402) fix(agents): show Doctor's restore-first warning before deleting a held store (#207290) test(channels): fix join failure proof and trim probe fixture (#207264) ...
…ting (openclaw#207180) * fix: explain when OpenClaw can’t tell which session to use Co-authored-by: vyctorbrzezowski <[email protected]> * fix: explain when OpenClaw can’t tell which session to use Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: ae02d6c0-57fb-48a2-9d4d-2ccb1e483322 * fix: say when a previous automation run kept the agent from starting Co-authored-by: vyctorbrzezowski <[email protected]> * fix: explain when unfinished work from a previous automation run keeps the agent from starting Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: fefe9614-d530-419c-9b63-8fa35e8e0e49 * fix(cron): add recovery guidance to automation session conflict errors * fix(cron): address previous-run work by its session key --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>







What Problem This Solves
A recurring automation can fail before its agent starts when OpenClaw confuses the new run with work from the previous run. The saved error asked for a “physical store scope,” even when the job already had one. It didn’t tell the person whether the agent had started or what kept it from starting.
User Impact
Before: “Session controller identity requires a physical store scope”
After, when the previous run still holds the conflicting work: “The agent didn’t start because work from the previous run was still active. Wait a moment, then try running it again.”
After, when a conflict prevented startup but can’t be attributed to the previous run: “The agent didn’t start because OpenClaw found conflicting session records for this run. Wait a moment, then try running it again.”
After, outside automation startup: “OpenClaw found conflicting session records and couldn’t tell which session to use. Try again in a moment.”
New failures show the explanation in Error details and activity history. Already-saved failures keep their original wording. This changes what a failure says, not which runs succeed. #207148 addresses one cause of the overlap separately.
Why This Change Was Made
Automation preparation knows that the agent hasn’t started. It names the previous run only if outstanding work belongs to that exact run’s session, not merely because the same session controller was involved. Other callers don’t make claims about the automation. Session matching, the active-run refusal, scheduling, and the diagnostic warning are unchanged.
Evidence
Matched Chromium captures: the same synthetic job, light theme, 1100 × 720. Before:
fd1942854a6b. After:f9d4fd4fa724.Clean comparison
Before
After
Annotated comparison
Before
After
When the previous run is not the cause
Annotated fallback, isolated-scheduler history, and the Run now recovery check
Skill in practice
The OpenClaw writing skill calls for both the known cause and the status of the reader’s work. Here, naming the previous run requires evidence from that run, and the agent’s startup status comes from the point where preparation failed.
Reported by @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by