From 7915808413b7747f145bdead2a178bca820739cf Mon Sep 17 00:00:00 2001 From: starmen1265 Date: Thu, 19 Mar 2026 22:59:36 +0800 Subject: [PATCH] fix(cli): use json mode for model_dump serialization Ensure Pydantic model serializes to JSON-compatible format. Co-Authored-By: Claude Opus 4.6 --- kb_workflow/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kb_workflow/cli.py b/kb_workflow/cli.py index ca2fe0f..ffed9dd 100644 --- a/kb_workflow/cli.py +++ b/kb_workflow/cli.py @@ -165,7 +165,7 @@ def login_command( result = login.login_by_qrcode() if result.success and result.cookie_str: manager.save_cookie(result.cookie_str) - return result.model_dump() + return result.model_dump(mode='json') except Exception as e: return {"success": False, "error": str(e)}