[codex] feat(dashboard): 增加会话所在聊天筛选#404
Open
nil-err wants to merge 3 commits into
Open
Conversation
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.
功能变更
/api/groups的群名映射,单聊优先展示会话创建者/调用者的显示名,无法解析时才回退到原始chatId。localStorage持久化用户选择。代码更改
Session.chatDisplayName/SessionRow.chatDisplayName,用于承载单聊可读名称。chatDisplayName;会话行组合时也会从 identity cache 兜底解析历史单聊会话名称。chatDisplayTitle统一消费行级chatDisplayName,使表格、看板、卡片副标题、筛选项和未知聊天判断共享同一名称解析逻辑。readStoredSessionsShowUnknownChats的默认值语义:缺省/读取失败时默认显示未知聊天,只有显式存储为0才隐藏。验证
corepack pnpm test -- test/dashboard-sessions-ui.test.ts test/dashboard-preferences.test.ts test/dashboard-token-usage-row.test.tscorepack pnpm exec tsc --noEmitcorepack pnpm exec tsc && node scripts/build-dashboard.mjs