Skip to content

Feat/3.1.0 - #2846

Merged
zgqgit merged 76 commits into
releasefrom
feat/3.1.0
Dec 1, 2026
Merged

zgqgit merged 76 commits into
releasefrom
feat/3.1.0

Conversation

@zgqgit

@zgqgit zgqgit commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

What

简要描述做了什么改动。

Why

为什么需要这个改动?

How

实现方式、设计决策(如有)。

Test

  • 本地测试通过
  • 114 测试服务器验证通过

Related

  • Issue/ticket:

KinyooZ and others added 30 commits November 19, 2026 16:36
Keep the alpha1-ui file tree unchanged while aligning branch ancestry for the PR.
The sole upstream-only commit reverts avatar unification; retain the current
avatar implementation and UI fixes as requested.
Air-gapped hosts need a versioned image snapshot instead of pulling from cr.dataelem.com during install.

Co-authored-by: Cursor <cursoragent@cursor.com>
文件夹跳转会丢掉这个参数,所以选择记在当前 WebView 的会话里,不跟宿主顶栏开关混用。

Co-authored-by: Cursor <cursoragent@cursor.com>
预览地址本身不带参数,返回按钮只在当前 WebView 已经记住 hostBack 时出现。

Co-authored-by: Cursor <cursoragent@cursor.com>
Drone replaced ${version} before the shell ran, and the bundle login asked for secrets that this Drone does not have. The tenant workflow also referenced runner.temp outside a step, which made the workflow file invalid.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use the same NEXUS_USER credentials and registry address as the existing Drone build steps.

Co-authored-by: Cursor <cursoragent@cursor.com>
The image inspect and pull use that registry, so the internal Nexus login cannot supply credentials.

Co-authored-by: Cursor <cursoragent@cursor.com>
Share application card surfaces and simplify app chat navigation.
Honor the configured recommended application list on the chat landing page, refresh avatar styling, and cover recommendation configuration behavior.
## What

简要描述做了什么改动。

## Why

为什么需要这个改动?

## How

实现方式、设计决策(如有)。

## Test

- [ ] 本地测试通过
- [ ] 114 测试服务器验证通过

## Related

- Issue/ticket:
手机会话原先是固定 30 天绝对有效期,换票不延长,到期即登出;
一次换票响应丢失还会让手机持有的令牌永久失效。改为空闲滑动 14 天
加 180 天绝对上限,并为换票加上重放宽限窗口。

- 手机换票后继改为按独立 label 做 HMAC 确定性派生,手机令牌无法
  当作桌面后继重放;
- 宽限窗口内重放已消费的 refresh 返回同一枚未使用的后继,且不撤销
  会话,发布失败时恢复行锁内真正被替换的 access 哈希;
- mobile_session_ttl_seconds 语义由生命周期改为绝对上限,新增
  mobile_session_idle_ttl_seconds 控制每次换票延长的空闲时长。

验证:ruff check 通过;test/dsh/test_mobile_session.py 21 passed。

Co-authored-by: Cursor <cursoragent@cursor.com>
## What

- 恢复 Client、Platform 的统一用户头像展示,以及通知和授权列表中的可见用户头像;同步网页与 Desktop 的当前个人资料。
- 日常对话增加推荐示例;推荐应用复用应用中心卡片,遵循后台推荐配置,空配置时隐藏推荐区。
- 应用中心整合“Bisheng 应用”和“云端工作台”Tab,完善搜索、空态和过期请求处理。
- 统一应用头像、卡片表面及应用对话侧栏样式,复用共享卡片样式。
- 记忆列表补齐加载、失败重试和空列表状态,包含开发图片代理兼容、类型检查修复及对应说明。

## Why

目标 alpha1 包含头像统一功能的撤回,本次需要保留 `alpha1-ui` 的统一头像实现,并交付已完成的应用、聊天和记忆列表界面更新。

## How

- 复用共享头像组件和当前身份规则,贯通头像上传、资料同步、通知、权限主体及知识空间创建者展示。
- 推荐区复用应用卡片,兼容旧格式推荐数据;通过配置控制推荐区显示。
- 保留列表加载、失败重试和会话返回行为,整理应用侧栏和共享卡片样式。

## Test

