Repository navigation
Conversation
…elop-after-1.0.2b8 chore: sync main into develop after 1.0.2b8
…ud#2066) * fix(chat): show peer expert composer defaults and theme the beta badge Cloud collab shadow experts dropped the peer's model, connectors, knowledge bases, and conversation mode, so the local composer could not show them. The sidebar Beta chip also stayed a fixed red instead of the theme color. * fix: name experts in usage stats and title cron sessions Admin usage grouped other users' experts by id because the page only knew the signed-in account's agents. Scheduled runs also left the thread untitled until the next user message when the push failed or never ran. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: jubaoliang <jubaoliang@tencent.com> Co-authored-by: Cursor <cursoragent@cursor.com>
…pting The PWA "new version is ready" banner (PwaUpdatePrompt) was mounted for every user regardless of permissions, and only tracked dismissal in local component state, so it reappeared on every reload while the update stayed pending. - Only render the banner for users holding the "update" permission (matches AppVersionBadge); non-admins are no longer prompted. - Remember dismissal in sessionStorage so the same pending update does not pop again within the session. - Skip the service_mode probe for users that cannot update. Follow-up to TencentCloud#441 (permission-gated update UI, which did not cover the PWA banner); background TencentCloud#156/TencentCloud#393. Refs TencentCloud#329.
Contributor
Author
|
提交错了分支 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Related: #329 (open — PWA「新版本已就绪 / 立即更新」横幅在更新/重启后复现), follow-up to #441 (按权限门控更新 UI,但未覆盖 PWA 横幅); background #156 / #393.
修复 PWA 更新横幅的两个问题:
附带:无更新权限的用户不再触发 service_mode 探测请求。
Target branch
Type of change
Test plan
make all — 4750 passed, 32 skipped
cd dashboard && npx tsc -b — 通过
cd dashboard && npm run build(tsc + vite + PWA)— 通过
pre-commit(make precommit + dashboard build)通过
手工验证:管理员可见横幅;无 update 权限的用户不可见;点「稍后」后刷新同一标签页不再弹出。
make all passes locally
Added/updated tests
Checklist