fix(agent): inject Asia/Shanghai time anchor on 0630007 line
Agent replies were reporting UTC time because 0630007-memind never injected TKMind 当前时间基准 into session memory. Port the time anchor from the 0630004 work only—no miniapp branch changes—and add a 103 rollback script. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
# 103 回退说明 — Agent 时间基准修复(2026-07-01)
|
||||
|
||||
## 背景
|
||||
|
||||
- 分支:`0630007-agent-time-fix`(从 `0630007-memind` 切出,**不含** miniapp / 0630006 改动)
|
||||
- 修复:向 Agent 注入 `TKMind 当前时间基准`(Asia/Shanghai),避免回复里报 UTC 时间
|
||||
|
||||
## 发布前 103 状态(可回退目标)
|
||||
|
||||
| 项 | 值 |
|
||||
|---|---|
|
||||
| release_id | `20260701-075736-16828a5` |
|
||||
| git_head | `16828a58f7fc79d7b9a174ffa87f5579894798fc` |
|
||||
| git_branch | `0630007-memind` |
|
||||
|
||||
回退到上述 release 发布前版本:
|
||||
|
||||
```bash
|
||||
bash scripts/rollback-portal-runtime-prod.sh 20260701-075736-16828a5 --yes
|
||||
```
|
||||
|
||||
## 查看 103 上所有可回退点
|
||||
|
||||
```bash
|
||||
bash scripts/rollback-portal-runtime-prod.sh --list
|
||||
```
|
||||
|
||||
## 回退源优先级
|
||||
|
||||
1. `/Users/john/Project/archives/Memind-source-before-<RELEASE_ID>/`
|
||||
2. `/Users/john/Project/backups/memind/memind-full-<RELEASE_ID>-before.tar.gz`
|
||||
|
||||
发布脚本会自动创建上述两份备份;回退脚本优先用 archive(最快)。
|
||||
|
||||
## 发布后验收
|
||||
|
||||
1. `curl -s http://127.0.0.1:8081/api/status` → 200
|
||||
2. 新建 H5 会话,问「现在几点」→ 应报 **上海时间**(非 UTC 前一天 23:xx)
|
||||
3. 日志无 `User auth bootstrap failed`
|
||||
|
||||
## 若新 release 有问题
|
||||
|
||||
假设新 release_id 为 `20260701-HHMMSS-<sha>`,立即回退:
|
||||
|
||||
```bash
|
||||
bash scripts/rollback-portal-runtime-prod.sh 20260701-HHMMSS-<sha> --yes
|
||||
```
|
||||
|
||||
失败的 live 目录会保留在:
|
||||
|
||||
`/Users/john/Project/archives/Memind-failed-after-<RELEASE_ID>-<timestamp>/`
|
||||
Reference in New Issue
Block a user