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
+57
View File
@@ -58,6 +58,53 @@ services:
- "8222:8222"
# ========== 后端服务 ==========
memory-service:
build:
context: ./backend/memory-service
dockerfile: Dockerfile
environment:
PORT: "8091"
POSTGRES_HOST: postgres
POSTGRES_PORT: "5432"
POSTGRES_USER: cyrene
POSTGRES_PASSWORD: change_me
POSTGRES_DB: cyrene_ai
ports:
- "8091:8091"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
tool-engine:
build:
context: ./backend/tool-engine
dockerfile: Dockerfile
environment:
PORT: "8092"
IOT_SERVICE_URL: http://iot-debug-service:8083
DATA_DIR: /tmp/cyrene_data
DB_URL: "postgres://cyrene:change_me@postgres:5432/cyrene_ai?sslmode=disable"
ports:
- "8092:8092"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
voice-service:
build:
context: ./backend/voice-service
dockerfile: Dockerfile
environment:
PORT: "8093"
WHISPER_BINARY: "./whisper.cpp/main"
WHISPER_MODEL: "./whisper.cpp/models/ggml-small.bin"
WHISPER_LANGUAGE: "zh"
ports:
- "8093:8093"
restart: unless-stopped
ai-core:
build:
context: ./backend/ai-core
@@ -105,6 +152,10 @@ services:
JWT_SECRET: ${JWT_SECRET:-dev-secret-change-in-production}
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: cyrene
@@ -121,6 +172,12 @@ services:
condition: service_healthy
ai-core:
condition: service_started
memory-service:
condition: service_started
tool-engine:
condition: service_started
voice-service:
condition: service_started
restart: unless-stopped
volumes: