Skip to content

fix(ci): align chat notice tests with compact disclosures - #175086

Merged
steipete merged 1 commit into
mainfrom
fix/ui-plugin-steering-disclosure-20261017
Oct 17, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/ui-plugin-steering-disclosure-20261017

Conversation

@steipete

@steipete steipete commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The plugin-steering browser test times out after #173838 intentionally placed operational notices inside a compact system-event disclosure.

User Impact

No user-visible behavior changes. Keep the existing compact disclosure design and verify that users can expand it to read Advisor guidance without exposing the raw internal steering payload.

Why This Change Was Made

Open and assert the outer collapsed disclosure before exercising the original inner notice. Preserve every guidance, timestamp, collapse, privacy, user-bubble, tool-row and viewport assertion. The alignment check retains its 2px tolerance around the intended 28px expanded-event inset (8px outer margin plus 20px body padding).

The system-event sibling also uses the platform search modifier so its existing search assertions execute on macOS as well as Linux/Windows. No production code, shared fixture, timeout, retry or skip changes.

Evidence

  • Reproduced all four original failures on main with the native UI e2e runner: 104.85s command wall. Retained browser diagnostics show the intended “1 system event” summary.
  • A first candidate that only opened the wrapper reached the original content checks and failed at the obsolete standalone alignment (actual 28px); this repair checks the exact nested inset with the original tolerance.
  • All six cases across plugin steering and system-event disclosure pass through the native UI e2e config with --maxWorkers=1: 56.07s Vitest / 62.57s command wall. The four-case steering file takes about six seconds of browser test time; the rest is native fixture/build preparation.
  • Targeted UI e2e chat types, typed core lint, boundary lint, formatting and whitespace pass. Independent final P2 review is scoped-clean.
  • Aggregate check-changed completed with two inherited failing gates: the max-lines suppression ratchet (chat-message test, config page state, sessions page state) and dead-export scans (worktree registry, combined store paths, node list types, user profiles, and Slack test harness). All other selected gates passed. These files and exports are unchanged by this two-test diff. The aggregate comparison used discovery main 83ab360eeda3; the candidate's actual parent is 00d83721efb9.

Test-only READY handoff: the full 814-file UI e2e inventory was not run locally on the loaded Mac. PR CI supplies broad proof; no workflow dispatch, CI rerun or unchanged push was requested. Originating failure: main hourly 38999305057.

Open the system-event disclosure before exercising projected plugin
steering. Preserve guidance, raw-payload exclusion, timestamps, native
collapse, tool rows and viewport checks. Keep the 2px alignment tolerance
around the approved 28px nested-event inset.

Use the platform search modifier in the system-event sibling so its
existing search assertions also execute on macOS.

Before: all four steering cases fail at the old visibility expectation.
After: all six cases across both files pass via native UI e2e with one
worker, 56.07s Vitest / 62.57s command wall. Targeted types, typed and
boundary lint, formatting and P2 review pass. No production changes.
@clawsweeper

clawsweeper Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review October 17, 2026 04:15
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T04:17:12.948442Z e95bc51 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete merged commit 7270ca0 into main Oct 17, 2026
133 of 137 checks passed
@steipete
steipete deleted the fix/ui-plugin-steering-disclosure-20261017 branch October 17, 2026 04:24
steipete added a commit that referenced this pull request Oct 17, 2026
)

Related: #170158

## What Problem This Solves

Fixes: lowercase or mixed-case `NO_REPLY` tokens leak into replies, and truncated heartbeat tokens such as `no_r` are delivered as alerts.

## User Impact

`NO_REPLY` is case-insensitive: whole replies stay silent, one leading control line is removed, and a standalone trailing control line is removed while the answer is delivered. Inline, quoted, JSON, and punctuated mentions remain visible. Recorded visible replies are never reclassified.

Only heartbeat-aware handling accepts strict truncated prefixes of at least four characters (`NO_R`, `no_r`, `No_Repl`). Ordinary replies keep these fragments visible. Configured `showOk` acknowledgments, substantive alerts, and `HEARTBEAT_OK` casing retain their existing behavior.

## Why This Change Was Made

Extends @Irish-Joseph's heartbeat repair on current main with the approved global casing behavior. `no_r` already contains the underscore; the original gap was casing, not an earlier truncation boundary.

