We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2e8a5a7 + a9aaa45 commit b57c160Copy full SHA for b57c160
1 file changed
mempalace/hooks_cli.py
@@ -63,6 +63,14 @@ def _count_human_messages(transcript_path: str) -> int:
63
if "<command-message>" in text:
64
continue
65
count += 1
66
+ # Also handle Codex CLI transcript format
67
+ # {"type": "event_msg", "payload": {"type": "user_message", "message": "..."}}
68
+ elif entry.get("type") == "event_msg":
69
+ payload = entry.get("payload", {})
70
+ if isinstance(payload, dict) and payload.get("type") == "user_message":
71
+ msg_text = payload.get("message", "")
72
+ if isinstance(msg_text, str) and "<command-message>" not in msg_text:
73
+ count += 1
74
except (json.JSONDecodeError, AttributeError):
75
pass
76
except OSError:
0 commit comments