Skip to content

test(gateway): keep cancellation fixture open after delivery - #170930

Merged
steipete merged 1 commit into
mainfrom
dbasync/redmain-cancel-publication
Oct 13, 2026
Merged

steipete merged 1 commit into
mainfrom
dbasync/redmain-cancel-publication

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

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 7a5529f (#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: 7a5529f 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: 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.

@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

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-13T10:04:19.691583Z 0c0421c PR opened
ℹ️ 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.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Oct 13, 2026
@steipete
steipete merged commit 7c5d6c8 into main Oct 13, 2026
100 checks passed
@steipete
steipete deleted the dbasync/redmain-cancel-publication branch October 13, 2026 10:12
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant