Skip to content

fix(reply-queue): remove the drained item by reference instead of front index#91450

Merged
obviyus merged 2 commits into
openclaw:mainfrom
yetval:fix/reply-queue-drain-by-ref
Jun 8, 2026
Merged

fix(reply-queue): remove the drained item by reference instead of front index#91450
obviyus merged 2 commits into
openclaw:mainfrom
yetval:fix/reply-queue-drain-by-ref

Conversation

@yetval

@yetval yetval commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

During a burst of inbound messages to a busy session, the reply queue can silently drop a queued message: it is never answered and is not even counted in the "Dropped N messages due to cap" overflow summary.

The drain helper removes the wrong item. drainNextQueueItem (src/utils/queue-helpers.ts) captures next = items[0], awaits the run (a real agent turn, seconds long), then calls items.shift() on the assumption that index 0 still holds the item it just ran:

const next = items[0];
await run(next);
items.shift();

But enqueueFollowupRun mutates the same shared items array for every concurrent inbound message, and at or over cap applyQueueDropPolicy does items.splice(0, dropCount), removing from the front. If enough messages arrive while items[0] is in flight, the in-flight item is itself spliced off the front (and recorded as dropped), shifting a different, still-undelivered survivor into index 0. When the await returns, items.shift() deletes that survivor: it was never run, and it is not in the overflow summary either.

The same positional-front assumption breaks the collect path in src/auto-reply/reply/queue/drain.ts: it snapshots const items = queue.items.slice(), runs each authorization group, then does queue.items.splice(0, groupItems.length) after the awaited run, which can splice off survivors that arrived during the run rather than the group it actually processed.

The fix removes the items that were actually processed by identity instead of by front position. A small removeQueuedItemsByRef helper does an indexOf + splice per processed item; drainNextQueueItem removes the one item it ran, and the collect path removes the group it ran.

Diff size

 src/auto-reply/reply/queue/drain.ts |  3 ++-
 src/utils/queue-helpers.ts          | 11 ++++++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

Verification

Local (Node 22.19.0), against this checkout:

  • node scripts/run-vitest.mjs src/utils/queue-helpers.test.ts src/auto-reply/reply/queue/drain.identity-guard.test.ts - pass (11 tests).
  • node scripts/run-vitest.mjs src/auto-reply/reply/reply-flow.test.ts - pass (12 tests).
  • tsgo:core - exit 0. scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json on both changed files - clean.
  • Red/green proof: a local harness that drives the real exported queue helpers (drainNextQueueItem, applyQueueDropPolicy, buildQueueSummaryPrompt) and recreates a cap-overflow burst during an in-flight drain fails on origin/main (a survivor is lost) and passes on this branch. The harness is kept local and is not part of this single-commit fix; its captured before/after output is in Real behavior proof below.

Real behavior proof

  • Behavior addressed: when a burst of inbound messages overflows the cap while the queue is draining an in-flight item, a still-undelivered queued message that survives the drop policy is no longer removed without running. Every survivor is now delivered, left queued, or counted in the overflow summary.
  • Real environment tested: the real exported reply-queue helpers in this checkout (src/utils/queue-helpers.ts drainNextQueueItem, applyQueueDropPolicy, buildQueueSummaryPrompt), composed exactly as the drain loop composes them: seed one item, begin draining it, and while that drain is awaiting, push a 7-message burst through applyQueueDropPolicy at cap 3 (the same shared array the drain holds), then drain the remainder and read back what was delivered, what stayed queued, what the drop policy dropped, and the emitted overflow summary. No network or provider credentials are involved; the defect is pure in-memory queue bookkeeping.
  • Exact steps or command run after this patch: seeded m1, began draining it, and during the awaited run pushed m2..m8 through applyQueueDropPolicy on the shared array (cap 3, summarize policy), then drained to completion and printed DELIVERED, REMAINING, DROPPED_BY_POLICY, the SUMMARY_PROMPT, and LOST (any id that is in none of delivered, remaining, or dropped). Ran the identical harness once on this branch and once with the two production files reverted to origin/main.
  • Evidence after fix: live before/after output of the harness. Before is the two production files at origin/main; after is this branch:
