Repository navigation
fix: status checks no longer cancel active replies - #192585
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Exact-head runtime proofCandidate: Baseline logs contain the SQLite transcript-changed error wrapped in Actual Telegram Test Server userbot evidence on the same candidate (identities removed): The model request was observed before |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR preserves the context-free classification of delivered status commands when recording their input and reply in conversation history. Example: Send /status in a Telegram forum topic while waiting for STATUS_TURN_192522_COMPLETE.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a verified active-reply failure with a focused change and convincing Telegram runtime evidence; no actionable defects were found, and required CI remains pending. Priority: P1 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe shared reply dispatcher passes delivered command exchanges to the session transcript owner, whose stored metadata controls model-context inclusion and safe continuation of active turns. flowchart TD
A[Authorized status command] --> B[Context-free reply payload]
B --> C[Channel delivery]
C --> D[Delivered-command recorder]
D --> E[Session transcript owner]
E --> F[Visible conversation history]
E --> G[Active turn continues]
Technical reviewBest possible solution: Preserve the existing status classification through the shared recorder while retaining ordinary-command context and all transcript mutation guards. Do we have a high-confidence way to reproduce the issue? Author-supplied baseline receipts reproduce transcript conflicts during concurrent status checks, and source confirms the relevant production modules remain unchanged on fetched main; this read-only review ran no reproduction. Is this the best way to solve the issue? Yes: restoring metadata at the existing recording boundary fixes the demonstrated cause without weakening storage fences, adding retries, or creating another owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e25fdc28da1c. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +20, Tests 0, Docs +2. Total +22 across 5 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 4, 2026, 1:14 AM ET / 06:14 UTC. |
|
Landed in c2cb56c. Using /status during a running turn no longer loses the turn's answer. |
fix: keep the running turn alive when /status is used mid-turn Fixes #192522. Sending `/status` while a turn was still running wrote to the session transcript at the same time as the turn. The running turn then hit `SqliteTranscriptMutationConflict` and its answer was lost. `/status` no longer conflicts with the active turn: the status reply is delivered, and the original answer is still delivered and saved exactly once. No schema, transaction, retention or mutation-fence changes. Evidence: built Gateway on Node 24.22.1. On main, both active-turn `/status` races failed with transcript conflicts and lost the answer; with this change both passed and the original answer was delivered and saved once. No-status controls passed on both refs. A real Telegram Test Server userbot saw `/status`, the correct status reply and then the original final answer, with one model request and the final answer saved once. Details: openclaw/openclaw#192585 (comment). Co-authored-by: Ayaan Zaidi <[email protected]>
fix: keep the running turn alive when /status is used mid-turn Fixes openclaw#192522. Sending `/status` while a turn was still running wrote to the session transcript at the same time as the turn. The running turn then hit `SqliteTranscriptMutationConflict` and its answer was lost. `/status` no longer conflicts with the active turn: the status reply is delivered, and the original answer is still delivered and saved exactly once. No schema, transaction, retention or mutation-fence changes. Evidence: built Gateway on Node 24.22.1. On main, both active-turn `/status` races failed with transcript conflicts and lost the answer; with this change both passed and the original answer was delivered and saved once. No-status controls passed on both refs. A real Telegram Test Server userbot saw `/status`, the correct status reply and then the original final answer, with one model request and the final answer saved once. Details: openclaw#192585 (comment). Co-authored-by: Ayaan Zaidi <[email protected]>
Closes #192522. Thanks to @alexph-dev for the report.
What Problem This Solves
Fixes: checking
/statuswhile a reply is running can cancel the reply with a transcript conflict and lose the pending answer.User Impact
Users can check status without interrupting their active reply; the status exchange remains visible in history without entering model context. Ordinary commands retain their existing behavior.
Why This Change Was Made
The delivered-command recorder dropped the existing read-only status classification. Preserve that classification through the shared transcript mirror and stamp both messages using the existing context-free markers. Transcript mutation fences, transactions, schema, retention and retry behavior are unchanged; no migration or configuration action is needed.
Evidence
Built Gateway on Node 24.22.1, with a network-held local model response and native Telegram
/statusin the same forum topic:Sanitized runtime receipts.
0c0875810a6c66ed7177e35bEach case made one model request and ended with no pending inputs. Main logged
ReplaySafeTranscriptConflictErrorwith the SQLite transcript-changed error; candidate retained both existing context-free markers on the status input and reply.Also exercised the exact candidate through the repository's Telegram Test Server userbot runner: actual user request at 0.24s, native
/statusat 20.41s, bot status at 22.99s, original final answer at 24.09s after releasing the held response. The model request preceded status, both status messages were marked, and the final answer was persisted exactly once. Lease released and credential scratch removed.Focused checks: 68 cases pass across command transcript, session manager and transcript suites. The parameterized command-transcript regression fails on main (missing markers) and passes with the fix; its ordinary-command control passes on both. Candidate build, changed-file lint and formatting pass. No broad local suite was run.
The simplification pass kept the existing recorder and storage guards: production net +20 lines, tests net 0, docs net +2. No new retry or transcript-rebase machinery.
Merge danger: two-way code change, with no migration or destructive writes. Reverting restores the prior classification of future status records; already written history is not rewritten. Blast radius is shared delivered-command transcript recording across channels; ordinary commands must remain context-bearing.