fix: node_id int handling in connector + rule stats data path

- connector.send_message accepts int or string destination
- channels.py converts node_id to str before string operations
- Rule stats write to /data/ (Docker volume) not /opt/meshai/data/
This commit is contained in:
zvx-echo6 2026-05-13 19:27:04 -06:00
commit 32f6a238f8
3 changed files with 13 additions and 10 deletions

View file

@ -229,10 +229,13 @@ class MeshConnector:
try:
if destination:
# DM to specific node
# Convert hex string to int if needed
if destination.startswith("!"):
# DM to specific node - handle int or string
if isinstance(destination, int):
dest_num = destination
elif destination.startswith("!"):
dest_num = int(destination[1:], 16)
elif destination.isdigit():
dest_num = int(destination)
else:
dest_num = int(destination, 16)