Repository navigation
fix(sessions): avoid recurring Doctor warnings after native status - #190213
Merged
Merged
Conversation
Stop the fast reply initializer from emitting the retired channel field. Extend the native status test through persistence to protect canonical delivery, its reader, and Doctor normalization. Fixes #183856 Co-authored-by: wangjx-xydt <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Collaborator
Author
|
Merged via squash.
|
roboclaw-bot
added a commit
that referenced
this pull request
Nov 1, 2026
…CK, cron receipt) (#190276) * test(auto-reply): stop expecting the retired session channel field #190213 stopped the fast reply initializer from writing the retired channel field, but the native slash fast-path test still seeded and expected it, keeping main CI red. Assert the initialization without the retired field and that new state omits it. Co-authored-by: vyctorbrzezowski <[email protected]> * test(auto-reply): stop expecting the retired session channel field Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 3f2d12c9-3b58-4138-8561-cb7952f2cdfe * fix(infra): keep the SQLite runtime safety check module-private #190242 left assertSafeSqliteRuntime exported with no consumer outside its module, failing the deadcode:exports gate on main. Co-authored-by: vyctorbrzezowski <[email protected]> * Publish openclaw/mellow-crab Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 00c16b2f-1db1-444f-acba-f3e2049e6b05 * test(gateway): stop requiring messageSeq in the committed-mention ACK chat.send includes messageSeq only once the transcript recorder has attested placement, which can complete after the ACK. The committed mention test asserted it unconditionally and failed intermittently on main; the mention delivery and replay assertions are unchanged. Co-authored-by: vyctorbrzezowski <[email protected]> * test(cron): wait for the cancelled run receipt to settle A cancelled isolated run keeps its receipt running, with the error recorded, until execution settles (#189469). That settle write can land after waitForManualRun resolves, so poll the receipt instead of reading it once. Co-authored-by: vyctorbrzezowski <[email protected]> * Publish openclaw/mellow-crab Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: f306e74f-b8fd-4268-82c9-22f5947f7610 --------- Co-authored-by: vyctorbrzezowski <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 2, 2026
…penclaw#190213) Stop the fast reply initializer from emitting the retired channel field. Extend the native status test through persistence to protect canonical delivery, its reader, and Doctor normalization. Fixes openclaw#183856 Co-authored-by: wangjx-xydt <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 2, 2026
…CK, cron receipt) (openclaw#190276) * test(auto-reply): stop expecting the retired session channel field openclaw#190213 stopped the fast reply initializer from writing the retired channel field, but the native slash fast-path test still seeded and expected it, keeping main CI red. Assert the initialization without the retired field and that new state omits it. Co-authored-by: vyctorbrzezowski <[email protected]> * test(auto-reply): stop expecting the retired session channel field Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 3f2d12c9-3b58-4138-8561-cb7952f2cdfe * fix(infra): keep the SQLite runtime safety check module-private openclaw#190242 left assertSafeSqliteRuntime exported with no consumer outside its module, failing the deadcode:exports gate on main. Co-authored-by: vyctorbrzezowski <[email protected]> * Publish openclaw/mellow-crab Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 00c16b2f-1db1-444f-acba-f3e2049e6b05 * test(gateway): stop requiring messageSeq in the committed-mention ACK chat.send includes messageSeq only once the transcript recorder has attested placement, which can complete after the ACK. The committed mention test asserted it unconditionally and failed intermittently on main; the mention delivery and replay assertions are unchanged. Co-authored-by: vyctorbrzezowski <[email protected]> * test(cron): wait for the cancelled run receipt to settle A cancelled isolated run keeps its receipt running, with the error recorded, until execution settles (openclaw#189469). That settle write can land after waitForManualRun resolves, so poll the receipt instead of reading it once. Co-authored-by: vyctorbrzezowski <[email protected]> * Publish openclaw/mellow-crab Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: f306e74f-b8fd-4268-82c9-22f5947f7610 --------- Co-authored-by: vyctorbrzezowski <[email protected]>
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.
Closes #183856
Supersedes #184079, thanks @wangjx-xydt.
What Problem This Solves
Fixes recurring Doctor legacy-delivery warnings when native
/statusis the first reply after/new.User Impact
Native status commands preserve canonical delivery without reintroducing a retired session field. Existing affected rows remain repairable through Doctor; no migration or configuration changes are needed.
Why This Change Was Made
The fast session initializer still copied the provider into the retired top-level
channelfield. Canonicaldeliveryalready owns this information, and routing readers and Gateway projections use that record. Removing the two-line write fixes the producer; legacy migration readers remain available for historical data.Evidence
7c00b5981080, the extended native/statustest failed because the persisted session containedchannel: "telegram". With the fix, it asserts the key is absent, delivery survives unchanged, the canonical channel reader returns Telegram, and Doctor normalization is a no-op. The existing thinking override assertion remains covered.pnpm test src/auto-reply/reply/get-reply.fast-path.test.ts src/auto-reply/reply/get-reply-native-slash-fast-path.status.test.ts src/commands/doctor-session-delivery-state.test.ts --maxWorkers=1: 31 passed. File durations: 11.07s, 21.58s, and 11.87s; total command 90.26s including worker preparation. PR CI passed in 446 seconds (37 successful jobs, 28 skipped, no failures).git diff --check, and the test-line budget check: passed.7c00b5981080, with producer, persistence, native command, reader, and migration context: scoped-clean, no findings. This was source review; the reviewer did not independently rerun tests. Local ClawSweeper is unavailable; the hosted review has been queued automatically (no duplicate request).gh pr view/gh pr diffand was never checked out or executed. This replacement was implemented on current main. A live Telegram Gateway/model was not exercised; the native command path and real SQLite persistence were tested with isolated state. Production Gateway state was untouched.