Skip to content

fix(web-ui): fix typo in thread tree style labels (zh/en) - #1269

Merged
iruriQ merged 2 commits into
mainfrom
fix/issue-1265
Nov 27, 2026
Merged

iruriQ merged 2 commits into
mainfrom
fix/issue-1265

Conversation

@iruriQ

@iruriQ iruriQ commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fix Chinese localization typo where 「会话树」 (session tree) was misspelled as 「会话数」 in the thread tree display style labels, align the corresponding English labels mistranslated from that typo, and sync the matching reference in the Web thread tree architecture doc.

Changes

  • apps/web-ui/packages/client/ui-workspace/src/client/locales.ts:
    • zh threadTree.style.title: 会话数的展示方式 → 会话树的展示方式
    • zh threadTree.style.promptTitle: 选择会话数的展示方式 → 选择会话树的展示方式
    • en threadTree.style.title: Session count display → Session tree display
    • en threadTree.style.promptTitle: Choose how to display session counts → Choose how to display session trees
  • docs/architecture/web-thread-tree.md:
    • Updated the quoted UI label “会话数的展示方式” → “会话树的展示方式”

Visual Changes

No visual changes: typo fix in Chinese and English localization strings.

Validation

  • Searched apps/web-ui and the repository for other 会话数 / session count occurrences and verified no other related typos exist (e.g. 每页会话数 is intentional).
  • Copy-only fix; no local full-repo checks run per AGENTS.md verification budget.

Fixes #1265

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • 文案调整
    • 将中英文界面中相关标题及设置说明里的“会话数展示方式”统一调整为“会话树展示方式”。
    • “详细”和“简洁”选项保持不变,现有偏好设置字段及默认值也保持不变。

此更改将中文和英文界面词条及架构文档中的设置项名称更新为“会话树”的展示方式。选项、浏览器偏好字段和保存行为未变。

Changes: 会话树设置文案

Layer / File(s) Summary
统一设置项名称
apps/web-ui/packages/client/ui-workspace/src/client/locales.ts, docs/architecture/web-thread-tree.md
中文和英文界面词条及架构文档将设置项名称更新为会话树的展示方式。选项仍为“详细 / 简洁”,偏好字段仍为 user.threadTreeCollapseStyle,默认值仍为 summary。

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: bytepioneer-ai

Merge Risk: Minimal · up to 687f2

This fixes the settings labels from "会话数" to "会话树" and updates the matching English labels and documentation. It has no functional impact and is ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 标题“fix(web-ui): fix typo in thread tree style labels (zh/en)”描述了本 PR 的主要变更:修正 web-ui 中会话树展示设置标签的中英文拼写错误。标题与变更集直接相关。标题未说明具体错字(会话数改为会话树),但这属于可接受的概括。
Description check Passed 描述说明了修正的中文错字(「会话数」改为「会话树」)、对应的英文标签修正,以及文档 docs/architecture/web-thread-tree.md 中的同步更新。描述与变更集内容一致,并列出了涉及的文件和键名。
Linked Issues check Passed 关联议题 [#1265] 的编码要求有两项:1)将两处中文文案改为「会话树的展示方式」和「选择会话树的展示方式」;2)检查同一文件中是否有同类错字。

已在 head 读取 apps/web-ui/packages/client/ui-workspace/src/client/locales.ts 的 zh 词典。threadTree.style.title 为「会话树的展示方式」,`…
Out of Scope Changes check Passed PR 的变更包括三部分:
1. locales.ts 中 zh 的两个词条。这两项直接实现 [#1265] 的文案修正。
2. locales.ts 中 en 的两个词条,从「session count」改为「session tree」。这两项修正同一误译的英文对应文案,PR 说明已记录其理由,与议题相关。
3. `docs/architecture/web-thread-tree…
Full details: Linked Issues check

Explanation

关联议题 [#1265] 的编码要求有两项:1)将两处中文文案改为「会话树的展示方式」和「选择会话树的展示方式」;2)检查同一文件中是否有同类错字。

已在 head 读取 apps/web-ui/packages/client/ui-workspace/src/client/locales.ts 的 zh 词典。threadTree.style.title 为「会话树的展示方式」,threadTree.style.promptTitle 为「选择会话树的展示方式」。两项均满足第 1 项要求。

在可读取的 zh 词典范围内,未发现其他「会话数」类错字。PR 说明记录了对仓库中其他「会话数」位置的搜索,并说明「每页会话数」为有意保留。

证据限制:diff 工具不可用,因为变更 blob 在当前检出中缺失。en 词典的 head 内容因读取截断而未完整核对。AI 生成的变更摘要称改动为「会话数量展示」,与 head 中实际的 zh 文案不一致,因此本结论不依赖该摘要。

议题 [#1265] 的编码要求仅涉及中文文案。英文词条和文档的状态不影响本项结论。

Full details: Out of Scope Changes check

Explanation

PR 的变更包括三部分:

  1. locales.ts 中 zh 的两个词条。这两项直接实现 [#1265] 的文案修正。
  2. locales.ts 中 en 的两个词条,从「session count」改为「session tree」。这两项修正同一误译的英文对应文案,PR 说明已记录其理由,与议题相关。
  3. docs/architecture/web-thread-tree.md 中一处 UI 标签引用,改为与 zh 文案一致。这属于同一错字的配套修改。

未发现与 [#1265] 无关的代码或行为改动。

证据限制:en 词条和文档的 head 内容未完整读取,且 diff 工具不可用。本结论基于 PR 说明与 head 中可读取的 zh 词典内容。未发现需求不符或无关变更的证据,因此不判定为 FAIL。若需确认 en 词条和文档的实际改动范围,需提供这两个文件在 head 与 base 之间的完整 diff。

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 55f1f66 and 687f22c.

Files selected for processing: 1

  • apps/web-ui/packages/client/ui-workspace/src/client/locales.ts
Files skipped from review as they are similar to previous changes: 1

  • apps/web-ui/packages/client/ui-workspace/src/client/locales.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 4 remain after this review.

Recent review details

Context from checks skipped due to timeout: 8

  • GitHub Check: CodeRabbit
  • GitHub Check: Vitest
  • GitHub Check: Check windows-latest
  • GitHub Check: Check Linux ARM64
  • GitHub Check: Static checks
  • GitHub Check: Check macos-26
  • GitHub Check: Web Host tests
  • GitHub Check: Check ubuntu-22.04

@iruriQ iruriQ changed the title fix(web-ui): fix Chinese typo in thread tree style labels fix(web-ui): fix typo in thread tree style labels (zh/en) Nov 27, 2026
@iruriQ
iruriQ merged commit 8dc59f9 into main Nov 27, 2026
6 of 8 checks passed
@iruriQ
iruriQ deleted the fix/issue-1265 branch November 27, 2026 01:07
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.

[Bug] 通用设置中文文案错别字:「会话数的展示方式」应为「会话树的展示方式」

2 participants