refactor: 移除日志实时流功能

删除 log_stream 模块及 LOG_TAIL_CTRL 命令、懒加载与停机释放逻辑,日志查看仅保留 LOG_TAIL 与 GET_LOG_DOWNLOAD。

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
2026-09-09 14:32:29 +08:00
co-authored by Claude Code
parent f7fbc054df
commit a6a801220c
3 changed files with 2 additions and 164 deletions
+1 -3
View File
@@ -89,10 +89,8 @@ def _setup_logging(log_dir: str):
def _shutdown(signum, frame):
"""优雅停机:释放日志流 → 停守护 → 断连接 → 退出。"""
"""优雅停机:停守护 → 断连接 → 退出。"""
log.info("Agent 停机中...signal=%s", signum)
if _dispatcher is not None:
_dispatcher.shutdown_log_stream()
if _guard is not None:
_guard.stop()
if _client is not None: