JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix(tui): tui session_id prefix
douran8ee71f0fcb2c
diff --git a/jiuwenclaw/cli/src/core/session-state.ts b/jiuwenclaw/cli/src/core/session-state.tsindex a42d16546b..885ab75245 100644--- a/jiuwenclaw/cli/src/core/session-state.ts+++ b/jiuwenclaw/cli/src/core/session-state.ts@@ -3,5 +3,5 @@ import crypto from "node:crypto";export function generateSessionId(): string {const ts = Math.floor(Date.now() / 1000).toString(16);const suffix = crypto.randomBytes(3).toString("hex");- return `sess_${ts}_${suffix}`;+ return `tui_${ts}_${suffix}`;}diff --git a/jiuwenclaw/gateway/message_handler.py b/jiuwenclaw/gateway/message_handler.pyindex 0a394d894e..1d3de32845 100644--- a/jiuwenclaw/gateway/message_handler.py+++ b/jiuwenclaw/gateway/message_handler.py@@ -32,6 +32,7 @@ _ACP_ORIGINAL_SESSION_ID_KEY = "acp_original_session_id"_DEFAULT_INLINE_FILE_SIZE_LIMIT = 128 * 1024_KNOWN_JIUWENCLAW_SESSION_PREFIXES = ("sess_",+ "tui_","acp_","cron_","feishu_",