Skip to content

test: keep the Template Add authority test independent of Activity recaps - #208613

Merged
obviyus merged 1 commit into
mainfrom
fix/templates-add-model-red
Nov 29, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/templates-add-model-red

Conversation

@obviyus

@obviyus obviyus commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

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 #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

#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 (b943a89): 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.
  • fix: point automations to their signed-out account #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.

…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.
@clawsweeper

clawsweeper Bot commented Nov 29, 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 Nov 29, 2026
@clawsweeper clawsweeper Bot added the P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. label Nov 29, 2026
@obviyus
obviyus merged commit 974dcc4 into main Nov 29, 2026
103 checks passed
@obviyus
obviyus deleted the fix/templates-add-model-red branch November 29, 2026 21:59
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant