Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Deep research contract: follow the research Delete gate into the More menu item (#12751)
Daniel Han36255a18bd14
diff --git a/tests/studio/test_deep_research_frontend_contract.py b/tests/studio/test_deep_research_frontend_contract.pyindex c7817163450..ba3f9eae538 100644--- a/tests/studio/test_deep_research_frontend_contract.py+++ b/tests/studio/test_deep_research_frontend_contract.py@@ -185,7 +185,17 @@ def test_research_presentation_is_integrated() -> None:assert "<ResearchMessage />" in threadassert "if (researchRunId) return null" in threadassert "!researchRunId &&" in thread- assert "if (researchRunId || ownsResearchMessage)" in thread+ # A research message has no Delete. Since #12735 Delete is a More-menu item whose hook reports+ # `hidden` for research messages, and the item renders nothing when hidden; before that the+ # bar's button returned null on the same condition. Either spelling, the gate must be there.+ delete_hook = thread.split("function useDeleteMessage()", 1)[1].split("\n}\n", 1)[0]+ assert re.search(+ r"hidden:\s*Boolean\(\s*researchRunId\s*\|\|\s*ownsResearchMessage\s*\)", delete_hook+ )+ delete_item = thread.split("const DeleteMessageMenuItem: FC = () => {", 1)[1].split(+ "\n};\n", 1+ )[0]+ assert re.search(r"if\s*\(\s*hidden\s*\)\s*\{?\s*return null", delete_item)assert "ResearchMessageRunIdContext = createContext<string | null>(null)" in threadassert "researchReplyOwnsRun(boundResearchAssistantMessageId, messageId)" in threadassert "<ResearchMessageRunIdContext.Provider value={researchRunId}>" in thread