Repository navigation
Studio frontend tests: pin the chat refusal action, not the whole chain - #19272
Conversation
…in (#19166) #19166 put a managed engine's per-attempt log first in the chat load-failure action chain. load-refusal-header.test.ts pinned that chain as one literal string, so it fails on main. Check what the test is about instead: a refusal gets the owner's model memory settings link, and any other failure still falls back to the engine settings and then the logs.
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codex Review Summary: 🔄 RunningThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Problem
studio/frontend/tests/load-refusal-header.test.tsfails on main inFrontend unit tests, so every open PR inherits it:Cause
#19166 (per-attempt logs for managed SGLang) is correct. When a managed engine fails to load, the chat toast now offers that engine's own log first:
A refusal still gets the owner's model memory settings link. The test pinned the whole non-refusal chain as one literal string, so adding an action at its head broke it.
Fix
That one literal is replaced with a structural check of what the test is about:
modelMemorySettingsAction();engineSettingsAction(message) ?? logsAction.Actions ahead of those, like a managed engine's own log, are allowed. The Images, Video and chat pins for the refusal check and its title are unchanged.
Verification
load-refusal-header.test.ts: 7 pass here. On main, 1 of them fails.logsActionfails the test.engineSettingsAction(message)from the chain fails the test.use-chat-model-runtime.tsfrom before Add per-attempt logs for managed SGLang #19166 still passes.