# origin/main (drain shift()s index 0)
DELIVERED:         ["m1","m7","m8"]
REMAINING:         []
DROPPED_BY_POLICY: ["m1","m2","m3","m4","m5"]
SUMMARY_PROMPT:    "[Queue overflow] Dropped 5 messages due to cap.\nSummary:\n- m3\n- m4\n- m5"
LOST:              ["m6"]

# this branch (drain removes the item it ran by reference)
DELIVERED:         ["m1","m6","m7","m8"]
REMAINING:         []
DROPPED_BY_POLICY: ["m1","m2","m3","m4","m5"]
SUMMARY_PROMPT:    "[Queue overflow] Dropped 5 messages due to cap.\nSummary:\n- m3\n- m4\n- m5"
LOST:              []
  • Observed result after fix: m6 survived the drop policy but, on origin/main, appeared in none of delivered, remaining, or the overflow summary (LOST: ["m6"]) - silent loss beyond the cap accounting. On this branch the identical burst delivers m6 (DELIVERED includes m6, LOST is empty); the documented overflow accounting for m1..m5 is unchanged.
  • What was not tested: a fully live multi-message burst over a real channel against a running agent. The before/after above exercises the real exported queue helpers composed in the production drain order; it does not stand up a live Discord/Telegram/Slack session, which is unnecessary because the lost-survivor bug lives entirely in the shared in-memory queue bookkeeping these helpers own.

@openclaw-barnacle openclaw-barnacle Bot added size: XS proof: supplied External PR includes structured after-fix real behavior proof. labels Jun 8, 2026
@clawsweeper

clawsweeper Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed June 8, 2026, 11:55 AM ET / 15:55 UTC.

Summary
This PR changes reply-queue drains to remove processed items by object identity in single-item and collect drains, and adds a helper-level regression test for overflow mutation during an awaited drain.

PR surface: Source +10, Tests +53. Total +63 across 3 files.

Reproducibility: yes. Source inspection shows the current-main race between awaited drain removal and front-splicing overflow, and the PR body provides before/after helper output that loses m6 on current main and preserves it after the patch.

Review metrics: none identified.

Merge readiness
Overall: 🦞 diamond lobster
Proof: 🦞 diamond lobster
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Next step before merge

  • No ClawSweeper repair lane is needed because review found no actionable patch defect; maintainer merge review and CI are the remaining gates.

Security
Cleared: The diff only changes internal TypeScript queue bookkeeping and a regression test; I found no concrete security or supply-chain concern.

Review details

Best possible solution:

Land this focused identity-removal fix after normal CI and maintainer review, keeping any broader overflow-accounting cleanup separate.

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

Yes. Source inspection shows the current-main race between awaited drain removal and front-splicing overflow, and the PR body provides before/after helper output that loses m6 on current main and preserves it after the patch.

Is this the best way to solve the issue?

Yes. Removing the processed object reference after the awaited run is the narrowest maintainable fix because it preserves retry-on-throw behavior while avoiding a stale front-index assumption.

AGENTS.md: found and applied where relevant.

Codex review notes: model gpt-5.5, reasoning high; reviewed against cfeaf6897fd8.

Label changes

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes after-fix live helper output, with before/after comparison showing the lost survivor disappears after the patch; no contributor action is needed for proof.

Label justifications:

  • P1: The PR fixes a shipped reply-queue path that can silently lose an inbound message during a busy agent/channel burst.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body includes after-fix live helper output, with before/after comparison showing the lost survivor disappears after the patch; no contributor action is needed for proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes after-fix live helper output, with before/after comparison showing the lost survivor disappears after the patch; no contributor action is needed for proof.
Evidence reviewed

PR surface:

Source +10, Tests +53. Total +63 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 2 12 2 +10
Tests 1 53 0 +53
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 65 2 +63

