From 2d80ef78722f6e8a25d9fc65e7218e505c02dc73 Mon Sep 17 00:00:00 2001 From: teknium1 Date: Tue, 10 Mar 2026 20:48:58 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20=5Finit=5Fagent=20returns=20bool,=20not?= =?UTF-8?q?=20agent=20=E2=80=94=20fix=20quiet=20mode=20crash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cli.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli.py b/cli.py index aa98de5a..a2a3f8c1 100755 --- a/cli.py +++ b/cli.py @@ -4503,8 +4503,7 @@ def main( # Quiet mode: suppress banner, spinner, tool previews. # Only print the final response and parseable session info. cli.tool_progress_mode = "off" - cli.agent = cli._init_agent() - if cli.agent: + if cli._init_agent(): cli.agent.quiet_mode = True result = cli.agent.run_conversation(query) response = result.get("final_response", "") if isinstance(result, dict) else str(result)