- [x] 当前 PR 的 [Frontend Quality:Lint &
Typecheck](https://github.com/dataelement/bisheng/actions/runs/45108883544/job/137476421776)
通过。
- [x] 最新提交 `8ba5ddae16`:推荐应用配置与聊天欢迎页回归,2 个套件、10 项通过。
- [x] 已有基线 `49c9ccb5b7` 的回归记录:Client 应用、记忆、头像、通知、Desktop 桥接和推荐示例共 82
项;后端身份、头像、权限、通知和上传链路共 57 项。
- [x] 基线已通过 `pnpm check-i18n`、`pnpm locales:check`;最新提交沿用已有翻译键。
- [ ] 114 测试服务器验证通过(未执行)。

## Related

- `features/v3.1.0-alpha1/001-user-avatar-unification`
- `features/v3.1.0-alpha1/002-chat-welcome-examples`
手机会话采用 14 天空闲滑动期限和 180 天绝对上限,使用独立 HMAC label 确定性派生 refresh 后继,并支持宽限窗口内重放。

修复旧 refresh 到期后误撤销仍有效会话的问题:先校验会话期限,再判断已消费令牌的后继重放条件。补充单登录、多登录及空闲/绝对期限边界回归。

验证:test/dsh/test_mobile_session.py 27 passed;ruff check 与架构守卫通过。
手机 App 可通过 hostBack=1 请求知识空间和文件预览页面绘制返回按钮,文件夹跳转后保留当前 WebView 的选择。

补齐 ClientEnvironment 测试构造器的新字段,并等待预览加载完成后测试返回操作。同步最新 alpha1 分支,包含已合并的 #2752 和 #2765。

验证:集成后 42 项前端测试通过;Frontend Quality 的 lint/严格类型检查通过;Drone #6513 的后端、前端及沙箱镜像构建全部通过。
zgqgit and others added 29 commits November 27, 2026 17:09
* docs(oauth2): specify same-user token exchange for review

* docs(oauth2): consolidate token exchange drafts

* docs(oauth2): record accepted exchange spec and propose session design

* docs(oauth2): clarify exchange scopes and target business authorization

* feat(oauth2): add authorized same-user token exchange

* chore(platform): prune stale lint suppressions after alpha1 merge

* chore(client): prune stale lint suppressions after alpha1 merge

* feat(oauth2): exchange trusted platform sessions silently for opted-in apps

* docs(oauth2): register first-party exchange ownership in alpha1 contract
* feat(auth): support BiSheng Desktop first-party token exchange

* feat(desktop): issue platform sessions from browser ticket exchange

* fix(oauth2): allow first-party exchange without target grant opt-in

* fix(oauth2): make first-party session exchange silent

* docs(auth): align alpha1 contract with Desktop silent exchange
## What

- 修复 Vibe 已发布/预览应用未识别平台 Session 导致反复跳转登录页的问题。
- 优化 chat/online 的可见应用查询,减少排序分页与附加信息的重复查询。
- 统一产品版本为 3.1.0-alpha1-fix;Python 包元数据及锁文件使用合法的 3.1.0a1+fix。

## Why

统一认证签发 platform_access_<sid>
后,旧应用入口仍读取旧凭据,导致登录循环;应用列表则在大量不可见候选上重复查询和校验,首屏耗时被放大。

## How

- 按 platform_session_hint 精确选择 Access,并复用权威 Session 校验;保留 Desktop
应用作用域凭据及旧认证兼容,过滤转发中的平台 Cookie。
- 按资源类型获取可见 ID、在业务 SQL 中先过滤再排序分页,保留最终权限复核及撤权后的补页;去重创建者查询并只读取必要工作流版本。
- 同步版本元数据、部署默认镜像及安装说明;第三方依赖版本、来源和哈希不变,无新增数据库迁移。

## Test

- [x] app-proxy 完整套件 285 passed;Vibe 新增 18 项回归、查询新增 20 项回归通过。
- [x] 相关后端列表/租户/权限选择 173 passed;1 项缺 user_link 表的失败在 main 基线同样复现。另有 17
项既有 preview 测试夹具失败,新旧失败集合一致。
- [x] 版本/Helm/运行时发行相关 92 项通过;两个运行时 wheel 实际构建成功,Linux amd64/arm64
冻结依赖安装计划与原版本一致。
- [x] 同一构造数据返回相同 20 项,排序分页由 21 轮降到 1 轮,最终权限复核由 1020 项降到 21
项;此为工作量对照,不代表线上毫秒延迟。
- [x] DSH 现有环境升级同一 tag 镜像,Vibe 打开及刷新正常,3 次入口请求均为 HTTP 200,实时连接成功。
- [x] Ruff、架构守卫、git diff --check 通过;两条双架构镜像 CI 全部成功。
- [ ] 114 环境及多账号、Desktop、长时间续期、完整业务写入未在本次验收。

## Related

- Head: 296a113;现有标签 v3.1.0-alpha1-fix
指向同一提交。
- [Vibe 审查与回归](docs/reviews/vibe-platform-session-hotfix-20261130.md)
- [查询优化验证](docs/reviews/chat-online-query-optimization-20261130.md)
- [版本及依赖校验](docs/reviews/alpha1-fix-version-alignment-20261130.md)
Preserve release-line memory tables, shared composer styles, fine-tuning routes and error messages alongside main auth and welcome-page updates. Regenerate route metadata and align merged regression fixtures.
@zgqgit
zgqgit merged commit e83d68d into release Dec 1, 2026
9 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants