Skip to content

test(gateway): give empty-leaf admission a visible reply - #188156

Merged
stevenlee-oai merged 1 commit into
mainfrom
dev/stevenlee/chat-empty-leaf-admission-fixture
Oct 30, 2026
Merged

stevenlee-oai merged 1 commit into
mainfrom
dev/stevenlee/chat-empty-leaf-admission-fixture

Conversation

@stevenlee-oai

@stevenlee-oai stevenlee-oai commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The chat admission test sends expectedLeafEntryId: null for an empty transcript. Its default reply contains only [[reply_to_current]], which leaves no visible text after the Gateway strips the directive. Since #188111, the Gateway omits the empty assistant message. The test accepts the turn, then fails looking for an empty text block. This broke scheduled CI on main and CI for #181813.

Change

Give this test a visible fixture reply, accepted, and assert it arrives in the final event for the expected run. The test still checks that the Gateway admits the request, dispatches it once, and starts from a null leaf. Silent terminal events and directive-only replies retain their own coverage.

Evidence

The case failed on unmodified main at 1e906e96 and passed at 56f82bb4 on Node 24.22.1 and pinned Bun 1.4.4. In the full local test file, 113 cases passed. The other 21 failures were also present on an unmodified baseline. Formatting and the test-line budget passed.

Hosted CI passed all 134 cases in the full file on 56f82bb4 in 51.84 seconds.

@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Oct 30, 2026
@stevenlee-oai
stevenlee-oai enabled auto-merge (squash) October 30, 2026 07:15
@stevenlee-oai
stevenlee-oai merged commit d67aa60 into main Oct 30, 2026
110 of 111 checks passed
@stevenlee-oai
stevenlee-oai deleted the dev/stevenlee/chat-empty-leaf-admission-fixture branch October 30, 2026 07:25
RomneyDa added a commit that referenced this pull request Oct 30, 2026
Co-authored-by: stevenlee-oai <[email protected]>
(cherry picked from commit d67aa60)
Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
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