# Nexus Phase D 前置修复 (2026-05-20): 12项关键修复全部完成

M9 Redis session store: verify_session()从返回None→完整Redis查询; _store_session()+logout(); session:{token} 8h滑动TTL. M12 server_service空壳: check_all_servers()现在真正调用Agent /health(httpx+Semaphore20); push_to_servers()委托给SyncService.batch_push(). TTL对齐: heartbeat_flush.py REDIS_KEY_EXPIRE 600→900. E5 命令注入防护: BLOCKED_COMMAND_PATTERNS + BLOCKED_SUDO_COMMANDS + _validate_command(). E4 Telegram httpx单例: 模块级_get_client()单例+close_telegram_client(). CORS可配置: config.py新增CORS_ORIGINS. A1 错误处理规范: 4处bare except:pass修复. I5 Nginx配置: deploy/nginx_172.31.170.47.conf. D2 告警通知UX: 浮动卡片栈+WebSocket自动重连+暗色模式. DB索引迁移: 001_indexes.sql 7个索引. conftest修复: SQLite in-memory+MySQL env var. Redis client日志修复.

## 相关概念

- Nexus
- bugfix
- Phase-D
- engineering
- Redis session
- command injection
- TTL

---
*源: agentmemory (mem_phase_d_bugfixes)*
