Skip to content

Your lightweight open-source personal agent.

chore(webui): remove subtask message status

chengyongru2b7d68611702
diff --git a/webui/src/components/thread/SubagentTasks.tsx b/webui/src/components/thread/SubagentTasks.tsx
index dc4961b6e..2e5da3410 100644
--- a/webui/src/components/thread/SubagentTasks.tsx
+++ b/webui/src/components/thread/SubagentTasks.tsx
@@ -198,14 +198,6 @@ export function SubagentTasksProvider({ client, sessionKey, token, enabled, live
</div> : null}
<SubagentThread key={`${sessionKey}:${selected.task_id}`} token={token} sessionKey={sessionKey}
task={selected} historyEnabled={historyEnabled} isStreaming={isActiveSubagentTask(selected)} />
- {Object.keys(selected.receipts).length ? <details className="mt-5 space-y-2 px-5 text-xs text-muted-foreground">
- <summary className="cursor-pointer py-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">{t("thread.subagents.messages")}</summary>
- <p>{t("thread.subagents.receiptHelp")}</p>
- {(["accepted", "delivered", "undelivered"] as const).map((receipt) => {
- const count = Object.values(selected.receipts).filter((entry) => entry === receipt).length;
- return count ? <p key={receipt}>{t(`thread.subagents.receipts.${receipt}`, { count })}</p> : null;
- })}
- </details> : null}
</div> : null}
</SheetContent>
</Sheet>
diff --git a/webui/src/i18n/locales/en/common.json b/webui/src/i18n/locales/en/common.json
index 5b5055589..869913ca8 100644
--- a/webui/src/i18n/locales/en/common.json
+++ b/webui/src/i18n/locales/en/common.json
@@ -1991,7 +1991,6 @@
"subagents": {
"stopFailed": "Could not stop this task.",
"stopTask": "Stop {{label}}",
- "receiptHelp": "Delivered means the message was included in the subtask’s next model request. It does not mean the instructions have been carried out.",
"states": {
"queued": "Queued",
"running": "Running",
@@ -2002,11 +2001,6 @@
"cancelled": "Cancelled",
"interrupted": "Interrupted"
},
- "receipts": {
- "accepted": "Queued: {{count}}",
- "delivered": "Delivered: {{count}}",
- "undelivered": "Undelivered: {{count}}"
- },
"interruptedHelp": "The host restarted before this task finished. It has not been restarted automatically.",
"workTitle": "Subtasks",
"otherWorkTitle": "Other tasks",
@@ -2015,8 +2009,7 @@
"running": "Running: {{count}}",
"finished": "Finished: {{count}}",
"completed": "Completed: {{count}}",
- "needsReview": "Review needed: {{count}}",
- "messages": "Message status"
+ "needsReview": "Review needed: {{count}}"
},
"compaction": {
"reasons": {
diff --git a/webui/src/i18n/locales/es/common.json b/webui/src/i18n/locales/es/common.json
index 391735db3..523fcbe00 100644
--- a/webui/src/i18n/locales/es/common.json
+++ b/webui/src/i18n/locales/es/common.json
@@ -1786,7 +1786,6 @@
"subagents": {
"stopFailed": "No se pudo detener esta tarea.",
"stopTask": "Detener {{label}}",
- "receiptHelp": "Entregado significa que el mensaje se incluyó en la siguiente solicitud del subagente, sin confirmar su ejecución.",
"states": {
"queued": "En cola",
"running": "En curso",
@@ -1797,11 +1796,6 @@
"cancelled": "Cancelada",
"interrupted": "Interrumpida"
},
- "receipts": {
- "accepted": "En cola: {{count}}",
- "delivered": "Entregados: {{count}}",
- "undelivered": "Sin entregar: {{count}}"
- },
"interruptedHelp": "El servidor se reinició antes de terminar esta tarea. No se ha vuelto a ejecutar automáticamente.",
"workTitle": "Subtareas",
"otherWorkTitle": "Otras tareas",
@@ -1810,8 +1804,7 @@
"running": "En curso: {{count}}",
"finished": "Finalizadas: {{count}}",
"completed": "Completadas: {{count}}",
- "needsReview": "Revisar: {{count}}",
- "messages": "Estado de mensajes"
+ "needsReview": "Revisar: {{count}}"
},
"compaction": {
"reasons": {
diff --git a/webui/src/i18n/locales/fr/common.json b/webui/src/i18n/locales/fr/common.json
index 11a29235b..53d93468a 100644
--- a/webui/src/i18n/locales/fr/common.json
+++ b/webui/src/i18n/locales/fr/common.json
@@ -1785,7 +1785,6 @@
"subagents": {
"stopFailed": "Impossible d’arrêter cette tâche.",
"stopTask": "Arrêter {{label}}",
- "receiptHelp": "Livré signifie que le message a été inclus dans la prochaine requête du sous-agent, sans confirmer son exécution.",
"states": {
"queued": "En attente",
"running": "En cours",
@@ -1796,11 +1795,6 @@
"cancelled": "Annulée",
"interrupted": "Interrompue"
},
- "receipts": {
- "accepted": "En attente : {{count}}",
- "delivered": "Livrés : {{count}}",
- "undelivered": "Non livrés : {{count}}"
- },
"interruptedHelp": "Le serveur a redémarré avant la fin de cette tâche. Elle n’a pas été relancée automatiquement.",
"workTitle": "Sous-tâches",
"otherWorkTitle": "Autres tâches",
@@ -1809,8 +1803,7 @@
"running": "En cours : {{count}}",
"finished": "Terminées : {{count}}",
"completed": "Réussies : {{count}}",
- "needsReview": "À vérifier : {{count}}",
- "messages": "État des messages"
+ "needsReview": "À vérifier : {{count}}"
},
"compaction": {
"reasons": {
diff --git a/webui/src/i18n/locales/id/common.json b/webui/src/i18n/locales/id/common.json
index a7577fa60..60de7f381 100644
--- a/webui/src/i18n/locales/id/common.json
+++ b/webui/src/i18n/locales/id/common.json
@@ -1785,7 +1785,6 @@
"subagents": {
"stopFailed": "Tidak dapat menghentikan tugas ini.",
"stopTask": "Hentikan {{label}}",
- "receiptHelp": "Terkirim berarti pesan disertakan dalam permintaan model berikutnya dari subagen, bukan konfirmasi bahwa pekerjaan selesai.",
"states": {
"queued": "Dalam antrean",
"running": "Berjalan",
@@ -1796,11 +1795,6 @@
"cancelled": "Dibatalkan",
"interrupted": "Terputus"
},
- "receipts": {
- "accepted": "Dalam antrean: {{count}}",
- "delivered": "Terkirim: {{count}}",
- "undelivered": "Tidak terkirim: {{count}}"
- },
"interruptedHelp": "Server dimulai ulang sebelum tugas ini selesai. Tugas tidak dijalankan ulang secara otomatis.",
"workTitle": "Subtugas",
"otherWorkTitle": "Tugas lain",
@@ -1809,8 +1803,7 @@
"running": "Berjalan: {{count}}",
"finished": "Berakhir: {{count}}",
"completed": "Selesai: {{count}}",
- "needsReview": "Perlu diperiksa: {{count}}",
- "messages": "Status pesan"
+ "needsReview": "Perlu diperiksa: {{count}}"
},
"compaction": {
"reasons": {
diff --git a/webui/src/i18n/locales/ja/common.json b/webui/src/i18n/locales/ja/common.json
index 43f79d819..9772e1980 100644
--- a/webui/src/i18n/locales/ja/common.json
+++ b/webui/src/i18n/locales/ja/common.json
@@ -1785,7 +1785,6 @@
"subagents": {
"stopFailed": "このタスクを停止できませんでした。",
"stopTask": "{{label}} を停止",
- "receiptHelp": "配信済みは子タスクの次のモデルリクエストにメッセージが含まれたことを示し、実行完了を意味しません。",
"states": {
"queued": "待機中",
"running": "実行中",
@@ -1796,11 +1795,6 @@
"cancelled": "キャンセル済み",
"interrupted": "中断"
},
- "receipts": {
- "accepted": "待機中: {{count}}",
- "delivered": "配信済み: {{count}}",
- "undelivered": "未配信: {{count}}"
- },
"interruptedHelp": "タスクの完了前にサーバーが再起動しました。タスクは自動的に再実行されていません。",
"workTitle": "サブタスク",
"otherWorkTitle": "ほかのタスク",
@@ -1809,8 +1803,7 @@
"running": "実行中: {{count}}",
"finished": "終了: {{count}}",
"completed": "完了: {{count}}",
- "needsReview": "要確認: {{count}}",
- "messages": "メッセージの状態"
+ "needsReview": "要確認: {{count}}"
},
"compaction": {
"reasons": {
diff --git a/webui/src/i18n/locales/ko/common.json b/webui/src/i18n/locales/ko/common.json
index 970f9dd39..0803adae2 100644
--- a/webui/src/i18n/locales/ko/common.json
+++ b/webui/src/i18n/locales/ko/common.json
@@ -1785,7 +1785,6 @@
"subagents": {
"stopFailed": "이 작업을 중지할 수 없습니다.",
"stopTask": "{{label}} 중지",
- "receiptHelp": "전달됨은 메시지가 하위 작업의 다음 모델 요청에 포함되었음을 뜻하며, 실행 완료를 의미하지 않습니다.",
"states": {
"queued": "대기 중",
"running": "실행 중",
@@ -1796,11 +1795,6 @@
"cancelled": "취소됨",
"interrupted": "중단됨"
},
- "receipts": {
- "accepted": "대기 중: {{count}}",
- "delivered": "전달됨: {{count}}",
- "undelivered": "미전달: {{count}}"
- },
"interruptedHelp": "작업이 완료되기 전에 서버가 다시 시작되었습니다. 작업은 자동으로 다시 실행되지 않았습니다.",
"workTitle": "하위 작업",
"otherWorkTitle": "다른 작업",
@@ -1809,8 +1803,7 @@
"running": "진행 중: {{count}}",
"finished": "종료: {{count}}",
"completed": "완료: {{count}}",
- "needsReview": "확인 필요: {{count}}",
- "messages": "메시지 상태"
+ "needsReview": "확인 필요: {{count}}"
},
"compaction": {
"reasons": {
diff --git a/webui/src/i18n/locales/pt-BR/common.json b/webui/src/i18n/locales/pt-BR/common.json
index 239fe98d5..33ae4a65b 100644
--- a/webui/src/i18n/locales/pt-BR/common.json
+++ b/webui/src/i18n/locales/pt-BR/common.json
@@ -1799,7 +1799,6 @@
"subagents": {
"stopFailed": "Não foi possível interromper esta tarefa.",
"stopTask": "Interromper {{label}}",
- "receiptHelp": "Entregue significa que a mensagem foi incluída na próxima solicitação do subagente, sem confirmar sua execução.",
"states": {
"queued": "Na fila",
"running": "Em execução",
@@ -1810,11 +1809,6 @@
"cancelled": "Cancelada",
"interrupted": "Interrompida"
},
- "receipts": {
- "accepted": "Na fila: {{count}}",
- "delivered": "Entregues: {{count}}",
- "undelivered": "Não entregues: {{count}}"
- },
"interruptedHelp": "O servidor reiniciou antes de concluir esta tarefa. Ela não foi executada novamente automaticamente.",
"workTitle": "Subtarefas",
"otherWorkTitle": "Outras tarefas",
@@ -1823,8 +1817,7 @@
"running": "Em andamento: {{count}}",
"finished": "Encerradas: {{count}}",
"completed": "Concluídas: {{count}}",
- "needsReview": "Revisar: {{count}}",
- "messages": "Status das mensagens"
+ "needsReview": "Revisar: {{count}}"
},
"compaction": {
"reasons": {
diff --git a/webui/src/i18n/locales/vi/common.json b/webui/src/i18n/locales/vi/common.json
index 1f3bcbb4b..acd1281ed 100644
--- a/webui/src/i18n/locales/vi/common.json
+++ b/webui/src/i18n/locales/vi/common.json
@@ -1785,7 +1785,6 @@
"subagents": {
"stopFailed": "Không thể dừng tác vụ này.",
"stopTask": "Dừng {{label}}",
- "receiptHelp": "Đã chuyển nghĩa là tin nhắn đã được đưa vào yêu cầu mô hình tiếp theo của tác nhân con, không xác nhận công việc đã hoàn tất.",
"states": {
"queued": "Đang chờ",
"running": "Đang chạy",
@@ -1796,11 +1795,6 @@
"cancelled": "Đã hủy",
"interrupted": "Bị gián đoạn"
},
- "receipts": {
- "accepted": "Đang chờ: {{count}}",
- "delivered": "Đã chuyển: {{count}}",
- "undelivered": "Chưa chuyển: {{count}}"
- },
"interruptedHelp": "Máy chủ khởi động lại trước khi tác vụ hoàn thành. Tác vụ không tự động chạy lại.",
"workTitle": "Tác vụ con",
"otherWorkTitle": "Tác vụ khác",
@@ -1809,8 +1803,7 @@
"running": "Đang chạy: {{count}}",
"finished": "Đã kết thúc: {{count}}",
"completed": "Đã hoàn thành: {{count}}",
- "needsReview": "Cần kiểm tra: {{count}}",
- "messages": "Trạng thái tin nhắn"
+ "needsReview": "Cần kiểm tra: {{count}}"
},
"compaction": {
"reasons": {
diff --git a/webui/src/i18n/locales/zh-CN/common.json b/webui/src/i18n/locales/zh-CN/common.json
index c013b2fe0..479175eb6 100644
--- a/webui/src/i18n/locales/zh-CN/common.json
+++ b/webui/src/i18n/locales/zh-CN/common.json
@@ -1991,7 +1991,6 @@
"subagents": {
"stopFailed": "无法停止此任务。",
"stopTask": "停止 {{label}}",
- "receiptHelp": "已送达表示消息已进入子任务的下一次模型请求,不代表已执行完成。",
"states": {
"queued": "排队中",
"running": "执行中",
@@ -2002,11 +2001,6 @@
"cancelled": "已取消",
"interrupted": "已中断"
},
- "receipts": {
- "accepted": "已排队:{{count}}",
- "delivered": "已送达:{{count}}",
- "undelivered": "未送达:{{count}}"
- },
"interruptedHelp": "后端重启时此任务尚未结束,任务没有自动恢复或重新执行。",
"workTitle": "子任务",
"otherWorkTitle": "其他任务",
@@ -2015,8 +2009,7 @@
"running": "{{count}} 项进行中",
"finished": "{{count}} 项已结束",
"completed": "{{count}} 项已完成",
- "needsReview": "{{count}} 项需检查",
- "messages": "消息状态"
+ "needsReview": "{{count}} 项需检查"
},
"compaction": {
"reasons": {
diff --git a/webui/src/i18n/locales/zh-TW/common.json b/webui/src/i18n/locales/zh-TW/common.json
index ae9df5155..71d00512e 100644
--- a/webui/src/i18n/locales/zh-TW/common.json
+++ b/webui/src/i18n/locales/zh-TW/common.json
@@ -1785,7 +1785,6 @@
"subagents": {
"stopFailed": "無法停止此任務。",
"stopTask": "停止 {{label}}",
- "receiptHelp": "已送達表示訊息已進入子任務的下一次模型請求,不代表已執行完成。",
"states": {
"queued": "排隊中",
"running": "執行中",
@@ -1796,11 +1795,6 @@
"cancelled": "已取消",
"interrupted": "已中斷"
},
- "receipts": {
- "accepted": "已排隊:{{count}}",
- "delivered": "已送達:{{count}}",
- "undelivered": "未送達:{{count}}"
- },
"interruptedHelp": "後端重新啟動時此任務尚未結束,任務沒有自動恢復或重新執行。",
"workTitle": "子任務",
"otherWorkTitle": "其他任務",
@@ -1809,8 +1803,7 @@
"running": "{{count}} 項進行中",
"finished": "{{count}} 項已結束",
"completed": "{{count}} 項已完成",
- "needsReview": "{{count}} 項需檢查",
- "messages": "訊息狀態"
+ "needsReview": "{{count}} 項需檢查"
},
"compaction": {
"reasons": {
diff --git a/webui/src/tests/subagent-tasks.test.tsx b/webui/src/tests/subagent-tasks.test.tsx
index 469d1ef56..b31bedd40 100644
--- a/webui/src/tests/subagent-tasks.test.tsx
+++ b/webui/src/tests/subagent-tasks.test.tsx
@@ -670,10 +670,10 @@ describe("session-owned task UI", () => {
expect(requestMutation).not.toHaveBeenCalled();
});
- it("shows truthful partial output, interruption and receipts, and restores keyboard focus", async () => {
+ it("shows truthful partial output and interruption, and restores keyboard focus", async () => {
vi.mocked(fetch).mockResolvedValue(response([task({
state: "interrupted", partial: true, result: "Found a conflicting setting",
- stop_reason: "host_restarted", completed_at: 102, receipts: { a: "delivered", b: "undelivered" },
+ stop_reason: "host_restarted", completed_at: 102,
})]));
const user = userEvent.setup();
render(layout());
@@ -686,8 +686,6 @@ describe("session-owned task UI", () => {
expect(detail).toHaveFocus();
expect(within(detail).getByText("Interrupted")).toBeVisible();
expect(within(detail).getByText("Found a conflicting setting")).toBeVisible();
- await user.click(within(detail).getByText("Message status"));
- expect(within(detail).getByText("Delivered: 1")).toBeVisible();
expect(screen.queryByRole("button", { name: "Stop Config check" })).not.toBeInTheDocument();
await user.keyboard("{Escape}");
await waitFor(() => expect(row).toHaveFocus());