The existing terminal classifier remains the owner of final reply preparation and publishes its disposition. Main now shares its full-text preparation helper with stored history; the merge keeps that refactor and applies casing there. Shared acknowledgement readers require explicit heartbeat context before accepting a truncated prefix; ordinary history, cron output, queued events, and pending-delivery recovery preserve fragments. The existing leading-line helper is shared by terminal preparation, streaming, and stored-row handling; downstream delivery continues to consume prepared text and recorded facts. The earlier duplicate classifier-only regression has been removed; the heartbeat runner covers suppression and `showOk`.

This addresses token handling, not the separate cross-account routing allegation in the linked issue. No configuration, schema, or provider-prompt change is required.

## Evidence

The regression reproduced on main through the actual Gateway: both a deterministic OpenAI-compatible provider and native Ollama `qwen3:4b` returned raw `no_reply` as a visible optional reply. The new terminal regressions failed on unchanged production code (5 expected failures; 7.75s wall).

After the fix, all nine real Gateway RPC cases passed on macOS. Native `qwen3:4b` emitted raw lowercase `no_reply` and produced no payload with `disposition: silent` (23.048s). The deterministic cases covered lowercase/mixed-case silence, leading/trailing answer retention, literal suffix preservation, ordinary `no_r`, inline text, and punctuation (54.453s combined RPC wall time including the model control).

- All 14 focused test files passed: 361 tests across seven shards (2053.83s wrapper wall time, including worker preparation).
- The final heartbeat-runner rerun passed all 39 tests after the table consolidation (798.45s wall).
- The follow-up scope repair passed all 162 tests in eight focused files (575.51s wrapper wall, including compiled-worker preparation), covering general/public history, actual versus other wake context, cron payloads, queued events, and pending-delivery retention. The published-head regression reproduced through the real display projection (`display: true` `no_r` disappeared) and through six failing cron/event/pending tests before repair.
- Core types and all eight initially selected test type graphs passed (333.56s wall); after the scope repair, core types plus Gateway, infrastructure, messaging, and cron test graphs passed again. Both changed docs passed MDX sanity.
- `pnpm build qaRuntime` passed on the casing implementation (22m 28.4s). After merging main, all 67 terminal/history tests passed in 305.51s, core types passed, and a fresh isolated Codex branch review was clean through P2 with explicit source context for unchanged indirect consumers.
- Assertion-safety, line-cap, database worker/dialect, timeout-race, config-doc, and plugin-inventory checks passed. File-scoped type-aware lint passed again after the main merge in 116.68s after installing the existing locked lint-tool package; `git diff --check` passed.

ClawSweeper reviewed exact head `212de6515cc367a4acbdb146f4844da4a47c1928` with no findings; its remaining hold is only the live heartbeat/channel proof limitation below.

The max-lines ratchet still reports existing suppressions in `ui/src/pages/chat/components/chat-message.test.tsx`, `ui/src/pages/config/config-page-state.ts`, and `ui/src/pages/sessions/sessions-page-state.ts`. This reproduces against the exact merged-main base `86ad4c4ec0b` using a temporary Git index; these files are unchanged by this PR. Mock-export safety passes after the main merge.

