Repository navigation
Conversation
Automations name their creating conversation by key. Message edits, branch switches and resets rotate the transcript id or lifecycle revision; in-session continuations, isolated announce results and child-run parent bindings now follow the conversation to its current transcript instead of refusing or silently dropping. Archive and deletion still pause the job visibly. The session generation lease no longer compares the transcript id for stored references; live-writer fences opt into exactTranscript. Dropped conversation deliveries now log a Gateway warning. Co-authored-by: obviyus <[email protected]>
OpenClaw-Publication: 6ed44a92-02a0-871c-9b0c-7fb5ddc6a53f
Contributor
|
🦞👀 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Editing a message or switching a branch in the Control UI gives the chat a new transcript ID (
sessionId) and keeps its lifecycle revision. Automations stored the creating chat'ssessionIdand compared it every time they used it. After an edit:session rebound for sessionKey. The run still reportedok, and the Gateway logged no warning.Daily, idle and manual resets rotate the lifecycle revision, so pinning the revision instead would end automations at every auto-reset.
Fix
sessionIdand revision are ignored when read. In-session runs, isolated results and child-run parent bindings follow the chat's current transcript through edits, branch switches and resets. Archiving or deleting the chat still pauses the job, with the existing notice.sessionIdby default. It follows the chat's current transcript, and compares the lifecycle revision only when the reference carries one. Live-writer fences opt intoexactTranscript.cron-operator-source.tsis removed.not-delivered, which the existing failure-alert owner handles.There is no schema change and no migration. Existing jobs with old stored IDs work as they are.
Lease caller audit (14)
execution-context-admission)delivery-generation)memory-audiencesession-event-target,session-event-handoffprepareCronRootSessionGeneration(cli-runner,run-orchestrator,attempt-transcript-lifecycle-prepare)session-restart-resume-custodycommands-forksubagent-control-session,subagent-controller-read,subagent-control-killEvidence
7b81788) and pass here, covering delivery after an edit or reset, the warning when a chat is deleted, child bindings after a parent edit or reset, the in-session continuation, and the lease following an edit. About 650 tests pass across the touched suites and their siblings. Typecheck, oxlint and oxfmt are clean.sessions.rewind, the RPC behind the Control UI edit button.ok/not-deliveredwith nothing in the chat and no warning.build --dtsand the packed-install smoke both pass.Production code: +207 / −265.
Follow-ups
sessionIdstill breaks after an edit: reactions, GitHub publication status, deep-research view state, the knowledgeconversations/<sessionId>partition, and goal continuation.