What I checked:

  • current main source bug: Current main captures the next item, awaits the run, then removes index 0, while the overflow policy can splice the same shared array from the front during that await. (src/utils/queue-helpers.ts:178, cfeaf6897fd8)
  • collect path has the same positional removal: The collect drain snapshots queue items, awaits each authorization group run, then splices from the front by group length, so concurrent front mutation can remove a different survivor. (src/auto-reply/reply/queue/drain.ts:500, cfeaf6897fd8)
  • proposed merge result fixes both removals: The PR merge ref adds removeQueuedItemsByRef and uses it after the awaited single-item and collect-group runs, so removal targets the processed object references rather than current front position. (src/utils/queue-helpers.ts:169, f57c9784256a)
  • proposed merge result fixes collect drain: The proposed merge ref changes the collect path to call removeQueuedItemsByRef(queue.items, groupItems) after each group run. (src/auto-reply/reply/queue/drain.ts:501, f57c9784256a)
  • focused regression coverage: The added test recreates an awaited drain plus cap overflow burst and asserts the survivor m6 is delivered rather than lost while dropped items remain accounted. (src/utils/queue-helpers.test.ts:175, f57c9784256a)
  • shipped behavior check: The latest release commit v2026.6.1 still contains the positional shift/splice behavior, so the bug is not already fixed in a shipped release. (src/utils/queue-helpers.ts:157, 2e08f0f4221f)

Likely related people:

  • steipete: Shared queue helper and drain history includes the next-item drain helper and a prior pending-item preservation fix on this path. (role: feature-history owner; confidence: high; commits: 8d048d412f5e, 712644f0d9a4; files: src/utils/queue-helpers.ts, src/auto-reply/reply/queue/drain.ts)
  • Agustin Rivera: Auth-context collect batching changed the collect drain grouping surface where one of this PR's positional-removal fixes applies. (role: adjacent collect-mode contributor; confidence: medium; commits: 43d4be902755; files: src/auto-reply/reply/queue/drain.ts, src/auto-reply/reply/queue.collect.test.ts)
  • mushuiyu_xydt: Current main blame for the extracted queue helper and drain files points to the recent fix #90452: Regression: Heartbeat exec completion still shows generic fallback text instead of actual output #90897 squash commit that carried the current implementation forward. (role: recent area contributor; confidence: medium; commits: b2c1de77acc7; files: src/utils/queue-helpers.ts, src/auto-reply/reply/queue/drain.ts, src/auto-reply/reply/queue/enqueue.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

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.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P1 High-priority user-facing bug, regression, or broken workflow. labels Jun 8, 2026
@obviyus obviyus self-assigned this Jun 8, 2026
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jun 8, 2026
yetval and others added 2 commits June 8, 2026 21:15
…nt index

drainNextQueueItem captured items[0], awaited the run, then shift()-ed
index 0 assuming it still held the item it ran. Concurrent inbound
messages mutate the same shared items array, and at or over cap
applyQueueDropPolicy splices items off the front, so a burst arriving
while item[0] is in flight can shift a different, still-undelivered
survivor into index 0. shift() then deletes that survivor: it is never
run and is not counted in the overflow summary, so the agent silently
ignores a message it should have answered.

Remove the item that actually ran by identity via a new
removeQueuedItemsByRef helper, and apply the same reference-based
removal to the collect path in drain.ts, which had the same positional
splice(0, groupItems.length) assumption after an awaited group run.
@obviyus obviyus force-pushed the fix/reply-queue-drain-by-ref branch from 974858b to ede2b5d Compare June 8, 2026 15:46
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 8, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 8, 2026
@obviyus obviyus merged commit 47fc1c2 into openclaw:main Jun 8, 2026
170 checks passed
@obviyus

obviyus commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Landed via rebase onto main.

  • Scoped tests: node scripts/run-vitest.mjs src/utils/queue-helpers.test.ts src/auto-reply/reply/queue.drain-restart.test.ts src/auto-reply/reply/queue.collect.test.ts
  • Formatting/lint/type proof: ./node_modules/.bin/oxfmt --check --threads=1 src/utils/queue-helpers.ts src/utils/queue-helpers.test.ts src/auto-reply/reply/queue/drain.ts; node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json src/utils/queue-helpers.ts src/utils/queue-helpers.test.ts src/auto-reply/reply/queue/drain.ts; node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.src.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/test-src-pr91450.tsbuildinfo
  • Review: .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main clean after rebase
  • CI: required GitHub checks green after rebase; previous checks-node-agentic-cli failure cleared on the rebased run
  • Changelog: not updated; release generation owns CHANGELOG.md, and the PR body/commit messages carry the release-note context
  • Land commit: ede2b5d7d150d8f943311d1b6dd0c7ff4286c0c4
  • Merge commit: 47fc1c288b83a68ceb2a251594ea1c8c67314791

