From f076359900c8f07f85df6c7f579ee48dd7e97c51 Mon Sep 17 00:00:00 2001 From: Asklv Date: Tue, 3 Mar 2026 20:16:00 +0800 Subject: [PATCH] refactor: increase feishu id buffer size Signed-off-by: Asklv --- main/bus/message_bus.h | 2 +- main/cron/cron_service.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/bus/message_bus.h b/main/bus/message_bus.h index e4993fe..1fc2d31 100644 --- a/main/bus/message_bus.h +++ b/main/bus/message_bus.h @@ -14,7 +14,7 @@ /* Message types on the bus */ typedef struct { char channel[16]; /* "telegram", "websocket", "cli" */ - char chat_id[32]; /* Telegram chat_id or WS client id */ + char chat_id[96]; /* Telegram/Feishu chat_id, open_id, or WS client id */ char *content; /* Heap-allocated message text (caller must free) */ } mimi_msg_t; diff --git a/main/cron/cron_service.h b/main/cron/cron_service.h index 3d37752..833f23c 100644 --- a/main/cron/cron_service.h +++ b/main/cron/cron_service.h @@ -20,7 +20,7 @@ typedef struct { int64_t at_epoch; /* For AT: unix timestamp */ char message[256]; /* Message to inject into inbound queue */ char channel[16]; /* Reply channel (default "system") */ - char chat_id[32]; /* Reply chat_id (default "cron") */ + char chat_id[96]; /* Reply chat_id/open_id (default "cron") */ int64_t last_run; /* Last run epoch */ int64_t next_run; /* Next run epoch */ bool delete_after_run; /* Remove job after firing (for AT jobs) */