Repository navigation
Conversation
|
🦞👀 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. |
|
Codex review: stale review; fresh review needed. Summary Next step Review history (3 earlier review cycles) |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
The current head CI has finished. Its only failing leaf is the missing @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Published 10.10 follow-up: I updated the description to distinguish the release's existing #174900 catalog recovery and #181204 busy-thread correction from the two remaining gaps here: omitted WebChat origin and catalog recovery after the last child's execution protection ends. Exact published-tag links and the main-line counterpart #188698 are included. A selective port to official 10.10 packages completed the real parent/child/completion/same-child-follow-up flow on both macOS and Linux. The body labels this as combined installed-port evidence and retains the original exact-head results, broader test failures, duplicate-delivery limits, and remaining denial/reassignment proof gap. Since 10.10 has shipped, please consider this for release maintenance; the WebChat hunk remains branch-specific. This description update does not change head |
Closes #188524
Related: #153354
Targets
release/2026.10.10. The WebChat scope argument still exists on this branch;mainretired it in #181851. The catalog-continuity change is also submitted separately formain: #188698.What Problem This Solves
Fixes native child completions losing their initiating WebChat context and replacing the parent thread before it can follow up with the same child.
User Impact
WebChat users can receive an automatic child completion and continue with that child while keeping the same native parent thread and accepted tools, including when the session has saved external delivery history. No outbound recipient, configuration, or migration is added. Duplicate visible completion replies remain outside this fix.
Why This Change Was Made
Two existing boundaries need to remain connected. First, pass the normalized WebChat-only origin to the existing host-issued completion scope. Explicit channel precedence and the other channels' behavior are preserved.
Second, the last child's completion releases live-child execution protection before delivery. The existing catalog-recovery guard then misses that automatic continuation. Let the existing completion-delivery owner identify its exact in-flight parent/child/session/run/client custody and recover the native thread's accepted catalog for that delivery. Recheck that custody after awaited metadata reads. Keep runtime, home, transport, catalog fingerprints, current tool-execution authority, and ordinary-turn behavior intact. This is a bounded completion-lifetime fix, rather than the older deployment workaround that weakened runtime matching.
Published 2026.10.10: release maintenance scope
The release notes include #174900 for native catalog continuity and #181204 for busy-thread fallback classification. This PR builds on the former and does not duplicate the latter. Two gaps remain in the published tag:
requesterOrigin, losing the initiating WebChat context.This PR joins those two boundaries for WebChat continuation. The catalog-only main-line submission is #188698. The remaining busy session-retirement correction is separate in #188640; JSONL backup restoration is separate in #188522. Since 10.10 has now shipped, this remains a release-maintenance candidate rather than a claim that these changes were included in the release. Main retired the WebChat scope argument in #181851, so the release-specific hunk should not be applied to main mechanically.
Evidence
Additional published-release check — November 3, 2026
The WebChat and completion-catalog changes were selectively ported to official 10.10 packages, alongside the separate retirement correction from #188640. All 50 focused checks for the combined port passed. On both macOS and Linux, a real-model authenticated WebChat run completed parent → child → automatic completion → same parent → follow-up to the same child, with the same parent thread and physical client, the remembered child marker, and settled shipped-CLI history. Linux also executed
session_statusafter completion. Each run produced one visible final success reply; that observation does not establish an exactly-once delivery guarantee.This is additional evidence from the installed combined port, not a new exact-head run of this PR. Native metadata was inspected after the runs without an independent before-run snapshot. Downstream native-dispatch denial and custody-reassignment proof remain incomplete. Historical exact-head checks, inherited failures, and prior duplicate-reply observations remain below and are not relabeled as current proof.
git diff --checkpass. Existing catalog regression cases grow by 118 net test lines, without additional fixture launches or a shared test-ceiling increase.06d598c818155a5ac6ad00c9611bbb4b6ed57d45found no actionable P0–P2 findings for the WebChat delta and, separately, the complete release catalog delta and owner/authority context. The reviewed catalog delta was applied unchanged on top of the WebChat commit. Tests were executed separately, not by the reviewer.pnpm build:runtimepasses on exact combined head12d7d8d051888503b68a4ce3ff1bd73ca2f63945(53.1 s). A real-model authenticated WebChat run on that source/build completes parent → child → automatic completion → parent continuation → follow-up to the same child. The parent and physical client stay the same through both resumptions; the child returns its remembered marker; all 44 accepted functions and the canonical native metadata digest remain unchanged. Shipped CLI history confirms the visible result, preserved synthetic Telegram context/origin, and settled session.thread-shell-environment.native.test.tsand two process-inspection permission errors intransport-startup.test.ts. This full lane is not claimed as passing; no assertions, timeouts, retries, skips, or expected-failure settings were weakened. The separate WebChat delta is covered by the dispatcher/core checks above and current-head CI.Updated release base and isolated Linux verification (2026-10-31)
Current head:
92bc37d0739f288b25d1f9fc90081c68ee0c5d98. Merged release base6b96f139020b581adecfde84736331a710492c31specifically to remove the inherited missing-helper CI failure described below. Upstream #188809 (a1dbc50ba87819f2a42e8e554187898a59584571) suppliestest/helpers/gateway-startup.ts; its SHA-256 in this candidate exactly matches the repaired release base (125a2b72ce8bcdcebf04dd323f90728778a711cc3893a0b62229093b758b32dd). No local stub, check suppression, baseline relaxation, or failure exception was introduced.Independent read-only review found no actionable integration findings: the PR's same ten-file delta and added/removed lines are preserved relative to the new base, including the newer release Stop/process-cleanup ownership. The merge is conflict-free and
git diff --checkpasses.On a fresh isolated Linux checkout with Node v24.22.1 and pinned pnpm 12.15.0,
pnpm build:runtimepasses (8m23.3s), andpnpm openclaw --helppasses using task-owned state/config paths. No operator Gateway, installed package, live service or production data was changed. Dependency-bundler warnings about direct eval in third-party web-tree-sitter remain warnings, not a clean-warning claim.The real-model continuity trace below remains evidence from its stated prior head
12d7d8d; it was not rerun or relabeled as fresh live proof after the base merge. Fresh hosted CI for the new head is in progress and is not yet claimed passing.Historical CI failure on the previous head
Historical CI on the previous head
12d7d8d: all jobs completed. The remaining failure ischeck-test-types-core-5, withTS2307for../../test/helpers/gateway-startup.jsatsrc/gateway/server.required-placement-scopes.test.ts:5; the aggregate gate also fails. The runner checked mergef75e317e8cfe8816df932b2da73952600414e38c, whose first parent is the newer release basef47d762e6fbc30950bbb81a18d4a5eec22e76f6afrom #188692. That base already imports the missing helper. Its test blob and the merge's test blob are identical (bb91488e5808fe5b86d39e119e2aad6f2b5a762f), and the helper is absent from the base tree. The original release base and this PR's own head do not contain that import.pnpm test:ci-failed 188526initially calls this job new relative to main, without comparing the selected scope; the exact release-base source comparison above establishes the inherited omission. The remaining CI blocker is in the updated release base. No rerun or unrelated source change was used to hide it.This exact-head live run supersedes the earlier routing-only probe that rotated the parent. It used Node 24.22.1 and Codex 0.164.0, one original request, isolated synthetic state, a synthetic non-recipient Telegram history with no external channels configured, and disabled model fallbacks. Two child completion announcements produced two identical final replies. The proof qualifies the requested routing/thread/catalog/child continuity; it does not qualify exactly-once visible delivery or general fallback behavior. CI and bot reviews of the prior head apply only to that prior head.
Sanitized exact-candidate runtime proof