Thanks @yetval!

eleboucher pushed a commit to eleboucher/homelab that referenced this pull request Jun 12, 2026
…26.6.6) (#1040)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/openclaw/openclaw](https://openclaw.ai) ([source](https://github.com/openclaw/openclaw)) | patch | `2026.6.5` → `2026.6.6` |

---

### Release Notes

<details>
<summary>openclaw/openclaw (ghcr.io/openclaw/openclaw)</summary>

### [`v2026.6.6`](https://github.com/openclaw/openclaw/blob/HEAD/CHANGELOG.md#202666)

[Compare Source](openclaw/openclaw@v2026.6.5...v2026.6.6)

##### Highlights

- Security boundaries are substantially tighter across transcripts, sandbox binds, host environment inheritance, MCP stdio, Codex HTTP access, native search policy, elevated sender checks, deleted-agent ACP bypasses, loopback tools, Discord moderation, and Teams group actions; exec approvals now fail closed on timeout. ([#&#8203;91529](openclaw/openclaw#91529), [#&#8203;91618](openclaw/openclaw#91618), [#&#8203;91615](openclaw/openclaw#91615), [#&#8203;91619](openclaw/openclaw#91619), [#&#8203;91741](openclaw/openclaw#91741), [#&#8203;91745](openclaw/openclaw#91745), [#&#8203;91746](openclaw/openclaw#91746), [#&#8203;91748](openclaw/openclaw#91748), [#&#8203;91749](openclaw/openclaw#91749), [#&#8203;91750](openclaw/openclaw#91750), [#&#8203;91751](openclaw/openclaw#91751), [#&#8203;91752](openclaw/openclaw#91752), [#&#8203;91763](openclaw/openclaw#91763), [#&#8203;89938](openclaw/openclaw#89938)) Thanks [@&#8203;joshavant](https://github.com/joshavant), [@&#8203;pgondhi987](https://github.com/pgondhi987), [@&#8203;mmaps](https://github.com/mmaps), [@&#8203;eleqtrizit](https://github.com/eleqtrizit), [@&#8203;shakkernerd](https://github.com/shakkernerd), and [@&#8203;drobison00](https://github.com/drobison00).
- Telegram delivery is safer and more coherent: account-scoped topics route to the right agent, streamed text survives tool calls, `/compact` works on generic ingress, callback handling uses concrete APIs, draft chunking is shared, durable dispatch dedupe moved into the SDK, and unauthorized DM text stays out of cache and prompt context. ([#&#8203;91189](openclaw/openclaw#91189), [#&#8203;88682](openclaw/openclaw#88682), [#&#8203;89588](openclaw/openclaw#89588), [#&#8203;90212](openclaw/openclaw#90212), [#&#8203;91876](openclaw/openclaw#91876), [#&#8203;91874](openclaw/openclaw#91874), [#&#8203;91904](openclaw/openclaw#91904), [#&#8203;91478](openclaw/openclaw#91478), [#&#8203;91915](openclaw/openclaw#91915)) Thanks [@&#8203;codysai001](https://github.com/codysai001), [@&#8203;alexzhu0](https://github.com/alexzhu0), [@&#8203;joelnishanth](https://github.com/joelnishanth), [@&#8203;snowzlm](https://github.com/snowzlm), [@&#8203;obviyus](https://github.com/obviyus), and [@&#8203;sallyom](https://github.com/sallyom).
- iMessage recovery and delivery now cover always-on inbound restart, durable echo markers, block streaming, idle approval discovery, hardened outbound transport, and actionable inbound startup diagnostics. ([#&#8203;91335](openclaw/openclaw#91335), [#&#8203;91449](openclaw/openclaw#91449), [#&#8203;88969](openclaw/openclaw#88969), [#&#8203;88530](openclaw/openclaw#88530), [#&#8203;91783](openclaw/openclaw#91783), [#&#8203;91785](openclaw/openclaw#91785)) Thanks [@&#8203;omarshahine](https://github.com/omarshahine), [@&#8203;jmissig](https://github.com/jmissig), and [@&#8203;colmbrogan](https://github.com/colmbrogan).
- Browser and MCP connectivity gained existing-session CDP support, discovered WebSocket validation, default-profile `cdpUrl` handling, safer browser-output boundaries, Streamable HTTP loopback transport, corrected OAuth/SSE authorization handling, and broader schema compatibility. ([#&#8203;91422](openclaw/openclaw#91422), [#&#8203;89851](openclaw/openclaw#89851), [#&#8203;91736](openclaw/openclaw#91736), [#&#8203;91747](openclaw/openclaw#91747), [#&#8203;91451](openclaw/openclaw#91451), [#&#8203;80143](openclaw/openclaw#80143)) Thanks [@&#8203;pgondhi987](https://github.com/pgondhi987), [@&#8203;anagnorisis2peripeteia](https://github.com/anagnorisis2peripeteia), [@&#8203;lifuyue](https://github.com/lifuyue), [@&#8203;eleqtrizit](https://github.com/eleqtrizit), [@&#8203;LiuwqGit](https://github.com/LiuwqGit), and [@&#8203;HemantSudarshan](https://github.com/HemantSudarshan).
- Control UI startup and first-reply latency are lower through cached model metadata, removal of the startup catalog wait, lazy slash-command loading, and first-event tracing with slow-reply diagnostics. ([#&#8203;91531](openclaw/openclaw#91531), [#&#8203;91538](openclaw/openclaw#91538), [#&#8203;91568](openclaw/openclaw#91568), [#&#8203;91583](openclaw/openclaw#91583), [#&#8203;91598](openclaw/openclaw#91598))
- Provider support expands with OpenRouter OAuth onboarding and Claude Fable 5 adaptive thinking, while Codex sessions keep correct compaction ownership, local models skip guardian review, dynamic tool progress normalizes cleanly, and Gemma 4 reasoning replay is preserved. ([#&#8203;91830](openclaw/openclaw#91830), [#&#8203;91882](openclaw/openclaw#91882), [#&#8203;91590](openclaw/openclaw#91590), [#&#8203;88630](openclaw/openclaw#88630), [#&#8203;88768](openclaw/openclaw#88768), [#&#8203;91696](openclaw/openclaw#91696)) Thanks [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen), [@&#8203;joshavant](https://github.com/joshavant), [@&#8203;bdjben](https://github.com/bdjben), and [@&#8203;Coder-Wangyankun](https://github.com/Coder-Wangyankun).

##### Changes

- CLI progress: emit Claude CLI commentary progress events and bridge inter-tool commentary into channel progress without exposing internal protocol scaffolding. ([#&#8203;89834](openclaw/openclaw#89834), [#&#8203;90883](openclaw/openclaw#90883)) Thanks [@&#8203;anagnorisis2peripeteia](https://github.com/anagnorisis2peripeteia).
- Observability: allow trusted diagnostics channels to capture tool input/output content, add first-assistant-event traces, and warn on slow initial replies. ([#&#8203;91256](openclaw/openclaw#91256), [#&#8203;91568](openclaw/openclaw#91568), [#&#8203;91583](openclaw/openclaw#91583)) Thanks [@&#8203;amknight](https://github.com/amknight).
- Plugins/ClawHub: dogfood reusable package publishing, let dry runs skip publish approval, allow declared installed trusted hooks, report managed plugin version drift, and warn instead of failing on retired Skill Workshop configuration. ([#&#8203;91574](openclaw/openclaw#91574), [#&#8203;91591](openclaw/openclaw#91591), [#&#8203;90004](openclaw/openclaw#90004), [#&#8203;90927](openclaw/openclaw#90927), [#&#8203;90838](openclaw/openclaw#90838)) Thanks [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen), [@&#8203;brokemac79](https://github.com/brokemac79), and [@&#8203;lonexreb](https://github.com/lonexreb).
- Memory/providers: move the local llama.cpp runtime into its provider plugin, batch embeddings across files, persist the agent model catalog cache, and keep QMD JSON search one-shot while filtering stale REM recall previews. ([#&#8203;91324](openclaw/openclaw#91324), [#&#8203;89138](openclaw/openclaw#89138), [#&#8203;90457](openclaw/openclaw#90457), [#&#8203;91837](openclaw/openclaw#91837), [#&#8203;91851](openclaw/openclaw#91851)) Thanks [@&#8203;osolmaz](https://github.com/osolmaz), [@&#8203;mushuiyu886](https://github.com/mushuiyu886), [@&#8203;ai-hpc](https://github.com/ai-hpc), and [@&#8203;TurboTheTurtle](https://github.com/TurboTheTurtle).
- Channels/mobile: add the QQBot group mention toggle, improve iPad and iPhone control surfaces, and expose the active connection host in the TUI footer. ([#&#8203;91423](openclaw/openclaw#91423), [#&#8203;91557](openclaw/openclaw#91557), [#&#8203;89909](openclaw/openclaw#89909)) Thanks [@&#8203;cxyhhhhh](https://github.com/cxyhhhhh), [@&#8203;Solvely-Colin](https://github.com/Solvely-Colin), and [@&#8203;baskduf](https://github.com/baskduf).
- Performance: prewarm TUI runtime plugins, deduplicate plugin auto-enable fanout, trim dense text-delta snapshots, and reuse prepared startup model metadata. ([#&#8203;90782](openclaw/openclaw#90782), [#&#8203;89978](openclaw/openclaw#89978), [#&#8203;91580](openclaw/openclaw#91580), [#&#8203;91531](openclaw/openclaw#91531)) Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;ai-hpc](https://github.com/ai-hpc).

##### Fixes

- Agent/session recovery: drop stale approval follow-ups after session rebind, remove drained reply-queue items by identity, recover stale main and visible replies, preserve Codex context-engine compaction ownership, lower the default compaction timeout to 180 seconds while respecting explicit configuration, and keep provider-failure terminal lifecycle state correct. ([#&#8203;85679](openclaw/openclaw#85679), [#&#8203;91450](openclaw/openclaw#91450), [#&#8203;91566](openclaw/openclaw#91566), [#&#8203;91840](openclaw/openclaw#91840), [#&#8203;91590](openclaw/openclaw#91590), [#&#8203;91361](openclaw/openclaw#91361), [#&#8203;91895](openclaw/openclaw#91895)) Thanks [@&#8203;openperf](https://github.com/openperf), [@&#8203;yetval](https://github.com/yetval), [@&#8203;joshavant](https://github.com/joshavant), [@&#8203;wangmiao0668000666](https://github.com/wangmiao0668000666), and [@&#8203;TurboTheTurtle](https://github.com/TurboTheTurtle).
- User-visible content boundaries: suppress Codex/Harmony protocol artifacts, neutralize browser and LanceDB memory media directives, redact transcript images, and preserve native `/compact` replies through source suppression. ([#&#8203;89151](openclaw/openclaw#89151), [#&#8203;91422](openclaw/openclaw#91422), [#&#8203;91425](openclaw/openclaw#91425), [#&#8203;91529](openclaw/openclaw#91529), [#&#8203;90212](openclaw/openclaw#90212)) Thanks [@&#8203;joelnishanth](https://github.com/joelnishanth), [@&#8203;pgondhi987](https://github.com/pgondhi987), [@&#8203;joshavant](https://github.com/joshavant), and [@&#8203;snowzlm](https://github.com/snowzlm).
- Channel delivery: keep WhatsApp captured replies attached to the successor controller after restart, retry Feishu rate limits, preserve Mattermost thread replies, canonicalize LINE webhook paths, restore Discord reply hydration and runtime timeout exports, and show OpenAI Realtime WebRTC assistant transcripts. ([#&#8203;85823](openclaw/openclaw#85823), [#&#8203;89659](openclaw/openclaw#89659), [#&#8203;91684](openclaw/openclaw#91684), [#&#8203;91649](openclaw/openclaw#91649), [#&#8203;90263](openclaw/openclaw#90263), [#&#8203;91686](openclaw/openclaw#91686), [#&#8203;90426](openclaw/openclaw#90426)) Thanks [@&#8203;itsuzef](https://github.com/itsuzef), [@&#8203;ladygege](https://github.com/ladygege), [@&#8203;jacobtomlinson](https://github.com/jacobtomlinson), [@&#8203;fuller-stack-dev](https://github.com/fuller-stack-dev), and [@&#8203;shushushv](https://github.com/shushushv).
- Cron: cancel active task runs cleanly, preserve terminal timeout/cancel state, and recover no-deliver tool warnings instead of silently losing the outcome. ([#&#8203;90666](openclaw/openclaw#90666), [#&#8203;90678](openclaw/openclaw#90678)) Thanks [@&#8203;ai-hpc](https://github.com/ai-hpc).
- Gateway/config/auth: share the approval runtime socket token, replace arrays explicitly in `config.patch`, skip the deleted-agent guard only for valid ACP harness sessions, surface headless LaunchAgent state, verify SQLite auth migration before cleanup, and arm QMD startup maintenance. ([#&#8203;87105](openclaw/openclaw#87105), [#&#8203;91551](openclaw/openclaw#91551), [#&#8203;91219](openclaw/openclaw#91219), [#&#8203;91614](openclaw/openclaw#91614), [#&#8203;91740](openclaw/openclaw#91740), [#&#8203;91978](openclaw/openclaw#91978)) Thanks [@&#8203;fuller-stack-dev](https://github.com/fuller-stack-dev) and [@&#8203;scotthuang](https://github.com/scotthuang).
- Providers/Codex: clarify quota errors, restore the Codex synthetic usage line, canonicalize Codex protocol assets, require API-key auth for realtime voice, normalize ACP model refs, preserve Gemma 4 `reasoning_content`, and avoid guardian review for local models. ([#&#8203;91390](openclaw/openclaw#91390), [#&#8203;91709](openclaw/openclaw#91709), [#&#8203;91507](openclaw/openclaw#91507), [#&#8203;91567](openclaw/openclaw#91567), [#&#8203;88630](openclaw/openclaw#88630), [#&#8203;91696](openclaw/openclaw#91696)) Thanks [@&#8203;hxy91819](https://github.com/hxy91819), [@&#8203;brokemac79](https://github.com/brokemac79), [@&#8203;RomneyDa](https://github.com/RomneyDa), [@&#8203;joshavant](https://github.com/joshavant), and [@&#8203;Coder-Wangyankun](https://github.com/Coder-Wangyankun).
- Updates/builds: recover package Gateway restarts after refresh failure, expose plugin convergence repair, fall back to Corepack in PATH-less pnpm environments, seed the correct Docker store packages, and keep ClawHub dry-run and publish paths reusable. ([#&#8203;91581](openclaw/openclaw#91581), [#&#8203;91599](openclaw/openclaw#91599), [#&#8203;91547](openclaw/openclaw#91547), [#&#8203;91591](openclaw/openclaw#91591)) Thanks [@&#8203;fuller-stack-dev](https://github.com/fuller-stack-dev), [@&#8203;sallyom](https://github.com/sallyom), and [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen).
- UI: require explicit user intent before opening chat sessions and drain restored chat queues after session switches. ([#&#8203;91480](openclaw/openclaw#91480)) Thanks [@&#8203;TurboTheTurtle](https://github.com/TurboTheTurtle).
- Android: avoid the `dataSync` foreground-service type for persistent nodes. ([#&#8203;80082](openclaw/openclaw#80082)) Thanks [@&#8203;davelutztx](https://github.com/davelutztx).
- Native hooks: bound relay lifetimes so abandoned native hook connections cannot linger indefinitely. ([#&#8203;91550](openclaw/openclaw#91550)) Thanks [@&#8203;joshavant](https://github.com/joshavant).

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMDEuMSIsInVwZGF0ZWRJblZlciI6IjQzLjEwMS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19-->

Reviewed-on: https://git.erwanleboucher.dev/eleboucher/homelab/pulls/1040
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants