Repository navigation
test(gateway): keep cancellation fixture open after delivery - #170930
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 14, 2026
) ## What Problem This Solves The cancellation case in `src/gateway/server.chat.canonical-publication.test.ts` waited for a follow-up model request that can no longer occur after a final delivered message. Commit 12e06d3 (openclaw#170653) deliberately ends ordinary turns after a confirmed final source reply. Message sends are final by default. Set `final: false` only on the cancellation scenario's synthetic message send, so it reaches the pending follow-up request that the test intends to abort. Preserve every cancellation, sanitized publication, attachment download and idempotent replay assertion. Other cases retain default finality. ## Evidence - Failing main evidence: https://github.com/openclaw/openclaw/actions/runs/38378024699/job/115231445890, `chat.send preserves canonical sanitized message publication through chat.history and artifacts.download`: `final request was not held`. - Culprit verified against its parent-relative patch: 12e06d3 removes the message-tool-only restriction and installs whole-turn completion after a final delivered source reply. Current `resolveMessageToolSourceReplyFinal` treats omitted `final` as true. - Changed-file oxfmt, oxlint and `git diff --check` pass. One isolated Codex review covers this patch and the independent recovered-output fixture patch; status: scoped-clean at P2, no actionable findings. - Original failing case passed in PR CI run [38380534855](https://github.com/openclaw/openclaw/actions/runs/38380534855/job/115239951360): 37.186 seconds; Vitest 87.83 seconds. All ordinary PR CI leaves and required aggregate contexts passed on reviewed head `0c0421ce8846d73b9491b409fc9a50214d61eb45`. No local test suite was run. - Production LOC: 0. Test LOC: +2/-0. No production behavior, SQL/request count, T1, schema, SDK or update-path change. No SQL harness or local broad checks run. No removed production checks or new accepted edge cases.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The cancellation case in
src/gateway/server.chat.canonical-publication.test.tswaited for a follow-up model request that can no longer occur after a final delivered message. Commit 7a5529f (#170653) deliberately ends ordinary turns after a confirmed final source reply. Message sends are final by default.Set
final: falseonly on the cancellation scenario's synthetic message send, so it reaches the pending follow-up request that the test intends to abort. Preserve every cancellation, sanitized publication, attachment download and idempotent replay assertion. Other cases retain default finality.Evidence
chat.send preserves canonical sanitized message publication through chat.history and artifacts.download:final request was not held.resolveMessageToolSourceReplyFinaltreats omittedfinalas true.git diff --checkpass. One isolated Codex review covers this patch and the independent recovered-output fixture patch; status: scoped-clean at P2, no actionable findings.0c0421ce8846d73b9491b409fc9a50214d61eb45. No local test suite was run.