From 23f668d66e8638f4aec891e39efd87ff026ba867 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Mon, 13 Apr 2026 04:59:06 -0700 Subject: [PATCH] fix: extract Gemma 4 reasoning in _extract_reasoning() (#8991) Add (.*?) to inline_patterns so Gemma 4 reasoning content is captured for /reasoning display, not just stripped from visible output. Closes #8891 Co-authored-by: RhushabhVaghela --- run_agent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/run_agent.py b/run_agent.py index cdfab0e943..6fa6bf8a04 100644 --- a/run_agent.py +++ b/run_agent.py @@ -2018,6 +2018,7 @@ class AIAgent: inline_patterns = ( r"(.*?)", r"(.*?)", + r"(.*?)", r"(.*?)", r"(.*?)", )