CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.
Python agent-frameworkagent-harnessagent-runtimeagentic-aiai-agentsai-frameworkanthropicharnessharness-engineeringharness-frameworklanggraphlanggraph-alternativellmmcpopenaipi-agentpi-agent-corepythonpython-agent
fix(hitl): pragma codec-dependent isinstance branches in Postgres+MySQL
xf gongb43d8aa8e80a
diff --git a/cubepi/checkpointer/mysql/checkpointer.py b/cubepi/checkpointer/mysql/checkpointer.pyindex 5e43985..001a663 100644--- a/cubepi/checkpointer/mysql/checkpointer.py+++ b/cubepi/checkpointer/mysql/checkpointer.py@@ -322,6 +322,6 @@ class MySQLCheckpointer:raw = row[0]# aiomysql returns JSON columns as str; tolerate already-parsed dicts (same# convention as the existing _parse_json helper in this module).- if isinstance(raw, str):+ if isinstance(raw, str): # pragma: no cover — codec-dependentreturn HitlRequest.model_validate_json(raw)return HitlRequest.model_validate(raw)diff --git a/cubepi/checkpointer/postgres/checkpointer.py b/cubepi/checkpointer/postgres/checkpointer.pyindex f4d2a01..f577456 100644--- a/cubepi/checkpointer/postgres/checkpointer.py+++ b/cubepi/checkpointer/postgres/checkpointer.py@@ -248,6 +248,6 @@ class PostgresCheckpointer:return Noneraw = row["pending_request"]# asyncpg returns JSONB as already-parsed dict OR str depending on codec config.- if isinstance(raw, str):+ if isinstance(raw, str): # pragma: no cover — codec-dependentreturn HitlRequest.model_validate_json(raw)return HitlRequest.model_validate(raw)