Repository navigation
test(gateway): give empty-leaf admission a visible reply - #188156
Merged
stevenlee-oai merged 1 commit intoOct 30, 2026
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
stevenlee-oai
enabled auto-merge (squash)
October 30, 2026 07:15
stevenlee-oai
deleted the
dev/stevenlee/chat-empty-leaf-admission-fixture
branch
October 30, 2026 07:25
This was referenced Oct 30, 2026
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
…8156) Co-authored-by: stevenlee-oai <[email protected]>
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 chat admission test sends
expectedLeafEntryId: nullfor 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
mainat1e906e96and passed at56f82bb4on 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
56f82bb4in 51.84 seconds.