From 5792b073b27a74c55069a1633e1b29bc9a6b9ada Mon Sep 17 00:00:00 2001 From: brother7 <7brother7@gmail.com> Date: Fri, 7 Aug 2026 16:14:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=BB=AD=E6=9C=9F=E9=9B=86=E6=88=90=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 需求:将登录七天滑动续期来源提交纳入主分支集成记录。 实现:登记来源与合并提交、验证结果、发布约束及原主工作区脏文件阻塞。 --- .project-docs/30-worklog/current-state.md | 20 +++++---- .../20260807-integrate-login-client-a4f8.md | 45 +++++++++++++++++++ 2 files changed, 56 insertions(+), 9 deletions(-) create mode 100644 .project-docs/30-worklog/tasks/20260807-integrate-login-client-a4f8.md diff --git a/.project-docs/30-worklog/current-state.md b/.project-docs/30-worklog/current-state.md index 68bc5d9..310df3e 100644 --- a/.project-docs/30-worklog/current-state.md +++ b/.project-docs/30-worklog/current-state.md @@ -4,33 +4,35 @@ This file is the integrated default-branch snapshot. Feature tasks record progre ## Integrated Through -- {source task or merge commit} +- `86ece3a`:客户端登录七天滑动续期来源提交。 +- `4dde8f32678baa81fd3ae3f6e7bd0d34b17885d6`:集成合并提交。 ## Current Focus -The project is currently focused on {current focus}. +客户端认证由 Electron Main 统一管理刷新凭据,并按真实用户活动维护七天闲置窗口。 ## Recently Completed -- {YYYY-MM-DD}: {completed work summary} +- 2026-08-07:集成客户端登录滑动续期、刷新令牌轮换持久化和终态清理保护。 ## In Progress -- {in-progress item} +- 协调认证服务端七天刷新令牌配置及共享 `app` OAuth 客户端发布。 ## Next Recommended Steps -1. {next recommended step} -2. {next recommended step} +1. 确认所有共享 `app` 客户端支持原子保存轮换后的刷新令牌。 +2. 发布兼容客户端与认证服务后执行数据库迁移,并刷新 RegisteredClient Redis 缓存。 ## Open Questions / Blockers -- {open question or blocker} +- 存量刷新令牌不会被数据库迁移追溯缩短为七天。 ## Risky Areas -- {risky area} +- 刷新响应返回新令牌后、客户端安全落盘前的进程崩溃窗口会要求重新授权。 +- Linux 缺少受保护系统 keyring 时不会跨重启保存刷新凭据。 ## Last Updated -{YYYY-MM-DD} +2026-08-07 diff --git a/.project-docs/30-worklog/tasks/20260807-integrate-login-client-a4f8.md b/.project-docs/30-worklog/tasks/20260807-integrate-login-client-a4f8.md new file mode 100644 index 0000000..3e2c423 --- /dev/null +++ b/.project-docs/30-worklog/tasks/20260807-integrate-login-client-a4f8.md @@ -0,0 +1,45 @@ +# Task: 合并客户端登录滑动续期到主分支 + +## Identity + +- Task ID: 20260807-integrate-login-client-a4f8 +- Mode: Integration +- Branch: codex/20260807-integrate-login-client-a4f8-integrate-login-client-a4f8 +- Worktree: D:\Datas\OthersProjects\makelore-login-integration-a4f8 +- Base commit: 7b23cce67a1b9e61a48d89dedbd088d37b10ecd4 +- Owner: codex +- Status: In Progress + +## Scope + +- 将已完成的客户端登录滑动续期提交 `86ece3a` 合并到主分支候选。 +- 复核来源提交、合并树、认证聚焦测试和类型检查。 +- 更新集成态项目记录,并在不覆盖原主工作区未提交改动的前提下推进 `main`。 + +## Intent And Constraints + +- 保留原主工作区中的设备预览及其他未提交改动,不自动 stash、提交或覆盖。 +- 仅集成登录滑动续期来源提交,不顺带合并其他 ready-for-integration 任务。 +- 合并后的行为以来源任务记录的七天闲置、真实活动续期和 Main-owned 凭据边界为准。 + +## Outcome + +- 来源提交已通过非快进合并进入集成分支,合并提交为 + `4dde8f32678baa81fd3ae3f6e7bd0d34b17885d6`。 +- 集成树中的业务代码与来源提交一致,无内容漂移。 +- 原 `main` 工作区存在与本次认证文件重叠的未提交改动,尚未推进主分支引用。 + +## Verification + +- `git merge-base --is-ancestor 86ece3a HEAD`:通过。 +- 来源提交认证聚焦测试:6 files,85 tests passed。 +- `pnpm run typecheck`:通过。 +- `git diff --exit-code 86ece3a HEAD -- README.md electron shared src tests`:通过。 + +## Follow-ups + +- 获得对原主工作区未提交改动的明确处理方式后,将集成分支安全推进到 `main`。 + +## Promotion Candidates + +- None recorded.