Skip to content

fix: WebChat retries NO_REPLY into unwanted replies - #197544

Merged
roboclaw-bot merged 4 commits into
mainfrom
openclaw/tide-claw-4
Nov 12, 2026
Merged

roboclaw-bot merged 4 commits into
mainfrom
openclaw/tide-claw-4

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: human WebChat turns retry an intentional NO_REPLY into an unwanted acknowledgment, including incidental conversations that mention another person.

User Impact

The agent can remain silent when no response is useful, rather than manufacture a reply just to complete a model turn. Requests directed to the agent still run; selected human-only messages keep their existing no-agent-turn behavior. Empty answers still recover, and internal tasks and private/subagent runs still owe their required results. No configuration or data migration is needed. This PR does not deploy the running Team Gateway.

Why This Change Was Made

WebChat shares its channel name with the internal routing sentinel. The completion owner now distinguishes human input from internal provenance instead of requiring a visible result from every human WebChat turn. Direct-conversation guidance also explains when to stay silent and how to emit the exact control token, without adding per-turn state to stable prompts.

Evidence

  • Reproduced through a real isolated Gateway with two authenticated Control UI operators and a fixed HTTP model provider: on the base, the provider's NO_REPLY was retried into Acknowledged.; with the fix, the same flow completes without an assistant message or another model attempt.
  • Back-test preserves the first agent request with a copied teammate, human-only mentions during an active run, recipient notifications, subsequent explicit agent requests, and history hiding of intentional silence.
  • 48 tests pass across five focused files: authenticated mention delivery (2), reply expectations (10), direct/group guidance (10), required-result/empty-answer recovery (12), and prompt-prefix stability (14). Final run: 117.74 seconds wall time. Changed files: Gateway suite 22.70s, required-result suite 24.80s, guidance suite 3.56s. CI timing is pending.
  • Production and Gateway-server test TypeScript checks, focused type-aware lint, formatting, and git diff --check pass.
  • The first CI run identified stale canonical prompt fixtures. Reproduced the snapshot gate locally, regenerated with pnpm prompt:snapshots:gen, and verified pnpm prompt:snapshots:check passes for all six files. The two changed artifacts contain only the reviewed direct-conversation guidance and derived size/hash facts; production source is unchanged from the tested/reviewed candidate.
  • Independent Codex AutoReview, P0–P2, on the complete local candidate plus surrounding completion/command/prompt owners: scoped-clean, no actionable findings. Candidate source became commit 80827713e92cc8286228ef5c921ca61fd6d3e84d. Local ClawSweeper was unavailable because its existing checkout was dirty; hosted ClawSweeper remains the selected fallback review.
  • Simplification: reuse the existing completion and conversation-guidance owners; no new state, config, retry machinery, or token parser. Production delta: +17/-3; test delta: +29/-4, plus regenerated fixtures. The separate 25-line test allocation covers the authenticated regression and internal-result preservation without raising the shared scalar.

The fixed-provider test proves OpenClaw's assembled guidance and completion/delivery behavior, not live-model intent accuracy. It does not exercise a deployed Gateway or live external channel.

Contributor credit

Requested and landing authorized by @vincentkoc, credited as co-author.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 12, 2026 05:10
Accept explicit silence for human WebChat input without weakening empty-answer recovery or internal result obligations. Restore direct-conversation silence guidance and cover incidental mentions through authenticated chat.send.

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 8bd3fa11-8b7a-4c18-9b8c-54ad35c18e47
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime agents Agent runtime and tooling size: S labels Nov 12, 2026
roboclaw-bot and others added 2 commits November 12, 2026 05:17
Regenerate canonical prompt fixtures for the reviewed silence guidance. The prior snapshot gate reproduced locally; canonical regeneration changes only the intended direct guidance and derived size/hash facts.

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 73b4692f-e9e5-49c7-bab9-c32a16c45f14
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
@roboclaw-bot
roboclaw-bot merged commit 4c04a9e into main Nov 12, 2026
130 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/tide-claw-4 branch November 12, 2026 05:29
steipete added a commit that referenced this pull request Nov 12, 2026
Await catalog publishing price assertions, supply projection owner facts in maintained benchmarks, and wait for actual observer publication. Keep fingerprint tests independent of utility discovery. Align internal and browser fixtures with the WebChat policy introduced by #197544 while preserving terminal and custody assertions.
steipete added a commit that referenced this pull request Nov 12, 2026
…ps (#197599)

* fix: prepare usage pricing before synchronous consumers

Publish the model catalog owner’s local source or absence into the existing pricing projection and retain prepared prices through each operation. Serialize async source reads with the existing writer queue, remove synchronous pricing reads and migrate callers without changing cost precedence.

Regression tests cover repeated absent-file formatting, retained prices after eviction, read/write publication order and consumer readiness. Owner counters show 66 warm lstatSync calls reduced to zero. Preserve the cold async scheduling tradeoff separately from warm timing gains.

* test: complete async pricing consumer migration

Await catalog publishing price assertions, supply projection owner facts in maintained benchmarks, and wait for actual observer publication. Keep fingerprint tests independent of utility discovery. Align internal and browser fixtures with the WebChat policy introduced by #197544 while preserving terminal and custody assertions.

* test: remove superseded usage pricing line allocation

* test: stop provider services before research fixture retirement

* fix(gateway): regenerate inherited config hint validator

* fix(usage): preserve lazy pricing and share cold source reads

* fix(logging): keep catalog refresh working after logging starts

* test(usage): select the recreation fixture agent explicitly
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
…ps (openclaw#197599)

* fix: prepare usage pricing before synchronous consumers

Publish the model catalog owner’s local source or absence into the existing pricing projection and retain prepared prices through each operation. Serialize async source reads with the existing writer queue, remove synchronous pricing reads and migrate callers without changing cost precedence.

Regression tests cover repeated absent-file formatting, retained prices after eviction, read/write publication order and consumer readiness. Owner counters show 66 warm lstatSync calls reduced to zero. Preserve the cold async scheduling tradeoff separately from warm timing gains.

* test: complete async pricing consumer migration

Await catalog publishing price assertions, supply projection owner facts in maintained benchmarks, and wait for actual observer publication. Keep fingerprint tests independent of utility discovery. Align internal and browser fixtures with the WebChat policy introduced by openclaw#197544 while preserving terminal and custody assertions.

* test: remove superseded usage pricing line allocation

* test: stop provider services before research fixture retirement

* fix(gateway): regenerate inherited config hint validator

* fix(usage): preserve lazy pricing and share cold source reads

* fix(logging): keep catalog refresh working after logging starts

* test(usage): select the recreation fixture agent explicitly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. docs Improvements or additions to documentation gateway Gateway runtime size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant