Commit Graph

2428 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 9dffe85f22
fix: remove PORT/ZY_SITE_MODE from .env.app to prevent PM2 port conflict
The deploy workflow was writing PORT=3800 and ZY_SITE_MODE=production
into .env.app, which gets loaded by ecosystem.config.js's loadEnvFile().
Since ...appEnv is spread first and instance-specific values override it,
this is now safe — but removing them from .env.app eliminates the root
cause entirely (belt-and-suspenders fix).

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/80f409c9-7f98-443e-9c31-21111194a523

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:42:11 +00:00
zhuyuan-bot ece55b2c86
📡 部署日志采集 · 24285712001 [skip ci]
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:42:11 +00:00
zhuyuan-bot 2f1b407768
AOAC-03 · 链路合体报告 · PR #344 [skip ci]
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:42:10 +00:00
zhuyuan-bot 1186eda2d6
📡 README自动更新 · PR #344 合并触发 [skip ci]
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:42:10 +00:00
zhuyuan-bot 2dd394ff94
🔍 AOAC-02 · PR #344 合并CI日志 [skip ci]
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:42:10 +00:00
copilot-swe-agent[bot] 53c115af36
fix: 采纳代码审查反馈 — SSH config直接插值、部署目录检查、密钥错误提示
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/bf92e1d8-e789-468b-80ab-2d7fec9be6c2

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:42:10 +00:00
copilot-swe-agent[bot] 4c69bf46aa
fix: 改进CN LLM部署SSH处理 + 明确域名配置要求 (工单三/五修复)
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/bf92e1d8-e789-468b-80ab-2d7fec9be6c2

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:42:10 +00:00
zhuyuan-bot 3967a943e8
📡 AOAC-06 · Notion同步信号已发送 [skip ci]
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:42:09 +00:00
zhuyuan-bot 409a2e102e
🏠 AOAC-05 · 首页主控更新 · 2026-04-11 15:34 [skip ci]
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:42:09 +00:00
zhuyuan-bot 88095d713d
📋 AOAC-04 · 同步模块数据更新 [skip ci]
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:42:09 +00:00
github-actions[bot] 6d828ef603
🔍 副将巡查状态更新 · 2026-04-11T15:32:46Z
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:42:09 +00:00
copilot-swe-agent[bot] 3fc1d35390
fix: resolve HTTP 502 — clean conflicting Nginx configs + fix PM2 port override bug
Root causes found:
1. CN server (www.guanghulab.com): conflicting Nginx configs in sites-enabled
   and conf.d override cn-domain.conf, causing requests to proxy to a non-
   responsive backend → 502
2. SG server: ecosystem.config.js spreads .env.app AFTER PORT/ZY_SITE_MODE,
   causing .env.app's PORT=3800 to override preview's PORT=3801 → both
   instances fight for port 3800 → preview fails → 502 on preview domain

Fixes:
- deploy-cn-landing.yml: clean ALL conflicting Nginx site configs from both
  sites-enabled and conf.d before installing cn-domain.conf
- deploy-cn-landing.yml: enhanced health check diagnostics to detect config
  conflicts and validate correct service identity
- ecosystem.config.js: move ...appEnv BEFORE instance-specific PORT and
  ZY_SITE_MODE to ensure PM2 config takes priority over .env.app

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/80f409c9-7f98-443e-9c31-21111194a523

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:36:16 +00:00
zhuyuan-bot f5cd2f85ef 📡 部署日志采集 · 24284972500 [skip ci] 2026-04-11 14:56:01 +00:00
zhuyuan-bot 0c7d1c0104 📡 README自动更新 · PR #343 合并触发 [skip ci] 2026-04-11 14:54:37 +00:00
zhuyuan-bot a8ca89a597 AOAC-03 · 链路合体报告 · PR #343 [skip ci] 2026-04-11 14:54:32 +00:00
zhuyuan-bot b88d95cb44 📡 README自动更新 · push触发 · 2026-04-11 22:54 [skip ci] 2026-04-11 14:54:24 +00:00
zhuyuan-bot c71a5492e3 🔍 AOAC-02 · PR #343 合并CI日志 [skip ci] 2026-04-11 14:54:21 +00:00
冰朔 7b6dea9555
Merge pull request #343 from qinfendebingshuo/copilot/debug-api-connection-issues
fix: PM2 preview process restart + trust proxy + CN LLM relay
2026-04-11 22:54:11 +08:00
copilot-swe-agent[bot] d457ccd746
fix: validate empty messages + trim relay host whitespace
Address code review: check for empty messages array in relay, and
trim whitespace from CN_RELAY_HOST to avoid silent connection failures.

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/04495ae8-6c76-4458-bbb0-262e3205dccd

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 14:48:32 +00:00
copilot-swe-agent[bot] f8824ac43f
fix: restart zhuyuan-preview PM2 process on deploy + add 3801 health check
Root cause: deploy workflow only deleted zhuyuan-server before PM2 restart,
leaving zhuyuan-preview in errored state. Since guanghulab.online is the
preview domain (Nginx §2 → port 3801), requests to /api/* got 502.

Fix: delete BOTH zhuyuan-server AND zhuyuan-preview before pm2 start.
Add health check for port 3801 to detect this failure in future deploys.

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/04495ae8-6c76-4458-bbb0-262e3205dccd

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 14:45:42 +00:00
铸渊-COS接入Agent 6d00b0b71a 🔗 COS自动接入检查 · 2026-04-11 14:26 2026-04-11 14:26:43 +00:00
copilot-swe-agent[bot] 6146dd3aea
fix: address code review feedback - startup validation, error context, security notes
- Fail fast on startup if ZY_CN_RELAY_API_KEY is not configured
- Add model endpoint context to error messages for debugging
- Make API timeout configurable via environment variable
- Deduplicate health check curl in workflow
- Add security note about VPN-encrypted relay channel

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/f6db708e-8b10-4339-b48f-db5f111ae5cd

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 14:21:44 +00:00
copilot-swe-agent[bot] 91c957d85e
feat: add trust proxy fix + CN LLM relay service for Guangzhou
工单一: Add app.set('trust proxy', 1) to server.js (prevents PM2 crash)
Phase 1: Create server/cn-llm-relay/ - lightweight LLM proxy for Guangzhou
Phase 2: Modify domestic-llm-gateway.js - relay through Guangzhou with fallback
Phase 3: Add deploy-cn-llm-relay.yml workflow for automated deployment
Update server-registry.json with ZY-SVR-003 and cn-llm-relay config
Update deploy-to-zhuyuan-server.yml to inject CN relay env vars

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/f6db708e-8b10-4339-b48f-db5f111ae5cd

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 14:18:27 +00:00
zhuyuan-bot ada4091e9e AOAC-03 · 链路合体报告 · PR #342 [skip ci] 2026-04-11 13:52:11 +00:00
zhuyuan-bot 30c606f27d 📡 README自动更新 · PR #342 合并触发 [skip ci] 2026-04-11 13:52:03 +00:00
zhuyuan-bot 72692a9db3 🔍 AOAC-02 · PR #342 合并CI日志 [skip ci] 2026-04-11 13:52:02 +00:00
冰朔 d9da505d86
Merge pull request #342 from qinfendebingshuo/copilot/fix-domain-deployment-issues
fix: rsync tilde expansion failure in cn-landing deploy workflow
2026-04-11 21:51:53 +08:00
copilot-swe-agent[bot] 815f8f5f12
fix: remove explicit SSH config path from rsync to fix tilde expansion issue in cn-landing deploy
The rsync `-e "ssh -F ~/.ssh/config"` fails because `~` inside double
quotes is not expanded by bash. rsync passes the literal `~/.ssh/config`
to ssh, which cannot resolve it. Removing `-e` lets rsync use the default
ssh, which reads `$HOME/.ssh/config` automatically.

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/45d1241e-8f50-40ac-898d-54e2a92b3300

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 13:13:41 +00:00
zhuyuan-bot d68c59a366 📡 部署日志采集 · 24283082910 [skip ci] 2026-04-11 13:06:53 +00:00
zhuyuan-bot 5811636936 📡 README自动更新 · push触发 · 2026-04-11 21:05 [skip ci] 2026-04-11 13:05:27 +00:00
zhuyuan-bot 0f3c9d7e68 AOAC-03 · 链路合体报告 · PR #341 [skip ci] 2026-04-11 13:05:24 +00:00
zhuyuan-bot 5985499a70 🔍 AOAC-02 · PR #341 合并CI日志 [skip ci] 2026-04-11 13:05:16 +00:00
zhuyuan-bot d4306f137d 📡 README自动更新 · PR #341 合并触发 [skip ci] 2026-04-11 13:05:13 +00:00
冰朔 b85aecdbc6
Merge pull request #341 from qinfendebingshuo/copilot/deploy-cn-domain-to-guangzhou-server
feat: 国内域名ICP备案落地页部署 (广州 ZY-SVR-004)
2026-04-11 21:05:03 +08:00
copilot-swe-agent[bot] 6400453e9f
fix: use scp for LLM API keys injection to avoid heredoc variable expansion issue
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/98e8a463-34d0-41db-a3b5-9f8c0a2d0366

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 12:58:50 +00:00
copilot-swe-agent[bot] e81a2b3981
feat: add CN domain landing page, Nginx config and deployment workflow for ICP filing
- Landing page with star-field, particles, orbital rings, shooting stars
- ICP备案号 陕ICP备2025071211号 with clickable link to beian.miit.gov.cn
- Nginx config for ZY-SVR-004 Guangzhou server
- GitHub Actions workflow (SG→CN SSH jump deploy)
- LLM API keys injection for 4 domestic models
- Server registry updated with cn_domain section

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/98e8a463-34d0-41db-a3b5-9f8c0a2d0366

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 12:57:32 +00:00
zhuyuan-bot 173cb74358 📡 部署日志采集 · 24282315686 [skip ci] 2026-04-11 12:20:27 +00:00
zhuyuan-bot e37d001a0c AOAC-03 · 链路合体报告 · PR #340 [skip ci] 2026-04-11 12:18:51 +00:00
zhuyuan-bot 49275974c6 📡 README自动更新 · PR #340 合并触发 [skip ci] 2026-04-11 12:18:43 +00:00
zhuyuan-bot 4c6ea47868 🔍 AOAC-02 · PR #340 合并CI日志 [skip ci] 2026-04-11 12:18:41 +00:00
冰朔 0b75194370
Merge pull request #340 from qinfendebingshuo/copilot/add-trigger-button-for-api-link
fix: PM2 env loading path mismatch causing LLM API keys to never load + portal reconnect button
2026-04-11 20:18:31 +08:00
copilot-swe-agent[bot] 4547000dd6
fix: use language-neutral test message for reconnect endpoint
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/37db3285-91fb-4df3-83a0-7315b0efa428

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 11:50:11 +00:00
copilot-swe-agent[bot] 3fedcab0d9
fix: ecosystem.config.js .env.app path + portal reconnect button + /api/chat/reconnect endpoint
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/37db3285-91fb-4df3-83a0-7315b0efa428

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 11:48:27 +00:00
zhuyuan-bot e29df57ef1 📡 部署日志采集 · 24281358698 [skip ci] 2026-04-11 11:21:09 +00:00
zhuyuan-bot 513f103dd9 AOAC-03 · 链路合体报告 · PR #339 [skip ci] 2026-04-11 11:19:39 +00:00
zhuyuan-bot b27a9ce018 📡 README自动更新 · PR #339 合并触发 [skip ci] 2026-04-11 11:19:28 +00:00
zhuyuan-bot bdfd772af3 🔍 AOAC-02 · PR #339 合并CI日志 [skip ci] 2026-04-11 11:19:28 +00:00
冰朔 80a824523d
Merge pull request #339 from qinfendebingshuo/copilot/investigate-api-key-configuration
Fix chat: inject LLM API keys into main app, fix Nginx routing, enlarge chat UI
2026-04-11 19:19:17 +08:00
copilot-swe-agent[bot] 6582b5dc1a
增强聊天API错误处理: 国内网关异常时自动降级到通用引擎
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/5a0f8fc3-ded6-4e1f-8c98-b1e59f82aad6

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 11:16:42 +00:00
copilot-swe-agent[bot] a5ccbadbd6
修复聊天功能: API密钥注入主应用 + Nginx路由修正 + 聊天UI放大居中
核心修复:
1. 部署工作流: 为主应用写入.env.app (含LLM API密钥)
2. PM2配置: 加载.env.app环境变量到主应用进程
3. 聊天引擎: /api/chat 优先使用 domestic-llm-gateway (四路自动降级)
4. Nginx: /api/chat 路由到主应用3800 (原来路由到不存在的3721)
5. 前端UI: 聊天面板放大居中 + 背景遮罩 + 增大超时至60秒

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/5a0f8fc3-ded6-4e1f-8c98-b1e59f82aad6

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 11:14:05 +00:00