fix: 修复19个Bug (P0-P3) — 持续性调试第7轮发现的问题

P0 (5): crypto/rand session ID, TTS fallback可达性, goroutine defer recover, adminAuth前缀修正
P1 (5): 普通用户密码验证, context传递, priority clamp, 超时重试, 自主思考速率限制
P2 (4): Briefing AI降级, 前端消息类型渲染, Docker Compose补全, PWA 192图标
P3 (5): goroutine错误处理, .gitignore完善, reminder created_at, voice Dockerfile, Go版本更新
This commit is contained in:
2026-05-20 13:30:32 +08:00
parent baaf90fc47
commit 4b35736f73
37 changed files with 556 additions and 118 deletions
+45
View File
@@ -24,6 +24,10 @@ services:
JWT_SECRET: ${JWT_SECRET}
JWT_EXPIRY_HOURS: "720"
AI_CORE_URL: http://ai-core:8081
MEMORY_SERVICE_URL: http://memory-service:8091
TOOL_ENGINE_URL: http://tool-engine:8092
VOICE_SERVICE_URL: http://voice-service:8093
IOT_DEBUG_SERVICE_URL: http://iot-debug-service:8083
POSTGRES_HOST: postgres
POSTGRES_PORT: "5432"
POSTGRES_USER: ${POSTGRES_USER:-cyrene}
@@ -58,6 +62,47 @@ services:
condition: service_healthy
restart: unless-stopped
memory-service:
build: ./backend/memory-service
environment:
PORT: "8091"
POSTGRES_HOST: postgres
POSTGRES_PORT: "5432"
POSTGRES_USER: ${POSTGRES_USER:-cyrene}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB:-cyrene_ai}
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
tool-engine:
build: ./backend/tool-engine
environment:
PORT: "8092"
IOT_SERVICE_URL: http://iot-debug-service:8083
DATA_DIR: /tmp/cyrene_data
DB_URL: "postgres://${POSTGRES_USER:-cyrene}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-cyrene_ai}?sslmode=disable"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
voice-service:
build: ./backend/voice-service
environment:
PORT: "8093"
WHISPER_BINARY: "./whisper.cpp/main"
WHISPER_MODEL: "./whisper.cpp/models/ggml-small.bin"
WHISPER_LANGUAGE: "zh"
restart: unless-stopped
iot-debug-service:
build: ./backend/iot-debug-service
environment:
IOT_DEBUG_PORT: "8083"
restart: unless-stopped
# ========== 基础设施 ==========
postgres:
image: pgvector/pgvector:pg16