gateway: parse v7 rcvMsgContent shape and profile display name
Inbound DMs were silently dropped: simplex-chat v7 tags received text as
{"type": "rcvMsgContent", "msgContent": {"type": "text", ...}}, but
_parse_chat_item required a flat {"type": "text", "text": ...}. Every
message returned None (no gateway_message/gateway_sent/denied ever fired) so
pepper got no reply.
- parse content.msgContent.text, tolerating the DB/Aeson constructor-keyed
nesting as well
- resolve the peer name from profile.displayName first; v7's contact
displayName is null and localDisplayName is collision-suffixed (pepper_1)
- update the synthetic fixture to the real wire shape and add regression tests
- set PYTHONUNBUFFERED=1 in the rendered gateway unit so journal logging is live
This commit is contained in:
1 parent
5f05c5c749
commit
b348f19486
3 files changed
+84
-5
No files matched your search
@@ -7,6 +7,7 @@ Wants=network-online.target semif-simplex.service
|
||||
Type=simple
|
||||
WorkingDirectory=@REPO@
|
||||
Environment=HF_HOME=@REPO@/.runtime/hf
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
ExecStart=@REPO@/.runtime/venv/bin/python -m semif_agent.cli gateway
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
Reference in new issue
Block a user