From afb0b57a06811329c434d29e2369b6e9c6971e11 Mon Sep 17 00:00:00 2001 From: Liang Jiaqing Date: Thu, 26 Feb 2026 12:34:01 +0800 Subject: [PATCH] fix: add yield in do_ask_user to prevent empty code block rendering as undefined in some Streamlit versions --- ga.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ga.py b/ga.py index 3501c4a..f2b3fba 100644 --- a/ga.py +++ b/ga.py @@ -281,6 +281,7 @@ class GenericAgentHandler(BaseHandler): question = args.get("question", "请提供输入:") candidates = args.get("candidates", []) result = ask_user(question, candidates) + yield f"Waiting for your answer ...\n" return StepOutcome(result, next_prompt="", should_exit=True) def do_web_scan(self, args, response):