Skip to content

fix(sessions): avoid recurring Doctor warnings after native status - #190213

Merged
roboclaw-bot merged 1 commit into
mainfrom
loop/contributor-pr-184079
Nov 1, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
loop/contributor-pr-184079

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #183856

Supersedes #184079, thanks @wangjx-xydt.

What Problem This Solves

Fixes recurring Doctor legacy-delivery warnings when native /status is 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 channel field. Canonical delivery already 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

  • On main 7c00b5981080, the extended native /status test failed because the persisted session contained channel: "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).
  • Targeted TypeScript check, oxlint, oxfmt, and git diff --check, and the test-line budget check: passed.
  • Requested local autoreview (Codex, P0–P2) reviewed the complete final candidate against 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).
  • Simplification: production -2 lines; tests +14 lines, extending one existing persistence test. The dedicated 14-line test allocation records this regression growth without changing the shared baseline.
  • The contributor head was only read through gh pr view/gh pr diff and 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.

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]>
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 1, 2026 09:52
@roboclaw-bot
roboclaw-bot merged commit cdc4b5b into main Nov 1, 2026
206 of 208 checks passed
@roboclaw-bot
roboclaw-bot deleted the loop/contributor-pr-184079 branch November 1, 2026 10:14
@roboclaw-bot

Copy link
Copy Markdown
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: /status as the first message after /new writes a retired top-level channel session field (doctor: legacy delivery fields)

1 participant