fix: add yield in do_ask_user to prevent empty code block rendering as undefined in some Streamlit versions

This commit is contained in:
Liang Jiaqing
2026-02-26 12:34:01 +08:00
parent f0ce7215ff
commit afb0b57a06

1
ga.py
View File

@@ -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):