fix(app): count what the subagents pill's mark is showing
The pill drew the most urgent state of the fan-out next to the size of the fan-out. Two questions, one pill, 8pt apart: a spinning ring beside "2 subagents" reads as two agents running when one is. The mark is the thing the eye lands on, so its state gets read onto whatever number is next to it. While anything is happening the pill now names that state and counts the children in it — "1 running", "2 failed" — and falls back to naming the total once nothing is. The total is a tap away in the panel, and the running count is the number worth glancing at anyway. Label and mark are built by one function so they cannot disagree; the call site takes both or neither. Every non-done bucket gets copy, not just the two that are reachable today, because needs_input and attention become reachable the moment a subagent row carries requiresAttention, and the failure mode is silently the bug this commit fixes.
This commit is contained in:
@@ -1624,6 +1624,11 @@ export const ar: TranslationResources = {
|
||||
title: "الوكلاء الفرعيون",
|
||||
pillLabelOne: "وكيل فرعي واحد",
|
||||
pillLabelMany: "{{count}} وكلاء فرعيين",
|
||||
pillLabelRunning: "{{count}} قيد التشغيل",
|
||||
pillLabelFailed: "{{count}} فشلت",
|
||||
pillLabelNeedsInputOne: "واحد يحتاج إدخالاً",
|
||||
pillLabelNeedsInputMany: "{{count}} تحتاج إدخالاً",
|
||||
pillLabelReadyToReview: "{{count}} جاهزة للمراجعة",
|
||||
detachAction: "فصل {{label}}",
|
||||
detachTooltip: "فصل الوكيل الفرعي",
|
||||
archiveAction: "أرشيف{{label}}",
|
||||
|
||||
@@ -1634,6 +1634,11 @@ export const en = {
|
||||
title: "Subagents",
|
||||
pillLabelOne: "1 subagent",
|
||||
pillLabelMany: "{{count}} subagents",
|
||||
pillLabelRunning: "{{count}} running",
|
||||
pillLabelFailed: "{{count}} failed",
|
||||
pillLabelNeedsInputOne: "1 needs input",
|
||||
pillLabelNeedsInputMany: "{{count}} need input",
|
||||
pillLabelReadyToReview: "{{count}} ready to review",
|
||||
detachAction: "Detach {{label}}",
|
||||
detachTooltip: "Detach subagent",
|
||||
archiveAction: "Archive {{label}}",
|
||||
|
||||
@@ -1667,6 +1667,11 @@ export const es: TranslationResources = {
|
||||
title: "Subagentes",
|
||||
pillLabelOne: "1 subagente",
|
||||
pillLabelMany: "{{count}} subagentes",
|
||||
pillLabelRunning: "{{count}} en ejecución",
|
||||
pillLabelFailed: "{{count}} con error",
|
||||
pillLabelNeedsInputOne: "1 necesita datos",
|
||||
pillLabelNeedsInputMany: "{{count}} necesitan datos",
|
||||
pillLabelReadyToReview: "{{count}} para revisar",
|
||||
detachAction: "Separar {{label}}",
|
||||
detachTooltip: "Separar subagente",
|
||||
archiveAction: "Archivo{{label}}",
|
||||
|
||||
@@ -1671,6 +1671,11 @@ export const fr: TranslationResources = {
|
||||
title: "Sous-agents",
|
||||
pillLabelOne: "1 sous-agent",
|
||||
pillLabelMany: "{{count}} sous-agents",
|
||||
pillLabelRunning: "{{count}} en cours",
|
||||
pillLabelFailed: "{{count}} en échec",
|
||||
pillLabelNeedsInputOne: "1 attend une réponse",
|
||||
pillLabelNeedsInputMany: "{{count}} attendent une réponse",
|
||||
pillLabelReadyToReview: "{{count}} à relire",
|
||||
detachAction: "Detacher {{label}}",
|
||||
detachTooltip: "Detacher le sous-agent",
|
||||
archiveAction: "Archiver{{label}}",
|
||||
|
||||
@@ -1640,6 +1640,11 @@ export const ja: TranslationResources = {
|
||||
title: "サブエージェント",
|
||||
pillLabelOne: "サブエージェント 1 件",
|
||||
pillLabelMany: "サブエージェント {{count}} 件",
|
||||
pillLabelRunning: "{{count}} 件実行中",
|
||||
pillLabelFailed: "{{count}} 件失敗",
|
||||
pillLabelNeedsInputOne: "1 件が入力待ち",
|
||||
pillLabelNeedsInputMany: "{{count}} 件が入力待ち",
|
||||
pillLabelReadyToReview: "{{count}} 件レビュー待ち",
|
||||
detachAction: "{{label}}を切り離す",
|
||||
detachTooltip: "サブエージェントを切り離す",
|
||||
archiveAction: "{{label}}をアーカイブ",
|
||||
|
||||
@@ -1634,6 +1634,11 @@ export const ko: TranslationResources = {
|
||||
title: "하위 에이전트",
|
||||
pillLabelOne: "하위 에이전트 1개",
|
||||
pillLabelMany: "하위 에이전트 {{count}}개",
|
||||
pillLabelRunning: "{{count}}개 실행 중",
|
||||
pillLabelFailed: "{{count}}개 실패",
|
||||
pillLabelNeedsInputOne: "1개 입력 필요",
|
||||
pillLabelNeedsInputMany: "{{count}}개 입력 필요",
|
||||
pillLabelReadyToReview: "{{count}}개 검토 대기",
|
||||
detachAction: "{{label}} 분리",
|
||||
detachTooltip: "하위 에이전트 분리",
|
||||
archiveAction: "{{label}} 보관",
|
||||
|
||||
@@ -1653,6 +1653,11 @@ export const ptBR: TranslationResources = {
|
||||
title: "Subagentes",
|
||||
pillLabelOne: "1 subagente",
|
||||
pillLabelMany: "{{count}} subagentes",
|
||||
pillLabelRunning: "{{count}} em execução",
|
||||
pillLabelFailed: "{{count}} com falha",
|
||||
pillLabelNeedsInputOne: "1 precisa de resposta",
|
||||
pillLabelNeedsInputMany: "{{count}} precisam de resposta",
|
||||
pillLabelReadyToReview: "{{count}} para revisar",
|
||||
detachAction: "Desanexar {{label}}",
|
||||
detachTooltip: "Desanexar subagente",
|
||||
archiveAction: "Arquivar {{label}}",
|
||||
|
||||
@@ -1658,6 +1658,11 @@ export const ru: TranslationResources = {
|
||||
title: "Субагенты",
|
||||
pillLabelOne: "1 субагент",
|
||||
pillLabelMany: "{{count}} субагентов",
|
||||
pillLabelRunning: "{{count}} в работе",
|
||||
pillLabelFailed: "{{count}} с ошибкой",
|
||||
pillLabelNeedsInputOne: "1 ожидает ввода",
|
||||
pillLabelNeedsInputMany: "{{count}} ожидают ввода",
|
||||
pillLabelReadyToReview: "{{count}} на проверку",
|
||||
detachAction: "Отсоединить {{label}}",
|
||||
detachTooltip: "Отсоединить субагент",
|
||||
archiveAction: "Архив{{label}}",
|
||||
|
||||
@@ -1604,6 +1604,11 @@ export const zhCN: TranslationResources = {
|
||||
title: "Subagent",
|
||||
pillLabelOne: "1 个 subagent",
|
||||
pillLabelMany: "{{count}} 个 subagent",
|
||||
pillLabelRunning: "{{count}} 个运行中",
|
||||
pillLabelFailed: "{{count}} 个失败",
|
||||
pillLabelNeedsInputOne: "1 个需要输入",
|
||||
pillLabelNeedsInputMany: "{{count}} 个需要输入",
|
||||
pillLabelReadyToReview: "{{count}} 个待查看",
|
||||
detachAction: "分离 {{label}}",
|
||||
detachTooltip: "分离 subagent",
|
||||
archiveAction: "归档 {{label}}",
|
||||
|
||||
Reference in New Issue
Block a user