From e27274448d46e084b3766f1833449c736180084a Mon Sep 17 00:00:00 2001 From: zonggong Date: Sat, 24 Oct 2026 14:49:47 +0800 Subject: [PATCH] HEL-835: fix probe seed companion identity_json shape Co-authored-by: multica-agent --- docs/r3/probe-seed-HEL-835.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/r3/probe-seed-HEL-835.py b/docs/r3/probe-seed-HEL-835.py index cc26f1f..99228f7 100644 --- a/docs/r3/probe-seed-HEL-835.py +++ b/docs/r3/probe-seed-HEL-835.py @@ -30,8 +30,10 @@ def seed(db_path: Path) -> dict: db_path.unlink() with Store(db_path) as store: with store.conn: - store.execute("INSERT INTO companion(name,birth,hour,relation,nickname,boundary)" - " VALUES('小满','2001-05-21','午时','朋友','','尊重彼此的节奏')") + identity = {"name": "小满", "birth": "2001-05-21", "hour": "午时", "relation": "朋友", + "nickname": "", "boundary": "尊重彼此的节奏", "color": {}} + store.execute("INSERT INTO companion(id,identity_json) VALUES(1,?)", + (json.dumps(identity, ensure_ascii=False),)) rows = [] # Target old turn (outside the 20-turn window). store.execute("INSERT INTO chat_message(ts,role,text,turn_id,status) VALUES(?,?,?,?,'sent')",