The earlier CI run [38999252758](https://github.com/openclaw/openclaw/actions/runs/38999252758) completed with 51 successful jobs and two failures outside this change; `openclaw/ci-gate` is red. The automatic table labels both unknown because no matching jobs exist in its selected main run, so the attribution below is manual source evidence. `chat-plugin-steering.e2e.test.ts` still waits for inner notices without opening the new collapsed system-event group introduced by main commit `d5c7055a700` (#173838); the test, grouping, and renderer are unchanged from the merged base. `server.hooks-admission.test.ts` fails during Gateway startup with `STATE_DATABASE_READ_ADMISSION_INVALIDATED`, before model or reply handling; its startup, state-lifecycle, and fixture sources are unchanged from the merged base. Both files from that startup shard passed locally: 23 tests (737.58s wrapper wall, including preparation). This is a non-reproduction of the CI startup race, not a claimed fix; all relevant startup/state owners are byte-identical to the pinned base.

The main merge includes `7d3a763f92e`, which corrected the earlier directive-delivery fixture failure. Prior native-settlement fixture failures were recorded in an earlier CI run; the final run's extension test jobs passed.

### Recovery CI attribution after the main merge

CI run [39001336140](https://github.com/openclaw/openclaw/actions/runs/39001336140), job `checks-node-changed-compact-large32-2`, failed three assertions in `subagent-parent-recovery.restart-integration.test.ts`. The checkout log identifies its exact base as `a5c62d0f47706ccf92ebc0913da4065a43b482ad`; its PR head was `00575802b12298b13add463b2c125ddad7dfd8f2`.

Only that test file was replayed on each SHA using the repository's pinned Bun on macOS, one worker, `--no-cache`, and separate module-cache paths. Both runs had **3 failed / 18 passed**, with identical test names, assertion messages, and missing `requesterSettleWake` diff. PR-head wall time: **585.47s** (445.17s Vitest); exact-base wall time: **610.69s** (523.00s Vitest), including cold worker preparation and cleanup.

This is inherited from main: the failing fixtures omit `operatorRecoverySource`; registry restoration closes the unavailable completion authority and clears `requesterSettleWake` before the expected callback. Commit `37d210e4aaf` added the authority-restoration contract and updated the earlier warm-restart fixture, while these scenarios remain unseeded. The test, fixture, registry recovery, and completion-mutation owner blobs are identical between the two SHAs. No silence token reaches the failing wake-admission assertions. No classifier or test change was made for this follow-up.

The preceding head merged main through `611806e42a47f7f57099b55abe668c17b0f4c912`, including the plugin-steering UI test repair in `7270ca0bc2586f40ae68f85eb45ddcf69efeb256` (#175086). Head: `b79806220efc22113c86484028750dd3f4594d11`. The clean merge preserves the reviewed NO_REPLY change; its sole overlap is main exporting an existing text-block helper. CI run [39005294711](https://github.com/openclaw/openclaw/actions/runs/39005294711) ran on that head. Both UI E2E shards passed. Its compact Node job failed with the same three recovery assertions and missing-wake diff reproduced on the exact base above; the new job log was fetched once and checked. The PostgreSQL attempts also reached the outer job timeout, as investigated below. This does not claim a green CI gate.

### PostgreSQL conformance attribution and refreshed main

Both cancelled attempts in run [39005294711](https://github.com/openclaw/openclaw/actions/runs/39005294711) checked out merge `117ee908` against exact base `d4623c19a35283421beddff7b04a38dbcd009cb7`. Their first failure was the 300-second timeout in `matrix-roots.postgres.test.ts` ("ports every retained token/account root with the state family and restores fresh namespaces"); after 1523.26s and 1546.18s in the infrastructure project, the jobs timed out during the Doctor suite. Both attempt logs were fetched once.

Only the affected Matrix file was replayed through the repository PostgreSQL conformance runner on the PR head and exact base, each against a fresh isolated PostgreSQL 17 cluster using the CI image, Node 24.22.0 on macOS arm64, one worker, and `--no-cache`. Both produced **2 failed / 1 passed**: the same primary 300-second timeout (PR 300217ms; base 300102ms), the same subsequent synthetic-config ENOENT assertion, and a passing rollback case. Total wrapper wall times were **856.28s PR / 609.26s base**, including schema checks, worker preparation, and cleanup. Scheduled main run [39002992814](https://github.com/openclaw/openclaw/actions/runs/39002992814) at `737a0ac25447438a039295a6200ced99d6bc4a6d` independently has the same primary timeout (300053ms). This establishes the timeout as inherited; the secondary local error is not claimed identical to every CI attempt.

No SQL, Kysely query, casing predicate, index, transaction, engine branch, or database traversal was changed by this PR. The stored-row changes classify already-loaded text in JavaScript. During both local stalls the persistent PostgreSQL connection was idle after the retained-agent INSERT, with no lock wait. The exact stalled worker operation remains unresolved; this does not establish Doctor as the cause. No classifier change or timeout increase was made to accommodate the failure.

The branch now merges main through `2044a2cab833b8c88d7c679c396cdfb51f455d13`, including #175186 (`abbfaa3a31d`, recovery fixtures) and current PostgreSQL performance repairs. Head: `212de6515cc367a4acbdb146f4844da4a47c1928`. The merge is clean and does not alter the reviewed NO_REPLY patch. Fresh exact-head CI run [39011169552](https://github.com/openclaw/openclaw/actions/runs/39011169552) **passed**, including `openclaw/ci-gate` and the previously failing compact recovery job. [PostgreSQL conformance](https://github.com/openclaw/openclaw/actions/runs/39011169552/job/117334053350) **passed in 26m56s** (06:48:06–07:15:02 UTC), compared with **17m22s** for passing-main run [38995631641](https://github.com/openclaw/openclaw/actions/runs/38995631641), job `117287635042`: 9m34s longer. The full job completed without a retry; no individual main change is claimed as the proven cause of the improvement.

Production delta: +73/-39 (net +34); tests: +186/-76 (net +110); docs: +5/-5. The production increase is the strict prefix predicate and explicit context propagation through shared readers. This replaces the earlier public-session-only guards and prevents ordinary pending replies from being discarded. Existing helpers replace duplicated prefix branches. No model-facing prompt text changed.

Limitations: a running-Gateway heartbeat/channel round trip for truncated prefixes with `showOk` off/on was not run; the heartbeat-runner regression covers that policy. Live casing proof on the preceding head exercised Gateway preparation with synthetic sessions and `deliver: false`, not a real Telegram send. All local proof ran on macOS. The isolated Gateway and fixture server were stopped cleanly; shared Ollama was left running.

Co-authored-by: Irish-Chennappillil <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
Open the system-event disclosure before exercising projected plugin
steering. Preserve guidance, raw-payload exclusion, timestamps, native
collapse, tool rows and viewport checks. Keep the 2px alignment tolerance
around the approved 28px nested-event inset.

Use the platform search modifier in the system-event sibling so its
existing search assertions also execute on macOS.

Before: all four steering cases fail at the old visibility expectation.
After: all six cases across both files pass via native UI e2e with one
worker, 56.07s Vitest / 62.57s command wall. Targeted types, typed and
boundary lint, formatting and P2 review pass. No production changes.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
…claw#170972)

Related: openclaw#170158

## What Problem This Solves

Fixes: lowercase or mixed-case `NO_REPLY` tokens leak into replies, and truncated heartbeat tokens such as `no_r` are delivered as alerts.

## User Impact

`NO_REPLY` is case-insensitive: whole replies stay silent, one leading control line is removed, and a standalone trailing control line is removed while the answer is delivered. Inline, quoted, JSON, and punctuated mentions remain visible. Recorded visible replies are never reclassified.

Only heartbeat-aware handling accepts strict truncated prefixes of at least four characters (`NO_R`, `no_r`, `No_Repl`). Ordinary replies keep these fragments visible. Configured `showOk` acknowledgments, substantive alerts, and `HEARTBEAT_OK` casing retain their existing behavior.

## Why This Change Was Made

Extends @Irish-Joseph's heartbeat repair on current main with the approved global casing behavior. `no_r` already contains the underscore; the original gap was casing, not an earlier truncation boundary.

The existing terminal classifier remains the owner of final reply preparation and publishes its disposition. Main now shares its full-text preparation helper with stored history; the merge keeps that refactor and applies casing there. Shared acknowledgement readers require explicit heartbeat context before accepting a truncated prefix; ordinary history, cron output, queued events, and pending-delivery recovery preserve fragments. The existing leading-line helper is shared by terminal preparation, streaming, and stored-row handling; downstream delivery continues to consume prepared text and recorded facts. The earlier duplicate classifier-only regression has been removed; the heartbeat runner covers suppression and `showOk`.

This addresses token handling, not the separate cross-account routing allegation in the linked issue. No configuration, schema, or provider-prompt change is required.

## Evidence

The regression reproduced on main through the actual Gateway: both a deterministic OpenAI-compatible provider and native Ollama `qwen3:4b` returned raw `no_reply` as a visible optional reply. The new terminal regressions failed on unchanged production code (5 expected failures; 7.75s wall).

After the fix, all nine real Gateway RPC cases passed on macOS. Native `qwen3:4b` emitted raw lowercase `no_reply` and produced no payload with `disposition: silent` (23.048s). The deterministic cases covered lowercase/mixed-case silence, leading/trailing answer retention, literal suffix preservation, ordinary `no_r`, inline text, and punctuation (54.453s combined RPC wall time including the model control).

- All 14 focused test files passed: 361 tests across seven shards (2053.83s wrapper wall time, including worker preparation).
- The final heartbeat-runner rerun passed all 39 tests after the table consolidation (798.45s wall).
- The follow-up scope repair passed all 162 tests in eight focused files (575.51s wrapper wall, including compiled-worker preparation), covering general/public history, actual versus other wake context, cron payloads, queued events, and pending-delivery retention. The published-head regression reproduced through the real display projection (`display: true` `no_r` disappeared) and through six failing cron/event/pending tests before repair.
- Core types and all eight initially selected test type graphs passed (333.56s wall); after the scope repair, core types plus Gateway, infrastructure, messaging, and cron test graphs passed again. Both changed docs passed MDX sanity.
- `pnpm build qaRuntime` passed on the casing implementation (22m 28.4s). After merging main, all 67 terminal/history tests passed in 305.51s, core types passed, and a fresh isolated Codex branch review was clean through P2 with explicit source context for unchanged indirect consumers.
- Assertion-safety, line-cap, database worker/dialect, timeout-race, config-doc, and plugin-inventory checks passed. File-scoped type-aware lint passed again after the main merge in 116.68s after installing the existing locked lint-tool package; `git diff --check` passed.

ClawSweeper reviewed exact head `212de6515cc367a4acbdb146f4844da4a47c1928` with no findings; its remaining hold is only the live heartbeat/channel proof limitation below.

The max-lines ratchet still reports existing suppressions in `ui/src/pages/chat/components/chat-message.test.tsx`, `ui/src/pages/config/config-page-state.ts`, and `ui/src/pages/sessions/sessions-page-state.ts`. This reproduces against the exact merged-main base `d04bb3f7c60` using a temporary Git index; these files are unchanged by this PR. Mock-export safety passes after the main merge.

The earlier CI run [38999252758](https://github.com/openclaw/openclaw/actions/runs/38999252758) completed with 51 successful jobs and two failures outside this change; `openclaw/ci-gate` is red. The automatic table labels both unknown because no matching jobs exist in its selected main run, so the attribution below is manual source evidence. `chat-plugin-steering.e2e.test.ts` still waits for inner notices without opening the new collapsed system-event group introduced by main commit `7f1ddc8af16` (openclaw#173838); the test, grouping, and renderer are unchanged from the merged base. `server.hooks-admission.test.ts` fails during Gateway startup with `STATE_DATABASE_READ_ADMISSION_INVALIDATED`, before model or reply handling; its startup, state-lifecycle, and fixture sources are unchanged from the merged base. Both files from that startup shard passed locally: 23 tests (737.58s wrapper wall, including preparation). This is a non-reproduction of the CI startup race, not a claimed fix; all relevant startup/state owners are byte-identical to the pinned base.

The main merge includes `fe24a93547e`, which corrected the earlier directive-delivery fixture failure. Prior native-settlement fixture failures were recorded in an earlier CI run; the final run's extension test jobs passed.

### Recovery CI attribution after the main merge

CI run [39001336140](https://github.com/openclaw/openclaw/actions/runs/39001336140), job `checks-node-changed-compact-large32-2`, failed three assertions in `subagent-parent-recovery.restart-integration.test.ts`. The checkout log identifies its exact base as `a2a864db4599f32a4a920e4573cb7953c346d760`; its PR head was `00575802b12298b13add463b2c125ddad7dfd8f2`.

Only that test file was replayed on each SHA using the repository's pinned Bun on macOS, one worker, `--no-cache`, and separate module-cache paths. Both runs had **3 failed / 18 passed**, with identical test names, assertion messages, and missing `requesterSettleWake` diff. PR-head wall time: **585.47s** (445.17s Vitest); exact-base wall time: **610.69s** (523.00s Vitest), including cold worker preparation and cleanup.

This is inherited from main: the failing fixtures omit `operatorRecoverySource`; registry restoration closes the unavailable completion authority and clears `requesterSettleWake` before the expected callback. Commit `6bb74a39f61` added the authority-restoration contract and updated the earlier warm-restart fixture, while these scenarios remain unseeded. The test, fixture, registry recovery, and completion-mutation owner blobs are identical between the two SHAs. No silence token reaches the failing wake-admission assertions. No classifier or test change was made for this follow-up.

The preceding head merged main through `0d125df76b7ece8bd1d4e155226f699e480010db`, including the plugin-steering UI test repair in `3083b479722cbf3f485810cb6da988557c71fae1` (openclaw#175086). Head: `b79806220efc22113c86484028750dd3f4594d11`. The clean merge preserves the reviewed NO_REPLY change; its sole overlap is main exporting an existing text-block helper. CI run [39005294711](https://github.com/openclaw/openclaw/actions/runs/39005294711) ran on that head. Both UI E2E shards passed. Its compact Node job failed with the same three recovery assertions and missing-wake diff reproduced on the exact base above; the new job log was fetched once and checked. The PostgreSQL attempts also reached the outer job timeout, as investigated below. This does not claim a green CI gate.

### PostgreSQL conformance attribution and refreshed main

Both cancelled attempts in run [39005294711](https://github.com/openclaw/openclaw/actions/runs/39005294711) checked out merge `117ee908` against exact base `4019cbff5715c4516e22aa7f4d12f6ad3ba99461`. Their first failure was the 300-second timeout in `matrix-roots.postgres.test.ts` ("ports every retained token/account root with the state family and restores fresh namespaces"); after 1523.26s and 1546.18s in the infrastructure project, the jobs timed out during the Doctor suite. Both attempt logs were fetched once.

Only the affected Matrix file was replayed through the repository PostgreSQL conformance runner on the PR head and exact base, each against a fresh isolated PostgreSQL 17 cluster using the CI image, Node 24.22.0 on macOS arm64, one worker, and `--no-cache`. Both produced **2 failed / 1 passed**: the same primary 300-second timeout (PR 300217ms; base 300102ms), the same subsequent synthetic-config ENOENT assertion, and a passing rollback case. Total wrapper wall times were **856.28s PR / 609.26s base**, including schema checks, worker preparation, and cleanup. Scheduled main run [39002992814](https://github.com/openclaw/openclaw/actions/runs/39002992814) at `bf15ffbe562dc7e39fd861bdbf33b059f18cb064` independently has the same primary timeout (300053ms). This establishes the timeout as inherited; the secondary local error is not claimed identical to every CI attempt.

No SQL, Kysely query, casing predicate, index, transaction, engine branch, or database traversal was changed by this PR. The stored-row changes classify already-loaded text in JavaScript. During both local stalls the persistent PostgreSQL connection was idle after the retained-agent INSERT, with no lock wait. The exact stalled worker operation remains unresolved; this does not establish Doctor as the cause. No classifier change or timeout increase was made to accommodate the failure.

The branch now merges main through `1a340b7f585a572afc58e826877fa07d93d9deaa`, including openclaw#175186 (`49251f02275`, recovery fixtures) and current PostgreSQL performance repairs. Head: `212de6515cc367a4acbdb146f4844da4a47c1928`. The merge is clean and does not alter the reviewed NO_REPLY patch. Fresh exact-head CI run [39011169552](https://github.com/openclaw/openclaw/actions/runs/39011169552) **passed**, including `openclaw/ci-gate` and the previously failing compact recovery job. [PostgreSQL conformance](https://github.com/openclaw/openclaw/actions/runs/39011169552/job/117334053350) **passed in 26m56s** (06:48:06–07:15:02 UTC), compared with **17m22s** for passing-main run [38995631641](https://github.com/openclaw/openclaw/actions/runs/38995631641), job `117287635042`: 9m34s longer. The full job completed without a retry; no individual main change is claimed as the proven cause of the improvement.

Production delta: +73/-39 (net +34); tests: +186/-76 (net +110); docs: +5/-5. The production increase is the strict prefix predicate and explicit context propagation through shared readers. This replaces the earlier public-session-only guards and prevents ordinary pending replies from being discarded. Existing helpers replace duplicated prefix branches. No model-facing prompt text changed.

Limitations: a running-Gateway heartbeat/channel round trip for truncated prefixes with `showOk` off/on was not run; the heartbeat-runner regression covers that policy. Live casing proof on the preceding head exercised Gateway preparation with synthetic sessions and `deliver: false`, not a real Telegram send. All local proof ran on macOS. The isolated Gateway and fixture server were stopped cleanly; shared Ollama was left running.

Co-authored-by: Irish-Chennappillil <[email protected]>
Co-authored-by: Peter Steinberger <[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.

1 participant