fix(admin): Fix Prompt management list not showing version info and add debug diagnostics

Summary:
- Fix Prompt list API response schema missing activeVersion and draftVersion fields
- Fastify was filtering out undefined schema fields, causing version columns to show empty
- Add detailed diagnostic logging for Prompt debug mode troubleshooting
- Verify debug mode works correctly (DRAFT version is used when debug enabled)

Changes:
- backend/src/common/prompt/prompt.routes.ts: Add activeVersion and draftVersion to response schema
- backend/src/common/prompt/prompt.service.ts: Add diagnostic logs for setDebugMode and get methods
- PKB module: Various authentication and document handling fixes from previous session

Tested: Debug mode verified working - v2 DRAFT version correctly loaded when debug enabled
This commit is contained in:
2026-01-13 22:22:10 +08:00
parent 4088275290
commit 4ed67a8846
272 changed files with 1382 additions and 161 deletions

View File

@@ -889,6 +889,8 @@ ACR镜像仓库

View File

@@ -1376,6 +1376,8 @@ SAE应用配置:

View File

@@ -1192,6 +1192,8 @@ docker exec -e PGPASSWORD="密码" ai-clinical-postgres psql -h RDS地址 -U air

View File

@@ -603,6 +603,8 @@ scripts/*.ts

View File

@@ -291,6 +291,8 @@ Node.js后端部署成功后

View File

@@ -514,6 +514,8 @@ Node.js后端 (SAE) ← http://172.17.173.88:3001

View File

@@ -229,6 +229,8 @@ curl http://localhost:3001/health

View File

@@ -267,6 +267,8 @@ npm run dev

View File

@@ -491,6 +491,8 @@ pgm-2zex1m2y3r23hdn5.pg.rds.aliyuncs.com:5432

View File

@@ -1819,6 +1819,8 @@ curl http://8.140.53.236/

View File

@@ -367,6 +367,8 @@ crpi-cd5ij4pjt65mweeo.cn-beijing.personal.cr.aliyuncs.com/ai-clinical/backend-se

View File

@@ -689,6 +689,8 @@ docker login --username=gofeng117@163.com \

View File

@@ -500,6 +500,8 @@ NAT网关成本¥100/月,对初创团队是一笔开销