Skip to content

[Bug]: 2026.5.27version the running session of the cron job is incorrect #88002

Closed

Description

@kinlioncd

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

When clicking on the "Open Chat" button to view the running history of the cron job, the corresponding conversation that is redirected is incorrect.

Steps to reproduce

in version 2026.5.6-2026.5.27: When clicking on the "Open Chat" button to view the running history of the cron job, the corresponding conversation that is redirected is incorrect.

Expected behavior

The historical sessions of the cron job can be displayed correctly.

Actual behavior

in version 2026.5.6-2026.5.27: When clicking on the "Open Chat" button to view the running history of the cron job, the corresponding conversation that is redirected is incorrect.

OpenClaw version

2026.5.27

Operating system

Ubuntu24.04

Install method

No response

Model

mimo-v2.5-pro

Provider / routing chain

openclaw-mimo-v2.5-pro

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Activity

  1. clawsweeper commented on May 29, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 1:56 AM ET / 05:56 UTC.

    Summary
    Keep this open: current main and v2026.6.9 still have the cron run-history session-key mismatch, and the direct fix PR was closed unmerged without becoming a safe canonical fix.

    Reproducibility: yes. at source level: current main records and opens a run-specific cron session key while persistence stores only the stable cron session key. A live Control UI click-through reproduction was not run in this read-only review.

    Root-cause cluster
    Relationship: canonical
    Canonical: #88002
    Summary: This issue is the canonical open tracker for the cron run-history wrong-session problem; the older same-reporter report is closed and the direct fix PR is closed unmerged.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Next step
    Manual review is appropriate because the source mismatch is clear, but the fix needs live Control UI proof and maintainer acceptance of alias persistence versus a different deep-link model.

    Review details

    Best possible solution:

    Resolve cron run-history Open Chat to a session-store entry containing the selected run transcript, either with a confirmed runSessionKey alias or a canonical deep-link key, plus focused regression coverage and real Control UI proof.

    Do we have a high-confidence way to reproduce the issue?

    Yes at source level: current main records and opens a run-specific cron session key while persistence stores only the stable cron session key. A live Control UI click-through reproduction was not run in this read-only review.

    Is this the best way to solve the issue?

    Unclear as the final code path: the closed alias-persistence PR is the narrowest known repair, but maintainers should confirm that this is the intended session-state model before reviving it.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • No live Ubuntu/npm Control UI reproduction or after-fix proof is available for the Open Chat click-through path.
    • The obvious repair changes persisted cron session aliases, so maintainers should confirm the intended session-list, pruning, and deep-link behavior before implementation.

    Codex review notes: model internal, reasoning high; reviewed against 4b2298e8cbcb.

    Label changes

    Label changes:

    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.
    • remove clawsweeper:needs-live-repro: Current issue advisory state no longer selects this label.
    • remove issue-rating: 🐚 platinum hermit: Current issue advisory state no longer selects this label.

    Label justifications:

    • P2: The bug affects a bounded cron history navigation flow without evidence of data loss, security exposure, or core runtime outage.
    • impact:session-state: The affected behavior is selecting the correct persisted session/transcript for a cron run.
    Evidence reviewed

    Acceptance criteria:

    • node scripts/run-vitest.mjs src/cron/isolated-agent/run-session-state.test.ts ui/src/ui/views/cron.test.ts src/gateway/server-methods/chat.test.ts
    • Live Control UI proof: create and run a cron job, open run history, click Open Chat, and verify the displayed transcript belongs to that selected run.

    What I checked:

    Likely related people:

    • steipete: git log -S ties createPersistCronSessionEntry and the isolated cron execution seam to the April isolated-cron extraction and split commits. (role: feature-history contributor; confidence: high; commits: 91d20781ed03, bbb73d3171e5; files: src/cron/isolated-agent/run-session-state.ts, src/cron/isolated-agent/run.ts)
    • vincentkoc: Current blame and release/current-main commits carry the implicated cron persistence, run-key, and UI link behavior into v2026.6.9 and current main. (role: recent area contributor; confidence: medium; commits: b43eedbb1818, c645ec4555c0, 4b2298e8cbcb; files: src/cron/isolated-agent/run-session-state.ts, src/cron/isolated-agent/run.ts, ui/src/ui/views/cron.ts)
    • tyler6204: git log -G shows earlier cron scheduling, delivery, and isolated announce work in the same cron/session surfaces that the fix would touch. (role: cron feature-history contributor; confidence: medium; commits: 8fae55e8e057, d90cac990c8f, 3f82daefd801; files: src/cron/isolated-agent/run.ts, src/cron/service/timer.ts, ui/src/ui/views/cron.ts)
    • SymbolStar: Authored the closed unmerged PR that diagnosed the runSessionKey/session-store mismatch and proposed the narrow alias-persistence fix. (role: proposed fix contributor; confidence: medium; commits: 8ffc709cc0e0; files: src/cron/isolated-agent/run-session-state.ts, src/cron/isolated-agent/run.ts, src/cron/isolated-agent/run-session-state.test.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P2Normal backlog priority with limited blast radius.
    impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.
    issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    on May 29, 2026
  3. openclaw-barnacle commented on Jun 15, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  4. added
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    and removed
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.
    on Jun 15, 2026
  5. added
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    and removed
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    on Jun 20, 2026
  6. steipete-oai commented on Jul 29, 2026

    @steipete-oai
    Contributor

    Thanks for the clear cron run-history / “Open Chat” report. I independently verified this exact issue against current main: the selected isolated cron run now owns and persists its actual agent:...:cron:<job>:run:<runSessionId> continuation in src/cron/isolated-agent/run-prepare.ts and src/cron/isolated-agent/run-session-state.ts; src/cron/task-run-detail.ts exposes that exact child session key in run history; and ui/src/pages/cron/view-runs.ts builds and opens the chat using that same persisted run key. This canonical lifecycle fix is present in landed main commit d0948c33b533a9444c6321c091f87308af82ed71. For fresh verification I ran node scripts/run-vitest.mjs src/cron/isolated-agent/run-session-state.test.ts src/cron/task-run-history.test.ts: both suites passed, 30/30 tests, covering real exact-run session ownership and cron run-history projection. The historical Open Chat link therefore resolves the selected run’s stored session instead of a missing or unrelated chat. Closing as fixed on current main; thanks again for surfacing it.

  7. locked as resolved and limited conversation to collaborators on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.bugSomething isn't workingclawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.regressionBehavior that previously worked and now fails

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions