Repository navigation
test(gateway): give the cron failure-repair fixture a model - #204022
Merged
Merged
Conversation
Since #203271 a chat with no configured model is refused before execution starts, so every cron failure-repair case failed with 'Session event was not admitted'. Set an explicit model in the two fixture configs; the authority outcomes stay as they were. Co-authored-by: obviyus <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Collaborator
Author
obviyus
added a commit
that referenced
this pull request
Nov 23, 2026
`src/agents/tools/sessions-spawn-outcome.test.ts` passes again: its fixture config now names a model for the `main` agent. Part of #204008. ## Problem Since #203271 ("stop sending chats to OpenAI when no model is configured"), model selection throws `No model is configured…` when neither the agent nor defaults name a model. This fixture had `entries: { main: {} }`, so three spawn cases failed before dispatch (`expected "callInProcessGatewayTool" to be called once, but got 0 times`) in every scheduled `main` run (latest: 45147591436, `checks-node-compact-large-39`). ## Solution Set `entries.main.model` to `openai/gpt-4.1`, the same fixture change #204022 made for the cron failure-repair test. No product change. `openclaw-tools.subagents.sessions-spawn.lifecycle.test.ts` has the same cause but is owned by open PR #203569, so it is left alone. ## Evidence - Scheduled `main` run 45147591436: 3 cases fail with the error above. - This branch, locally: `sessions-spawn-outcome.test.ts` 16/16 pass. Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 24, 2026
…#204022) Since openclaw#203271 a chat with no configured model is refused before execution starts, so every cron failure-repair case failed with "Session event was not admitted". Set an explicit model in the two fixture configs; the authority outcomes stay as they were. Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 24, 2026
…aw#204033) `src/agents/tools/sessions-spawn-outcome.test.ts` passes again: its fixture config now names a model for the `main` agent. Part of openclaw#204008. ## Problem Since openclaw#203271 ("stop sending chats to OpenAI when no model is configured"), model selection throws `No model is configured…` when neither the agent nor defaults name a model. This fixture had `entries: { main: {} }`, so three spawn cases failed before dispatch (`expected "callInProcessGatewayTool" to be called once, but got 0 times`) in every scheduled `main` run (latest: 45147591436, `checks-node-compact-large-39`). ## Solution Set `entries.main.model` to `openai/gpt-4.1`, the same fixture change openclaw#204022 made for the cron failure-repair test. No product change. `openclaw-tools.subagents.sessions-spawn.lifecycle.test.ts` has the same cause but is owned by open PR openclaw#203569, so it is left alone. ## Evidence - Scheduled `main` run 45147591436: 3 cases fail with the error above. - This branch, locally: `sessions-spawn-outcome.test.ts` 16/16 pass. 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.
Result
Scheduled
mainCI is red insrc/gateway/server-cron-failure-repair.final-effect.test.ts(11 of 12 cases: "Cron failure repair was not accepted: Session event was not admitted"). The cause is a stale fixture, not the one-time-admission change. This PR gives the fixture a model. Test only.Problem
src/auto-reply/reply/get-reply.ts: a chat with no model is refused before execution starts (NO_MODEL_CONFIGURED_MESSAGE).cfgfromrequester-cron-authority.test-support.ts, which is{ agents: { entries: { main: {} } } }: no model.session-event-handoff.tsreported "Session event was not admitted", for the owner case too.Fix
The two fixture configs in this file set
agents.entries.main.model = "openai/gpt-4.1"(the value the sibling cron fixtures use). The sharedcfgis unchanged, so its 9 other importers are not affected. The expected authority outcomes are unchanged.Evidence
main: scheduled runs 45126271894, 45131412779, 45139268047 (job large-17).