💄 style(topic): show error alert icon with tooltip on failed topics (#15573)

* 💄 style(topic): show error alert icon with tooltip on failed topics

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

*  feat(topic): merge attention-needing topics into one "Needs attention" group

Collapse the unread-completion, failed, and waitingForHuman states into a single
top "pending" status bucket (待处理 / Needs attention) so the sidebar surfaces
everything that needs the user's attention in one place.

- groupTopicsByStatus now buckets those three states into `pending`, taking a new
  `unreadTopicIds` set (unread completions are a client-only state).
- Server STATUS_SORT_RANK floats `failed` to the top alongside `waitingForHuman`
  so failed topics stay on the first page and don't drop out of the group.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* 💄 style(topic): pin the "Needs attention" group above favorites

The pending bucket already sorts above running, but the synthetic favorite group
was prepended ahead of it. Hoist pending to index 0 so attention-needing topics
sit at the very top of the sidebar, above both favorites and running.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* 🐛 fix(heterogeneous-agents): pin resolved cwd onto remote-CC new topics

Remote CC dispatched the run with the correct working directory (the
precedence chain falls back to the agent's per-device pick), but a
brand-new topic was created without `metadata.workingDirectory`, so the
sidebar grouped it under "No directory" / 无目录.

Unify the three drifting server-side cwd-precedence sites behind one
pure helper (`resolveDeviceWorkingDirectory`) and persist the resolved
cwd back onto a freshly-created topic so grouping, next-turn reuse, and
workspace-init scan all agree.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Arvin Xu
2026-06-09 13:24:42 +08:00
committed by GitHub
parent 5dd0f0c0c9
commit 0a6b02ccb5
15 changed files with 344 additions and 79 deletions
+2
View File
@@ -26,6 +26,7 @@
"displayItems": "Display Items",
"duplicateLoading": "Copying Topic...",
"duplicateSuccess": "Topic Copied Successfully",
"failedStatusTip": "This run hit an error — open it to take a look.",
"favorite": "Favorite",
"filter.filter": "Filter",
"filter.groupMode.byProject": "By project",
@@ -43,6 +44,7 @@
"groupTitle.byStatus.completed": "Completed",
"groupTitle.byStatus.failed": "Failed",
"groupTitle.byStatus.paused": "Paused",
"groupTitle.byStatus.pending": "Needs attention",
"groupTitle.byStatus.running": "Running",
"groupTitle.byStatus.waitingForHuman": "Awaiting input",
"groupTitle.byTime.month": "This Month",
+2
View File
@@ -26,6 +26,7 @@
"displayItems": "显示条目",
"duplicateLoading": "话题复制中…",
"duplicateSuccess": "话题复制成功",
"failedStatusTip": "当前执行遇到了错误,点击查看详情",
"favorite": "收藏",
"filter.filter": "筛选",
"filter.groupMode.byProject": "按项目",
@@ -43,6 +44,7 @@
"groupTitle.byStatus.completed": "已完成",
"groupTitle.byStatus.failed": "已失败",
"groupTitle.byStatus.paused": "已暂停",
"groupTitle.byStatus.pending": "待处理",
"groupTitle.byStatus.running": "进行中",
"groupTitle.byStatus.waitingForHuman": "等待处理",
"groupTitle.byTime.month": "本月",