Repository navigation
test: keep the Template Add authority test independent of Activity recaps - #208613
Merged
Merged
Conversation
…caps Since #208460 the Activity recap for the new Template conversation runs on the session provider's utility model, so the fake provider saw a gpt-6-luna request and failed its gpt-4.1 assertion. Answer recap requests separately and keep the model assertion on the greeting and scheduled-run requests.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 30, 2026
…caps (openclaw#208613) ## What Problem This Solves `main` is red on `src/gateway/server-templates-add-authority.e2e.test.ts` (plugin case): `expected 'gpt-6-luna' to be 'gpt-4.1'`. It turns every PR's merge-ref CI red on the `checks-node-changed` lane that runs this file. The failing request is an Activity recap, not the Template greeting or the scheduled run. Since openclaw#208460 (keep automatic Activity recaps on the session provider), the recap for the new Template conversation goes to the session's provider (`openai`) with that provider's utility model (`gpt-6-luna`). The test's fake provider asserted that every request used `gpt-4.1`. ## User Impact No product change. CI for every PR that runs this lane goes green again. ## Why This Change Was Made openclaw#208460 changed recap routing on purpose. The fixture was stale, not the product. The fake provider now answers recap requests (recognized by `ACTIVITY_RECAP_SYSTEM_PROMPT`) on their own and does not count them. The `gpt-4.1` assertion stays on the greeting and the scheduled-run requests, which the test checks. ## Evidence - Reproduced on `main` (a68d574): the plugin case fails with the request model `gpt-6-luna`. A probe in the fake provider showed that request's developer message is the Activity recap prompt. - With this change: all 3 cases of `server-templates-add-authority.e2e.test.ts` pass. - openclaw#208493, which the red was first attributed to, only changes cron failure classification and does not touch model routing. Merge danger: two-way door, test-only. Co-authored-by: Ayaan Zaidi <[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
mainis red onsrc/gateway/server-templates-add-authority.e2e.test.ts(plugin case):expected 'gpt-6-luna' to be 'gpt-4.1'. It turns every PR's merge-ref CI red on thechecks-node-changedlane that runs this file.The failing request is an Activity recap, not the Template greeting or the scheduled run. Since #208460 (keep automatic Activity recaps on the session provider), the recap for the new Template conversation goes to the session's provider (
openai) with that provider's utility model (gpt-6-luna). The test's fake provider asserted that every request usedgpt-4.1.User Impact
No product change. CI for every PR that runs this lane goes green again.
Why This Change Was Made
#208460 changed recap routing on purpose. The fixture was stale, not the product. The fake provider now answers recap requests (recognized by
ACTIVITY_RECAP_SYSTEM_PROMPT) on their own and does not count them. Thegpt-4.1assertion stays on the greeting and the scheduled-run requests, which the test checks.Evidence
main(b943a89): the plugin case fails with the request modelgpt-6-luna. A probe in the fake provider showed that request's developer message is the Activity recap prompt.server-templates-add-authority.e2e.test.tspass.Merge danger: two-way door, test-only.