🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix(goal): let completed goals be archived without a sign-off, and label achieved goals Completed (#22259)
Rdmclin29a969f0513ac
diff --git a/apps/cli/src/commands/goal/archive.ts b/apps/cli/src/commands/goal/archive.tsindex be867c3f7af..02e368c0eda 100644--- a/apps/cli/src/commands/goal/archive.ts+++ b/apps/cli/src/commands/goal/archive.ts@@ -7,7 +7,7 @@ import { resolveAppUrlBuilder } from '../task/url';/*** `lh goal archive` / `unarchive`. Archiving is the user's call, like a task's:- * it hides a signed-off or canceled goal from every list without changing its+ * it hides a completed or canceled goal from every list without changing its* status. Agents run it only when the user asks.*/export function registerGoalArchiveCommands(goal: Command) {@@ -32,7 +32,7 @@ export function registerGoalArchiveCommands(goal: Command) {register('archive',true,- 'Archive a signed-off or canceled goal (hidden from lists; status unchanged)',+ 'Archive a completed or canceled goal (hidden from lists; status unchanged)',);register('unarchive', false, 'Restore an archived goal to lists');}diff --git a/apps/server/src/routers/lambda/goal/lifecycle.ts b/apps/server/src/routers/lambda/goal/lifecycle.tsindex d8af5eb6ffa..6cbab5e7fad 100644--- a/apps/server/src/routers/lambda/goal/lifecycle.ts+++ b/apps/server/src/routers/lambda/goal/lifecycle.ts@@ -168,8 +168,8 @@ export const lifecycleRouter = router({}),/*** Put a goal away, or bring it back. User-only, like a task's archive: no- * agent tool exposes it. Only a goal that is done with — signed off by its- * owner, or canceled — can be archived: archived goals leave every list, so+ * agent tool exposes it. Only a goal that is done with — completed or+ * canceled — can be archived: archived goals leave every list, so* one still waiting on a decision would wait out of sight. `status` is left* untouched.*/@@ -192,7 +192,7 @@ export const lifecycleRouter = router({if (!data) {throw new TRPCError({code: 'BAD_REQUEST',- message: 'Only a signed-off or canceled goal can be archived',+ message: 'Only a completed or canceled goal can be archived',});}return { data, message: archived ? 'Goal archived' : 'Goal restored', success: true };diff --git a/apps/server/src/services/goal/GoalService/__tests__/archive.test.ts b/apps/server/src/services/goal/GoalService/__tests__/archive.test.tsindex 32a3539dc6d..c3bf9070a28 100644--- a/apps/server/src/services/goal/GoalService/__tests__/archive.test.ts+++ b/apps/server/src/services/goal/GoalService/__tests__/archive.test.ts@@ -55,12 +55,16 @@ describe('archived goals stay put', () => {expect((await new GoalModel(serverDB, userId).findById(graph.goal.id))?.status).toBe('draft');});- it('does not archive an achieved goal before its owner signs it off', async () => {+ // Marking a goal completed by hand leaves no Goal-level acceptance to sign+ // off, so archiving it cannot wait on one.+ it('archives a goal marked completed by hand, with nothing to sign off', async () => {const service = new GoalService(serverDB, userId);- const graph = await service.create({ tasks: ['Only'], title: 'Awaiting sign-off' });+ const graph = await service.create({ tasks: ['Only'], title: 'Marked completed' });await service.close(graph.goal.id, 'achieved');- expect(await new GoalArchiveModel(serverDB, userId).archive(graph.goal.id)).toBeNull();+ expect(+ (await new GoalArchiveModel(serverDB, userId).archive(graph.goal.id))?.archivedAt,+ ).toBeInstanceOf(Date);});it('refuses a change request on a Task of an archived goal until it is restored', async () => {diff --git a/apps/server/src/services/goal/GoalService/lifecycle.ts b/apps/server/src/services/goal/GoalService/lifecycle.tsindex d681029a5fa..35dc8b95bca 100644--- a/apps/server/src/services/goal/GoalService/lifecycle.ts+++ b/apps/server/src/services/goal/GoalService/lifecycle.ts@@ -157,7 +157,7 @@ export const transitionStatus = async (export const pause = async (ctx: GoalServiceContext, goalId: string) => {const graph = await ctx.requireGraph(goalId);- // An archived goal is done with (signed off or canceled); pausing would reopen it out of sight.+ // An archived goal is done with (completed or canceled); pausing would reopen it out of sight.assertGoalNotArchived(graph.goal);// A draft never ran; pausing it would let a later resume skip `start`.if (graph.goal.status === 'draft') throw draftNotStarted(goalId);diff --git a/locales/ar/chat.json b/locales/ar/chat.jsonindex 4f83795a919..5e2c4091694 100644--- a/locales/ar/chat.json+++ b/locales/ar/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "فقط منشئ الهدف أو مسؤول مساحة العمل يمكنه تغيير وكلائه","goalDetail.agentRun": "تشغيل الوكيل","goalDetail.closeConfirm.achieved.content": "سيتم إيقاف العمليات التي لا تزال قيد التنفيذ ولن تبدأ أي مهام جديدة. يمكنك إعادة فتح الهدف من هذه القائمة.",- "goalDetail.closeConfirm.achieved.ok": "وضع علامة كمنجز",- "goalDetail.closeConfirm.achieved.title": "وضع علامة على هذا الهدف كمنجز؟","goalDetail.closeConfirm.canceled.content": "سيتم إيقاف العمليات التي لا تزال قيد التنفيذ ولن تبدأ أي مهام جديدة. يمكنك إعادة فتح الهدف من هذه القائمة.","goalDetail.closeConfirm.canceled.ok": "إلغاء الهدف","goalDetail.closeConfirm.canceled.title": "إلغاء هذا الهدف؟",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "حدد النتيجة والمعيار","goalEmpty.step2.desc": "كل جولة هي تشغيل كامل للوكيل؛ إنتاجها، وقتها وتكلفتها كلها تعتمد على هذا الهدف.","goalEmpty.step2.title": "الوكيل ينفذ جولة بمفرده",- "goalEmpty.step3.desc": "يتم الحكم على كل تحقق واحدًا تلو الآخر. جميعها مجتازة تعني تحقيق الهدف؛ أي شيء يحتاج إلى قرارك يتوقف عند القبول المعلق.","goalEmpty.step3.title": "القبول يتم في كل جولة","goalEmpty.title": "تحقيق الأهداف بلا حدود","goalExperiment.acceptance": "عرض التحقق",@@ -723,7 +720,6 @@"goalList.noTasks": "لا توجد مهام حتى الآن","goalList.retry": "إعادة المحاولة","goalList.roundProgress": "الجولة {{current}}/{{total}}",- "goalList.status.achieved": "تم تحقيقه","goalList.status.canceled": "تم الإلغاء","goalList.status.draft": "لم يبدأ","goalList.status.error": "يحتاج إلى الانتباه",@@ -863,7 +859,6 @@"goalProcess.findings.from": "من “{{title}}”","goalProcess.findings.title": "النتائج","goalProcess.frontier.achievedDescription": "النتائج موجودة في الخريطة أدناه.",- "goalProcess.frontier.achievedTitle": "لا يوجد شيء للتقدم — تم تحقيق هذا الهدف","goalProcess.frontier.add": "إضافة مهمة","goalProcess.frontier.advanceable": "{{count}} يمكن أن يتقدم","goalProcess.frontier.blocked": "{{count}} ينتظر المزيد من التبعيات",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "تنفيذ","goalTask.stage.planning": "تخطيط","goalTask.stage.verifying": "قبول",- "goalTask.status.achieved": "تم تحقيقه","goalTask.status.canceled": "تم الإلغاء","goalTask.status.draft": "لم يبدأ","goalTask.status.error": "يحتاج إلى الانتباه",diff --git a/locales/bg-BG/chat.json b/locales/bg-BG/chat.jsonindex 2fa20250a26..348f3656a76 100644--- a/locales/bg-BG/chat.json+++ b/locales/bg-BG/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "Само създателят на целта или администратор на работното пространство може да променя нейните агенти","goalDetail.agentRun": "Изпълнение на агент","goalDetail.closeConfirm.achieved.content": "Изпълненията, които все още са в процес, ще бъдат спрени и няма да започнат нови задачи. Можете да отворите отново целта от това меню.",- "goalDetail.closeConfirm.achieved.ok": "Отбележи като постигната",- "goalDetail.closeConfirm.achieved.title": "Да отбележим ли тази цел като постигната?","goalDetail.closeConfirm.canceled.content": "Изпълненията, които все още са в процес, ще бъдат спрени и няма да започнат нови задачи. Можете да отворите отново целта от това меню.","goalDetail.closeConfirm.canceled.ok": "Отмени целта","goalDetail.closeConfirm.canceled.title": "Да отменим ли тази цел?",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "Определете резултата и критериите","goalEmpty.step2.desc": "Всеки кръг е едно пълно изпълнение от агента; неговият изход, време и разходи зависят от тази цел.","goalEmpty.step2.title": "Агентът изпълнява кръг самостоятелно",- "goalEmpty.step3.desc": "Всяка проверка се оценява една по една. Всички преминали означават постигнато; всичко, което изисква вашето решение, спира на изчакване за приемане.","goalEmpty.step3.title": "Приемане на всеки кръг","goalEmpty.title": "Постигайте цели без ограничения","goalExperiment.acceptance": "Преглед на проверката",@@ -723,7 +720,6 @@"goalList.noTasks": "Все още няма задачи","goalList.retry": "Опитай отново","goalList.roundProgress": "Рунд {{current}}/{{total}}",- "goalList.status.achieved": "Постигната","goalList.status.canceled": "Отменена","goalList.status.draft": "Не е започнато","goalList.status.error": "Изисква внимание",@@ -863,7 +859,6 @@"goalProcess.findings.from": "От „{{title}}“","goalProcess.findings.title": "Находки","goalProcess.frontier.achievedDescription": "Находките са на картата по-долу.",- "goalProcess.frontier.achievedTitle": "Няма какво повече да се напредва — тази цел е постигната","goalProcess.frontier.add": "Добавяне на задача","goalProcess.frontier.advanceable": "{{count}} могат да напреднат","goalProcess.frontier.blocked": "{{count}} чакат зависимости",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "Изпълнение","goalTask.stage.planning": "Планиране","goalTask.stage.verifying": "Приемане",- "goalTask.status.achieved": "Постигнато","goalTask.status.canceled": "Отменено","goalTask.status.draft": "Не е започнато","goalTask.status.error": "Изисква внимание",diff --git a/locales/de-DE/chat.json b/locales/de-DE/chat.jsonindex be3e867391f..ca8956214e2 100644--- a/locales/de-DE/chat.json+++ b/locales/de-DE/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "Nur der Ersteller des Ziels oder ein Arbeitsbereichs-Administrator kann dessen Agenten ändern","goalDetail.agentRun": "Agentenausführung","goalDetail.closeConfirm.achieved.content": "Läufe, die noch in Bearbeitung sind, werden gestoppt und keine neuen Aufgaben werden gestartet. Sie können das Ziel über dieses Menü erneut öffnen.",- "goalDetail.closeConfirm.achieved.ok": "Als erreicht markieren",- "goalDetail.closeConfirm.achieved.title": "Dieses Ziel als erreicht markieren?","goalDetail.closeConfirm.canceled.content": "Läufe, die noch in Bearbeitung sind, werden gestoppt und keine neuen Aufgaben werden gestartet. Sie können das Ziel über dieses Menü erneut öffnen.","goalDetail.closeConfirm.canceled.ok": "Ziel abbrechen","goalDetail.closeConfirm.canceled.title": "Dieses Ziel abbrechen?",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "Setzen Sie das Ergebnis und die Vorgaben","goalEmpty.step2.desc": "Jede Runde ist ein vollständiger Agentenlauf; sein Output, Zeit und Kosten hängen von diesem Ziel ab.","goalEmpty.step2.title": "Der Agent führt eine Runde eigenständig aus",- "goalEmpty.step3.desc": "Jede Überprüfung wird einzeln bewertet. Alles bestanden bedeutet erreicht; alles, was Ihre Entscheidung benötigt, bleibt bei ausstehender Akzeptanz stehen.","goalEmpty.step3.title": "Akzeptanz läuft jede Runde","goalEmpty.title": "Ziele ohne Grenzen verfolgen","goalExperiment.acceptance": "Verifizierung anzeigen",@@ -723,7 +720,6 @@"goalList.noTasks": "Noch keine Aufgaben","goalList.retry": "Erneut versuchen","goalList.roundProgress": "Runde {{current}}/{{total}}",- "goalList.status.achieved": "Erreicht","goalList.status.canceled": "Abgebrochen","goalList.status.draft": "Nicht gestartet","goalList.status.error": "Erfordert Aufmerksamkeit",@@ -863,7 +859,6 @@"goalProcess.findings.from": "Von „{{title}}“","goalProcess.findings.title": "Ergebnisse","goalProcess.frontier.achievedDescription": "Die Ergebnisse befinden sich in der Karte unten.",- "goalProcess.frontier.achievedTitle": "Nichts mehr voranzutreiben — dieses Ziel ist erreicht","goalProcess.frontier.add": "Aufgabe hinzufügen","goalProcess.frontier.advanceable": "{{count}} können voranschreiten","goalProcess.frontier.blocked": "{{count}} weitere warten auf Abhängigkeiten",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "Ausführen","goalTask.stage.planning": "Planen","goalTask.stage.verifying": "Akzeptieren",- "goalTask.status.achieved": "Erreicht","goalTask.status.canceled": "Abgebrochen","goalTask.status.draft": "Nicht gestartet","goalTask.status.error": "Erfordert Aufmerksamkeit",diff --git a/locales/en-US/chat.json b/locales/en-US/chat.jsonindex 665ad31e2c5..e6c69dbe4a8 100644--- a/locales/en-US/chat.json+++ b/locales/en-US/chat.json@@ -627,8 +627,8 @@"goalDetail.agentManagedByOwner": "Only the goal's creator or a Workspace admin can change its agents","goalDetail.agentRun": "Agent run","goalDetail.closeConfirm.achieved.content": "Runs still in progress will be stopped and no new tasks will start. You can reopen the goal from this menu.",- "goalDetail.closeConfirm.achieved.ok": "Mark achieved",- "goalDetail.closeConfirm.achieved.title": "Mark this goal as achieved?",+ "goalDetail.closeConfirm.achieved.ok": "Mark completed",+ "goalDetail.closeConfirm.achieved.title": "Mark this goal as completed?","goalDetail.closeConfirm.canceled.content": "Runs still in progress will be stopped and no new tasks will start. You can reopen the goal from this menu.","goalDetail.closeConfirm.canceled.ok": "Cancel goal","goalDetail.closeConfirm.canceled.title": "Cancel this goal?",@@ -697,7 +697,7 @@"goalEmpty.step1.title": "Set the outcome and the bar","goalEmpty.step2.desc": "Each round is one full agent run; its output, time and cost all hang off this goal.","goalEmpty.step2.title": "The agent runs a round on its own",- "goalEmpty.step3.desc": "Every check is judged one by one. All passed means achieved; anything needing your call stops and asks you.",+ "goalEmpty.step3.desc": "Every check is judged one by one. All passed means completed; anything needing your call stops and asks you.","goalEmpty.step3.title": "Acceptance runs every round","goalEmpty.title": "Chase goals without limits","goalExperiment.acceptance": "View verification",@@ -740,7 +740,7 @@"goalList.acceptanceProgress": "{{passed}}/{{total}} passed","goalList.agentRuns": "{{count}} runs","goalList.archive": "Archive",- "goalList.archiveBlocked": "Sign off or cancel the goal before archiving it",+ "goalList.archiveBlocked": "Only a completed or canceled goal can be archived","goalList.archiveDenied": "Only the goal creator or a workspace owner can archive it","goalList.archiveFailed": "Failed to archive goal","goalList.archiveSuccess": "Goal archived",@@ -758,7 +758,7 @@"goalList.noTasks": "No tasks yet","goalList.retry": "Retry","goalList.roundProgress": "Round {{current}}/{{total}}",- "goalList.status.achieved": "Achieved",+ "goalList.status.achieved": "Completed","goalList.status.canceled": "Canceled","goalList.status.draft": "Not started","goalList.status.error": "Needs attention",@@ -902,7 +902,7 @@"goalProcess.findings.from": "From “{{title}}”","goalProcess.findings.title": "Findings","goalProcess.frontier.achievedDescription": "The findings are in the map below.",- "goalProcess.frontier.achievedTitle": "Nothing left to advance — this goal is achieved",+ "goalProcess.frontier.achievedTitle": "Nothing left to advance — this goal is completed","goalProcess.frontier.add": "Add task","goalProcess.frontier.advanceable": "{{count}} can advance","goalProcess.frontier.blocked": "{{count}} more waiting on dependencies",@@ -1270,7 +1270,7 @@"goalTask.stage.executing": "Execute","goalTask.stage.planning": "Plan","goalTask.stage.verifying": "Accept",- "goalTask.status.achieved": "Achieved",+ "goalTask.status.achieved": "Completed","goalTask.status.canceled": "Canceled","goalTask.status.draft": "Not started","goalTask.status.error": "Needs attention",diff --git a/locales/es-ES/chat.json b/locales/es-ES/chat.jsonindex 8b59c2573db..444b4481677 100644--- a/locales/es-ES/chat.json+++ b/locales/es-ES/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "Solo el creador del objetivo o un administrador del espacio de trabajo puede cambiar sus agentes","goalDetail.agentRun": "Ejecución del agente","goalDetail.closeConfirm.achieved.content": "Las ejecuciones en curso se detendrán y no se iniciarán nuevas tareas. Puedes reabrir el objetivo desde este menú.",- "goalDetail.closeConfirm.achieved.ok": "Marcar como logrado",- "goalDetail.closeConfirm.achieved.title": "¿Marcar este objetivo como logrado?","goalDetail.closeConfirm.canceled.content": "Las ejecuciones en curso se detendrán y no se iniciarán nuevas tareas. Puedes reabrir el objetivo desde este menú.","goalDetail.closeConfirm.canceled.ok": "Cancelar objetivo","goalDetail.closeConfirm.canceled.title": "¿Cancelar este objetivo?",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "Establece el resultado y el estándar","goalEmpty.step2.desc": "Cada ronda es una ejecución completa del agente; su salida, tiempo y costo dependen de este objetivo.","goalEmpty.step2.title": "El agente ejecuta una ronda por sí solo",- "goalEmpty.step3.desc": "Cada verificación se evalúa una por una. Todas aprobadas significa logrado; cualquier cosa que requiera tu decisión se detiene en aceptación pendiente.","goalEmpty.step3.title": "La aceptación se ejecuta en cada ronda","goalEmpty.title": "Persigue objetivos sin límites","goalExperiment.acceptance": "Ver verificación",@@ -723,7 +720,6 @@"goalList.noTasks": "Aún no hay tareas","goalList.retry": "Reintentar","goalList.roundProgress": "Ronda {{current}}/{{total}}",- "goalList.status.achieved": "Logrado","goalList.status.canceled": "Cancelado","goalList.status.draft": "No iniciado","goalList.status.error": "Requiere atención",@@ -863,7 +859,6 @@"goalProcess.findings.from": "De “{{title}}”","goalProcess.findings.title": "Hallazgos","goalProcess.frontier.achievedDescription": "Los hallazgos están en el mapa a continuación.",- "goalProcess.frontier.achievedTitle": "Nada más que avanzar — este objetivo está logrado","goalProcess.frontier.add": "Agregar tarea","goalProcess.frontier.advanceable": "{{count}} pueden avanzar","goalProcess.frontier.blocked": "{{count}} más esperando dependencias",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "Ejecutar","goalTask.stage.planning": "Planificar","goalTask.stage.verifying": "Aceptar",- "goalTask.status.achieved": "Logrado","goalTask.status.canceled": "Cancelado","goalTask.status.draft": "No iniciado","goalTask.status.error": "Requiere atención",diff --git a/locales/fa-IR/chat.json b/locales/fa-IR/chat.jsonindex 9099e8da087..1b784740e91 100644--- a/locales/fa-IR/chat.json+++ b/locales/fa-IR/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "فقط خالق هدف یا مدیر یک فضای کاری میتواند عوامل آن را تغییر دهد","goalDetail.agentRun": "اجرای عامل","goalDetail.closeConfirm.achieved.content": "اجراهای در حال پیشرفت متوقف خواهند شد و هیچ وظیفه جدیدی شروع نخواهد شد. میتوانید هدف را از این منو دوباره باز کنید.",- "goalDetail.closeConfirm.achieved.ok": "علامتگذاری به عنوان تکمیلشده",- "goalDetail.closeConfirm.achieved.title": "آیا میخواهید این هدف را به عنوان تکمیلشده علامتگذاری کنید؟","goalDetail.closeConfirm.canceled.content": "اجراهای در حال پیشرفت متوقف خواهند شد و هیچ وظیفه جدیدی شروع نخواهد شد. میتوانید هدف را از این منو دوباره باز کنید.","goalDetail.closeConfirm.canceled.ok": "لغو هدف","goalDetail.closeConfirm.canceled.title": "آیا میخواهید این هدف را لغو کنید؟",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "نتیجه و معیار را تنظیم کنید","goalEmpty.step2.desc": "هر دور یک اجرای کامل عامل است؛ خروجی، زمان و هزینه آن همه به این هدف وابسته است.","goalEmpty.step2.title": "عامل یک دور را به تنهایی اجرا میکند",- "goalEmpty.step3.desc": "هر بررسی یکی یکی قضاوت میشود. همه قبول شده یعنی به هدف رسیده؛ هر چیزی که نیاز به تصمیم شما داشته باشد در حالت پذیرش معلق متوقف میشود.","goalEmpty.step3.title": "پذیرش در هر دور اجرا میشود","goalEmpty.title": "اهداف را بدون محدودیت دنبال کنید","goalExperiment.acceptance": "مشاهده تأییدیه",@@ -723,7 +720,6 @@"goalList.noTasks": "هنوز وظیفهای وجود ندارد","goalList.retry": "تلاش مجدد","goalList.roundProgress": "دور {{current}}/{{total}}",- "goalList.status.achieved": "دستیابی","goalList.status.canceled": "لغو شده","goalList.status.draft": "شروع نشده","goalList.status.error": "نیاز به توجه",@@ -863,7 +859,6 @@"goalProcess.findings.from": "از «{{title}}»","goalProcess.findings.title": "یافتهها","goalProcess.frontier.achievedDescription": "یافتهها در نقشه زیر قرار دارند.",- "goalProcess.frontier.achievedTitle": "هیچ چیزی برای پیشرفت باقی نمانده است — این هدف محقق شده است","goalProcess.frontier.add": "افزودن وظیفه","goalProcess.frontier.advanceable": "{{count}} میتواند پیشرفت کند","goalProcess.frontier.blocked": "{{count}} مورد دیگر منتظر وابستگیها",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "اجرا","goalTask.stage.planning": "برنامهریزی","goalTask.stage.verifying": "پذیرش",- "goalTask.status.achieved": "تحقق یافته","goalTask.status.canceled": "لغو شده","goalTask.status.draft": "شروع نشده","goalTask.status.error": "نیاز به توجه",diff --git a/locales/fr-FR/chat.json b/locales/fr-FR/chat.jsonindex ceea9346102..47553b63787 100644--- a/locales/fr-FR/chat.json+++ b/locales/fr-FR/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "Seul le créateur de l'objectif ou un administrateur de l'espace de travail peut modifier ses agents","goalDetail.agentRun": "Exécution de l'agent","goalDetail.closeConfirm.achieved.content": "Les exécutions encore en cours seront arrêtées et aucune nouvelle tâche ne sera lancée. Vous pouvez rouvrir l'objectif depuis ce menu.",- "goalDetail.closeConfirm.achieved.ok": "Marquer comme atteint",- "goalDetail.closeConfirm.achieved.title": "Marquer cet objectif comme atteint ?","goalDetail.closeConfirm.canceled.content": "Les exécutions encore en cours seront arrêtées et aucune nouvelle tâche ne sera lancée. Vous pouvez rouvrir l'objectif depuis ce menu.","goalDetail.closeConfirm.canceled.ok": "Annuler l'objectif","goalDetail.closeConfirm.canceled.title": "Annuler cet objectif ?",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "Définissez le résultat et le critère","goalEmpty.step2.desc": "Chaque tour est une exécution complète de l'agent ; son résultat, son temps et son coût dépendent de cet objectif.","goalEmpty.step2.title": "L'agent exécute un tour de manière autonome",- "goalEmpty.step3.desc": "Chaque vérification est évaluée une par une. Toutes validées signifie que l'objectif est atteint ; tout ce qui nécessite votre décision s'arrête en attente d'acceptation.","goalEmpty.step3.title": "L'acceptation se fait à chaque tour","goalEmpty.title": "Poursuivez des objectifs sans limites","goalExperiment.acceptance": "Voir la vérification",@@ -723,7 +720,6 @@"goalList.noTasks": "Aucune tâche pour le moment","goalList.retry": "Réessayer","goalList.roundProgress": "Cycle {{current}}/{{total}}",- "goalList.status.achieved": "Atteint","goalList.status.canceled": "Annulé","goalList.status.draft": "Non commencé","goalList.status.error": "Nécessite une attention",@@ -863,7 +859,6 @@"goalProcess.findings.from": "De « {{title}} »","goalProcess.findings.title": "Résultats","goalProcess.frontier.achievedDescription": "Les résultats sont dans la carte ci-dessous.",- "goalProcess.frontier.achievedTitle": "Plus rien à avancer — cet objectif est atteint","goalProcess.frontier.add": "Ajouter une tâche","goalProcess.frontier.advanceable": "{{count}} peuvent avancer","goalProcess.frontier.blocked": "{{count}} en attente de dépendances",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "Exécuter","goalTask.stage.planning": "Planifier","goalTask.stage.verifying": "Accepter",- "goalTask.status.achieved": "Atteint","goalTask.status.canceled": "Annulé","goalTask.status.draft": "Non commencé","goalTask.status.error": "Nécessite une attention",diff --git a/locales/it-IT/chat.json b/locales/it-IT/chat.jsonindex c5c9ea2bed9..54dd0283c49 100644--- a/locales/it-IT/chat.json+++ b/locales/it-IT/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "Solo il creatore dell'obiettivo o un amministratore del Workspace può modificare i suoi agenti","goalDetail.agentRun": "Esecuzione agente","goalDetail.closeConfirm.achieved.content": "Le esecuzioni ancora in corso verranno interrotte e non inizieranno nuovi compiti. Puoi riaprire l'obiettivo da questo menu.",- "goalDetail.closeConfirm.achieved.ok": "Segna come completato",- "goalDetail.closeConfirm.achieved.title": "Segnare questo obiettivo come completato?","goalDetail.closeConfirm.canceled.content": "Le esecuzioni ancora in corso verranno interrotte e non inizieranno nuovi compiti. Puoi riaprire l'obiettivo da questo menu.","goalDetail.closeConfirm.canceled.ok": "Annulla obiettivo","goalDetail.closeConfirm.canceled.title": "Annullare questo obiettivo?",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "Definisci il risultato e lo standard","goalEmpty.step2.desc": "Ogni round è un'esecuzione completa dell'agente; il suo output, tempo e costo dipendono da questo obiettivo.","goalEmpty.step2.title": "L'agente esegue un round autonomamente",- "goalEmpty.step3.desc": "Ogni verifica viene giudicata una per una. Tutte superate significa raggiunto; qualsiasi cosa che richieda la tua decisione si ferma in attesa di accettazione.","goalEmpty.step3.title": "L'accettazione avviene ogni round","goalEmpty.title": "Raggiungi obiettivi senza limiti","goalExperiment.acceptance": "Visualizza verifica",@@ -723,7 +720,6 @@"goalList.noTasks": "Nessun compito presente","goalList.retry": "Riprova","goalList.roundProgress": "Round {{current}}/{{total}}",- "goalList.status.achieved": "Raggiunto","goalList.status.canceled": "Annullato","goalList.status.draft": "Non iniziato","goalList.status.error": "Richiede attenzione",@@ -863,7 +859,6 @@"goalProcess.findings.from": "Da “{{title}}”","goalProcess.findings.title": "Risultati","goalProcess.frontier.achievedDescription": "I risultati sono nella mappa qui sotto.",- "goalProcess.frontier.achievedTitle": "Niente più da avanzare — questo obiettivo è stato raggiunto","goalProcess.frontier.add": "Aggiungi compito","goalProcess.frontier.advanceable": "{{count}} possono avanzare","goalProcess.frontier.blocked": "{{count}} in attesa di dipendenze",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "Esegui","goalTask.stage.planning": "Pianifica","goalTask.stage.verifying": "Accetta",- "goalTask.status.achieved": "Raggiunto","goalTask.status.canceled": "Annullato","goalTask.status.draft": "Non iniziato","goalTask.status.error": "Richiede attenzione",diff --git a/locales/ja-JP/chat.json b/locales/ja-JP/chat.jsonindex 4cc69110953..c676fb1fb44 100644--- a/locales/ja-JP/chat.json+++ b/locales/ja-JP/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "目標の作成者またはワークスペース管理者のみがそのエージェントを変更できます","goalDetail.agentRun": "エージェント実行","goalDetail.closeConfirm.achieved.content": "進行中の実行は停止され、新しいタスクは開始されません。このメニューから目標を再開できます。",- "goalDetail.closeConfirm.achieved.ok": "達成済みとしてマーク",- "goalDetail.closeConfirm.achieved.title": "この目標を達成済みとしてマークしますか?","goalDetail.closeConfirm.canceled.content": "進行中の実行は停止され、新しいタスクは開始されません。このメニューから目標を再開できます。","goalDetail.closeConfirm.canceled.ok": "目標をキャンセル","goalDetail.closeConfirm.canceled.title": "この目標をキャンセルしますか?",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "結果と基準を設定","goalEmpty.step2.desc": "各ラウンドは1回の完全なエージェント実行です。その出力、時間、コストはすべてこの目標に関連します。","goalEmpty.step2.title": "エージェントが独自にラウンドを実行",- "goalEmpty.step3.desc": "各チェックは1つずつ評価されます。すべて合格すれば達成、判断が必要なものは保留状態で停止します。","goalEmpty.step3.title": "各ラウンドでの受け入れ評価","goalEmpty.title": "制限なしで目標を追求","goalExperiment.acceptance": "検証を表示",@@ -723,7 +720,6 @@"goalList.noTasks": "まだタスクがありません","goalList.retry": "再試行","goalList.roundProgress": "ラウンド {{current}}/{{total}}",- "goalList.status.achieved": "達成済み","goalList.status.canceled": "キャンセル済み","goalList.status.draft": "未開始","goalList.status.error": "要注意",@@ -863,7 +859,6 @@"goalProcess.findings.from": "「{{title}}」から","goalProcess.findings.title": "発見","goalProcess.frontier.achievedDescription": "発見は以下のマップにあります。",- "goalProcess.frontier.achievedTitle": "進めるものはありません — この目標は達成されました","goalProcess.frontier.add": "タスクを追加","goalProcess.frontier.advanceable": "{{count}} 件が進行可能","goalProcess.frontier.blocked": "{{count}} 件が依存関係を待っています",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "実行","goalTask.stage.planning": "計画","goalTask.stage.verifying": "承認",- "goalTask.status.achieved": "達成済み","goalTask.status.canceled": "キャンセル済み","goalTask.status.draft": "未開始","goalTask.status.error": "要注意",diff --git a/locales/ko-KR/chat.json b/locales/ko-KR/chat.jsonindex 25b9da9aa59..22121aaa1a2 100644--- a/locales/ko-KR/chat.json+++ b/locales/ko-KR/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "목표의 생성자나 작업 공간 관리자가 에이전트를 변경할 수 있습니다","goalDetail.agentRun": "에이전트 실행","goalDetail.closeConfirm.achieved.content": "진행 중인 실행은 중단되며 새로운 작업은 시작되지 않습니다. 이 메뉴에서 목표를 다시 열 수 있습니다.",- "goalDetail.closeConfirm.achieved.ok": "달성으로 표시",- "goalDetail.closeConfirm.achieved.title": "이 목표를 달성으로 표시하시겠습니까?","goalDetail.closeConfirm.canceled.content": "진행 중인 실행은 중단되며 새로운 작업은 시작되지 않습니다. 이 메뉴에서 목표를 다시 열 수 있습니다.","goalDetail.closeConfirm.canceled.ok": "목표 취소","goalDetail.closeConfirm.canceled.title": "이 목표를 취소하시겠습니까?",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "결과와 기준 설정","goalEmpty.step2.desc": "각 라운드는 하나의 완전한 에이전트 실행입니다; 출력, 시간 및 비용은 모두 이 목표에 따라 결정됩니다.","goalEmpty.step2.title": "에이전트가 독립적으로 라운드 실행",- "goalEmpty.step3.desc": "각 확인은 개별적으로 평가됩니다. 모두 통과하면 목표 달성; 추가 확인이 필요한 경우 대기 상태로 중지됩니다.","goalEmpty.step3.title": "매 라운드 수락 실행","goalEmpty.title": "제한 없는 목표 추구","goalExperiment.acceptance": "검증 보기",@@ -723,7 +720,6 @@"goalList.noTasks": "아직 작업이 없습니다","goalList.retry": "다시 시도","goalList.roundProgress": "라운드 {{current}}/{{total}}",- "goalList.status.achieved": "달성됨","goalList.status.canceled": "취소됨","goalList.status.draft": "시작되지 않음","goalList.status.error": "주의 필요",@@ -863,7 +859,6 @@"goalProcess.findings.from": "“{{title}}”에서","goalProcess.findings.title": "발견","goalProcess.frontier.achievedDescription": "발견된 내용은 아래 지도에 표시됩니다.",- "goalProcess.frontier.achievedTitle": "더 이상 진행할 것이 없습니다 — 이 목표는 달성되었습니다","goalProcess.frontier.add": "작업 추가","goalProcess.frontier.advanceable": "{{count}}개 진행 가능","goalProcess.frontier.blocked": "{{count}}개가 의존성 대기 중",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "실행","goalTask.stage.planning": "계획","goalTask.stage.verifying": "수락",- "goalTask.status.achieved": "달성됨","goalTask.status.canceled": "취소됨","goalTask.status.draft": "시작되지 않음","goalTask.status.error": "주의 필요",diff --git a/locales/nl-NL/chat.json b/locales/nl-NL/chat.jsonindex a6dca382578..717cf9dddbd 100644--- a/locales/nl-NL/chat.json+++ b/locales/nl-NL/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "Alleen de maker van het doel of een Workspace-beheerder kan de agents wijzigen","goalDetail.agentRun": "Agentuitvoering","goalDetail.closeConfirm.achieved.content": "Runs die nog bezig zijn, worden gestopt en er starten geen nieuwe taken. Je kunt het doel opnieuw openen via dit menu.",- "goalDetail.closeConfirm.achieved.ok": "Markeer als behaald",- "goalDetail.closeConfirm.achieved.title": "Dit doel als behaald markeren?","goalDetail.closeConfirm.canceled.content": "Runs die nog bezig zijn, worden gestopt en er starten geen nieuwe taken. Je kunt het doel opnieuw openen via dit menu.","goalDetail.closeConfirm.canceled.ok": "Doel annuleren","goalDetail.closeConfirm.canceled.title": "Dit doel annuleren?",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "Stel het resultaat en de norm vast","goalEmpty.step2.desc": "Elke ronde is één volledige agentrun; de output, tijd en kosten hangen allemaal af van dit doel.","goalEmpty.step2.title": "De agent voert zelfstandig een ronde uit",- "goalEmpty.step3.desc": "Elke controle wordt één voor één beoordeeld. Alles geslaagd betekent bereikt; alles wat jouw beslissing nodig heeft, stopt bij hangende acceptatie.","goalEmpty.step3.title": "Acceptatie vindt elke ronde plaats","goalEmpty.title": "Doelen nastreven zonder grenzen","goalExperiment.acceptance": "Bekijk verificatie",@@ -723,7 +720,6 @@"goalList.noTasks": "Nog geen taken","goalList.retry": "Opnieuw proberen","goalList.roundProgress": "Ronde {{current}}/{{total}}",- "goalList.status.achieved": "Behaald","goalList.status.canceled": "Geannuleerd","goalList.status.draft": "Niet gestart","goalList.status.error": "Aandacht nodig",@@ -863,7 +859,6 @@"goalProcess.findings.from": "Van “{{title}}”","goalProcess.findings.title": "Bevindingen","goalProcess.frontier.achievedDescription": "De bevindingen staan in de onderstaande kaart.",- "goalProcess.frontier.achievedTitle": "Niets meer om te bevorderen — dit doel is bereikt","goalProcess.frontier.add": "Taak toevoegen","goalProcess.frontier.advanceable": "{{count}} kan worden bevorderd","goalProcess.frontier.blocked": "{{count}} wacht nog op afhankelijkheden",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "Uitvoeren","goalTask.stage.planning": "Plannen","goalTask.stage.verifying": "Accepteren",- "goalTask.status.achieved": "Behaald","goalTask.status.canceled": "Geannuleerd","goalTask.status.draft": "Niet gestart","goalTask.status.error": "Heeft aandacht nodig",diff --git a/locales/pl-PL/chat.json b/locales/pl-PL/chat.jsonindex 29250ef4fcd..a752692e110 100644--- a/locales/pl-PL/chat.json+++ b/locales/pl-PL/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "Tylko twórca celu lub administrator przestrzeni roboczej może zmieniać jego agentów","goalDetail.agentRun": "Uruchomienie agenta","goalDetail.closeConfirm.achieved.content": "Trwające uruchomienia zostaną zatrzymane, a nowe zadania nie zostaną rozpoczęte. Możesz ponownie otworzyć cel z tego menu.",- "goalDetail.closeConfirm.achieved.ok": "Oznacz jako osiągnięty",- "goalDetail.closeConfirm.achieved.title": "Oznaczyć ten cel jako osiągnięty?","goalDetail.closeConfirm.canceled.content": "Trwające uruchomienia zostaną zatrzymane, a nowe zadania nie zostaną rozpoczęte. Możesz ponownie otworzyć cel z tego menu.","goalDetail.closeConfirm.canceled.ok": "Anuluj cel","goalDetail.closeConfirm.canceled.title": "Anulować ten cel?",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "Określ rezultat i standard","goalEmpty.step2.desc": "Każda runda to pełne działanie agenta; jego wynik, czas i koszt są powiązane z tym celem.","goalEmpty.step2.title": "Agent wykonuje rundę samodzielnie",- "goalEmpty.step3.desc": "Każda kontrola jest oceniana pojedynczo. Wszystkie zaliczone oznaczają osiągnięcie; wszystko, co wymaga Twojej decyzji, zatrzymuje się na oczekującej akceptacji.","goalEmpty.step3.title": "Akceptacja odbywa się w każdej rundzie","goalEmpty.title": "Realizuj cele bez ograniczeń","goalExperiment.acceptance": "Zobacz weryfikację",@@ -723,7 +720,6 @@"goalList.noTasks": "Brak zadań","goalList.retry": "Spróbuj ponownie","goalList.roundProgress": "Runda {{current}}/{{total}}",- "goalList.status.achieved": "Osiągnięty","goalList.status.canceled": "Anulowany","goalList.status.draft": "Nie rozpoczęto","goalList.status.error": "Wymaga uwagi",@@ -863,7 +859,6 @@"goalProcess.findings.from": "Z „{{title}}”","goalProcess.findings.title": "Ustalenia","goalProcess.frontier.achievedDescription": "Ustalenia znajdują się na mapie poniżej.",- "goalProcess.frontier.achievedTitle": "Nie ma nic więcej do zrobienia — cel został osiągnięty","goalProcess.frontier.add": "Dodaj zadanie","goalProcess.frontier.advanceable": "{{count}} może postępować","goalProcess.frontier.blocked": "{{count}} czeka na zależności",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "Wykonaj","goalTask.stage.planning": "Zaplanuj","goalTask.stage.verifying": "Zaakceptuj",- "goalTask.status.achieved": "Osiągnięty","goalTask.status.canceled": "Anulowany","goalTask.status.draft": "Nie rozpoczęto","goalTask.status.error": "Wymaga uwagi",diff --git a/locales/pt-BR/chat.json b/locales/pt-BR/chat.jsonindex fa7a7a09cdb..598fa784c56 100644--- a/locales/pt-BR/chat.json+++ b/locales/pt-BR/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "Somente o criador do objetivo ou um administrador do espaço de trabalho pode alterar seus agentes","goalDetail.agentRun": "Execução do agente","goalDetail.closeConfirm.achieved.content": "Execuções ainda em andamento serão interrompidas e nenhuma nova tarefa será iniciada. Você pode reabrir o objetivo a partir deste menu.",- "goalDetail.closeConfirm.achieved.ok": "Marcar como concluído",- "goalDetail.closeConfirm.achieved.title": "Marcar este objetivo como concluído?","goalDetail.closeConfirm.canceled.content": "Execuções ainda em andamento serão interrompidas e nenhuma nova tarefa será iniciada. Você pode reabrir o objetivo a partir deste menu.","goalDetail.closeConfirm.canceled.ok": "Cancelar objetivo","goalDetail.closeConfirm.canceled.title": "Cancelar este objetivo?",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "Defina o resultado e o padrão","goalEmpty.step2.desc": "Cada rodada é uma execução completa do agente; sua saída, tempo e custo estão todos vinculados a este objetivo.","goalEmpty.step2.title": "O agente executa uma rodada por conta própria",- "goalEmpty.step3.desc": "Cada verificação é avaliada uma a uma. Todas aprovadas significa alcançado; qualquer coisa que precise da sua decisão para em aceitação pendente.","goalEmpty.step3.title": "Aceitação ocorre a cada rodada","goalEmpty.title": "Persiga objetivos sem limites","goalExperiment.acceptance": "Verificar visualização",@@ -723,7 +720,6 @@"goalList.noTasks": "Nenhuma tarefa ainda","goalList.retry": "Tentar novamente","goalList.roundProgress": "Rodada {{current}}/{{total}}",- "goalList.status.achieved": "Concluído","goalList.status.canceled": "Cancelado","goalList.status.draft": "Não iniciado","goalList.status.error": "Necessita de atenção",@@ -863,7 +859,6 @@"goalProcess.findings.from": "De “{{title}}”","goalProcess.findings.title": "Descobertas","goalProcess.frontier.achievedDescription": "As descobertas estão no mapa abaixo.",- "goalProcess.frontier.achievedTitle": "Nada mais para avançar — este objetivo foi alcançado","goalProcess.frontier.add": "Adicionar tarefa","goalProcess.frontier.advanceable": "{{count}} podem avançar","goalProcess.frontier.blocked": "{{count}} aguardando dependências",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "Executar","goalTask.stage.planning": "Planejar","goalTask.stage.verifying": "Aceitar",- "goalTask.status.achieved": "Concluído","goalTask.status.canceled": "Cancelado","goalTask.status.draft": "Não iniciado","goalTask.status.error": "Necessita de atenção",diff --git a/locales/ru-RU/chat.json b/locales/ru-RU/chat.jsonindex b0886c6a54c..f7b309f936f 100644--- a/locales/ru-RU/chat.json+++ b/locales/ru-RU/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "Только создатель цели или администратор рабочего пространства могут изменять её агентов","goalDetail.agentRun": "Запуск агента","goalDetail.closeConfirm.achieved.content": "Выполнения, которые все еще находятся в процессе, будут остановлены, и новые задачи не начнутся. Вы можете снова открыть цель из этого меню.",- "goalDetail.closeConfirm.achieved.ok": "Отметить как выполненную",- "goalDetail.closeConfirm.achieved.title": "Отметить эту цель как выполненную?","goalDetail.closeConfirm.canceled.content": "Выполнения, которые все еще находятся в процессе, будут остановлены, и новые задачи не начнутся. Вы можете снова открыть цель из этого меню.","goalDetail.closeConfirm.canceled.ok": "Отменить цель","goalDetail.closeConfirm.canceled.title": "Отменить эту цель?",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "Установите результат и критерии","goalEmpty.step2.desc": "Каждый раунд — это полный запуск агента; его вывод, время и стоимость связаны с этой целью.","goalEmpty.step2.title": "Агент выполняет раунд самостоятельно",- "goalEmpty.step3.desc": "Каждая проверка оценивается по отдельности. Все пройдено — цель достигнута; если что-то требует вашего решения, выполнение останавливается на этапе принятия.","goalEmpty.step3.title": "Приемка выполняется в каждом раунде","goalEmpty.title": "Достигайте целей без ограничений","goalExperiment.acceptance": "Просмотр проверки",@@ -723,7 +720,6 @@"goalList.noTasks": "Задачи пока отсутствуют","goalList.retry": "Повторить","goalList.roundProgress": "Раунд {{current}}/{{total}}",- "goalList.status.achieved": "Достигнуто","goalList.status.canceled": "Отменено","goalList.status.draft": "Не начато","goalList.status.error": "Требуется внимание",@@ -863,7 +859,6 @@"goalProcess.findings.from": "Из «{{title}}»","goalProcess.findings.title": "Находки","goalProcess.frontier.achievedDescription": "Находки отображены на карте ниже.",- "goalProcess.frontier.achievedTitle": "Больше нечего продвигать — цель достигнута","goalProcess.frontier.add": "Добавить задачу","goalProcess.frontier.advanceable": "{{count}} можно продвинуть","goalProcess.frontier.blocked": "{{count}} ожидают выполнения зависимостей",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "Выполнить","goalTask.stage.planning": "Планировать","goalTask.stage.verifying": "Принять",- "goalTask.status.achieved": "Достигнуто","goalTask.status.canceled": "Отменено","goalTask.status.draft": "Не начато","goalTask.status.error": "Требует внимания",diff --git a/locales/tr-TR/chat.json b/locales/tr-TR/chat.jsonindex 76a7d74c543..99e61c1848f 100644--- a/locales/tr-TR/chat.json+++ b/locales/tr-TR/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "Yalnızca hedefin yaratıcısı veya bir Çalışma Alanı yöneticisi ajanlarını değiştirebilir","goalDetail.agentRun": "Ajans çalışması","goalDetail.closeConfirm.achieved.content": "Devam eden çalıştırmalar durdurulacak ve yeni görevler başlatılmayacak. Bu hedefi bu menüden yeniden açabilirsiniz.",- "goalDetail.closeConfirm.achieved.ok": "Tamamlandı olarak işaretle",- "goalDetail.closeConfirm.achieved.title": "Bu hedefi tamamlandı olarak işaretlemek istiyor musunuz?","goalDetail.closeConfirm.canceled.content": "Devam eden çalıştırmalar durdurulacak ve yeni görevler başlatılmayacak. Bu hedefi bu menüden yeniden açabilirsiniz.","goalDetail.closeConfirm.canceled.ok": "Hedefi iptal et","goalDetail.closeConfirm.canceled.title": "Bu hedefi iptal etmek istiyor musunuz?",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "Sonucu ve standardı belirleyin","goalEmpty.step2.desc": "Her tur, tam bir ajan çalışmasıdır; çıktısı, zamanı ve maliyeti bu hedefe bağlıdır.","goalEmpty.step2.title": "Ajan kendi başına bir tur çalıştırır",- "goalEmpty.step3.desc": "Her kontrol tek tek değerlendirilir. Hepsi geçtiğinde hedefe ulaşılmış olur; sizin kararınızı gerektiren bir şey varsa beklemede durur.","goalEmpty.step3.title": "Her turda kabul kontrolü yapılır","goalEmpty.title": "Sınırsız hedeflere ulaşın","goalExperiment.acceptance": "Doğrulamayı görüntüle",@@ -723,7 +720,6 @@"goalList.noTasks": "Henüz görev yok","goalList.retry": "Tekrar dene","goalList.roundProgress": "Tur {{current}}/{{total}}",- "goalList.status.achieved": "Başarıldı","goalList.status.canceled": "İptal edildi","goalList.status.draft": "Başlamadı","goalList.status.error": "Dikkat gerekiyor",@@ -863,7 +859,6 @@"goalProcess.findings.from": "“{{title}}” kaynağından","goalProcess.findings.title": "Bulgular","goalProcess.frontier.achievedDescription": "Bulgular aşağıdaki haritada.",- "goalProcess.frontier.achievedTitle": "İlerlenecek bir şey kalmadı — bu hedefe ulaşıldı","goalProcess.frontier.add": "Görev ekle","goalProcess.frontier.advanceable": "{{count}} ilerleyebilir","goalProcess.frontier.blocked": "{{count}} daha bağımlılıkları bekliyor",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "Yürüt","goalTask.stage.planning": "Planla","goalTask.stage.verifying": "Kabul et",- "goalTask.status.achieved": "Başarıldı","goalTask.status.canceled": "İptal edildi","goalTask.status.draft": "Başlamadı","goalTask.status.error": "Dikkat gerekiyor",diff --git a/locales/vi-VN/chat.json b/locales/vi-VN/chat.jsonindex f1455fea817..c2ba71fbe99 100644--- a/locales/vi-VN/chat.json+++ b/locales/vi-VN/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "Chỉ người tạo mục tiêu hoặc quản trị viên không gian làm việc mới có thể thay đổi các tác nhân của nó","goalDetail.agentRun": "Lần chạy của tác nhân","goalDetail.closeConfirm.achieved.content": "Các chạy vẫn đang tiến hành sẽ bị dừng và không có nhiệm vụ mới nào được bắt đầu. Bạn có thể mở lại mục tiêu từ menu này.",- "goalDetail.closeConfirm.achieved.ok": "Đánh dấu đã hoàn thành",- "goalDetail.closeConfirm.achieved.title": "Đánh dấu mục tiêu này là đã hoàn thành?","goalDetail.closeConfirm.canceled.content": "Các chạy vẫn đang tiến hành sẽ bị dừng và không có nhiệm vụ mới nào được bắt đầu. Bạn có thể mở lại mục tiêu từ menu này.","goalDetail.closeConfirm.canceled.ok": "Hủy mục tiêu","goalDetail.closeConfirm.canceled.title": "Hủy mục tiêu này?",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "Đặt kết quả và tiêu chuẩn","goalEmpty.step2.desc": "Mỗi vòng là một lần chạy đầy đủ của tác nhân; đầu ra, thời gian và chi phí của nó đều phụ thuộc vào mục tiêu này.","goalEmpty.step2.title": "Tác nhân tự chạy một vòng",- "goalEmpty.step3.desc": "Mỗi kiểm tra được đánh giá từng cái một. Tất cả đều đạt nghĩa là đã hoàn thành; bất kỳ điều gì cần bạn quyết định sẽ dừng lại ở trạng thái chờ chấp nhận.","goalEmpty.step3.title": "Chấp nhận chạy mỗi vòng","goalEmpty.title": "Theo đuổi mục tiêu không giới hạn","goalExperiment.acceptance": "Xem xác minh",@@ -723,7 +720,6 @@"goalList.noTasks": "Chưa có nhiệm vụ nào","goalList.retry": "Thử lại","goalList.roundProgress": "Vòng {{current}}/{{total}}",- "goalList.status.achieved": "Đã đạt được","goalList.status.canceled": "Đã hủy","goalList.status.draft": "Chưa bắt đầu","goalList.status.error": "Cần chú ý",@@ -863,7 +859,6 @@"goalProcess.findings.from": "Từ “{{title}}”","goalProcess.findings.title": "Phát hiện","goalProcess.frontier.achievedDescription": "Các phát hiện nằm trong bản đồ bên dưới.",- "goalProcess.frontier.achievedTitle": "Không còn gì để tiến hành — mục tiêu này đã đạt được","goalProcess.frontier.add": "Thêm nhiệm vụ","goalProcess.frontier.advanceable": "{{count}} có thể tiến hành","goalProcess.frontier.blocked": "{{count}} đang chờ phụ thuộc",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "Thực hiện","goalTask.stage.planning": "Lập kế hoạch","goalTask.stage.verifying": "Chấp nhận",- "goalTask.status.achieved": "Đã đạt được","goalTask.status.canceled": "Đã hủy","goalTask.status.draft": "Chưa bắt đầu","goalTask.status.error": "Cần chú ý",diff --git a/locales/zh-CN/chat.json b/locales/zh-CN/chat.jsonindex 4a835797dfc..ccd50bd9275 100644--- a/locales/zh-CN/chat.json+++ b/locales/zh-CN/chat.json@@ -627,8 +627,8 @@"goalDetail.agentManagedByOwner": "只有目标创建者或工作区管理员可以修改负责的 Agent","goalDetail.agentRun": "Agent 运行","goalDetail.closeConfirm.achieved.content": "仍在运行的任务会被中止,也不会再开始新的任务。之后可以在这个菜单里重新打开目标。",- "goalDetail.closeConfirm.achieved.ok": "标记为已达成",- "goalDetail.closeConfirm.achieved.title": "将这个目标标记为已达成?",+ "goalDetail.closeConfirm.achieved.ok": "标记为已完成",+ "goalDetail.closeConfirm.achieved.title": "将这个目标标记为已完成?","goalDetail.closeConfirm.canceled.content": "仍在运行的任务会被中止,也不会再开始新的任务。之后可以在这个菜单里重新打开目标。","goalDetail.closeConfirm.canceled.ok": "取消目标","goalDetail.closeConfirm.canceled.title": "取消这个目标?",@@ -697,7 +697,7 @@"goalEmpty.step1.title": "定下结果与验收标准","goalEmpty.step2.desc": "每一轮是一次完整的 Agent 运行,产出、耗时和花费都挂在这个目标下。","goalEmpty.step2.title": "Agent 自主跑一轮",- "goalEmpty.step3.desc": "逐条判定验收检查项。全部通过即「已达成」;需要你拍板的会停下来问你。",+ "goalEmpty.step3.desc": "逐条判定验收检查项。全部通过即「已完成」;需要你拍板的会停下来问你。","goalEmpty.step3.title": "每轮自动验收","goalEmpty.title": "追逐目标,永无止境","goalExperiment.acceptance": "查看验收",@@ -740,7 +740,7 @@"goalList.acceptanceProgress": "已通过 {{passed}}/{{total}}","goalList.agentRuns": "{{count}} 次运行","goalList.archive": "归档",- "goalList.archiveBlocked": "签收或取消目标后才能归档",+ "goalList.archiveBlocked": "目标完成或取消后才能归档","goalList.archiveDenied": "只有目标创建者或工作区所有者可以归档","goalList.archiveFailed": "归档目标失败","goalList.archiveSuccess": "目标已归档",@@ -758,7 +758,7 @@"goalList.noTasks": "还没有任务","goalList.retry": "重试","goalList.roundProgress": "第 {{current}}/{{total}} 轮",- "goalList.status.achieved": "已达成",+ "goalList.status.achieved": "已完成","goalList.status.canceled": "已取消","goalList.status.draft": "未启动","goalList.status.error": "需要处理",@@ -902,7 +902,7 @@"goalProcess.findings.from": "来自「{{title}}」","goalProcess.findings.title": "结论","goalProcess.frontier.achievedDescription": "结论都在下面的探索图里。",- "goalProcess.frontier.achievedTitle": "没有需要推进的了,目标已达成",+ "goalProcess.frontier.achievedTitle": "没有需要推进的了,目标已完成","goalProcess.frontier.add": "添加任务","goalProcess.frontier.advanceable": "{{count}} 项能推进","goalProcess.frontier.blocked": "还有 {{count}} 项在等依赖",@@ -1270,7 +1270,7 @@"goalTask.stage.executing": "执行","goalTask.stage.planning": "规划","goalTask.stage.verifying": "验收",- "goalTask.status.achieved": "已达成",+ "goalTask.status.achieved": "已完成","goalTask.status.canceled": "已取消","goalTask.status.draft": "未启动","goalTask.status.error": "需要处理",diff --git a/locales/zh-TW/chat.json b/locales/zh-TW/chat.jsonindex a7c522f05cd..56378ec405d 100644--- a/locales/zh-TW/chat.json+++ b/locales/zh-TW/chat.json@@ -602,8 +602,6 @@"goalDetail.agentManagedByOwner": "只有目標的創建者或工作區管理員可以更改其代理","goalDetail.agentRun": "代理執行","goalDetail.closeConfirm.achieved.content": "仍在進行中的運行將被停止,且不會啟動新任務。您可以從此菜單重新打開目標。",- "goalDetail.closeConfirm.achieved.ok": "標記為已完成",- "goalDetail.closeConfirm.achieved.title": "將此目標標記為已完成?","goalDetail.closeConfirm.canceled.content": "仍在進行中的運行將被停止,且不會啟動新任務。您可以從此菜單重新打開目標。","goalDetail.closeConfirm.canceled.ok": "取消目標","goalDetail.closeConfirm.canceled.title": "取消此目標?",@@ -668,7 +666,6 @@"goalEmpty.step1.title": "設置結果和標準","goalEmpty.step2.desc": "每輪是一次完整的代理運行;其輸出、時間和成本都與此目標相關。","goalEmpty.step2.title": "代理自行運行一輪",- "goalEmpty.step3.desc": "每次檢查逐一評估。全部通過即為完成;任何需要您決定的將停留在待接受狀態。","goalEmpty.step3.title": "每輪進行驗收","goalEmpty.title": "無限制追求目標","goalExperiment.acceptance": "查看驗證",@@ -723,7 +720,6 @@"goalList.noTasks": "尚無任務","goalList.retry": "重試","goalList.roundProgress": "回合 {{current}}/{{total}}",- "goalList.status.achieved": "已達成","goalList.status.canceled": "已取消","goalList.status.draft": "尚未開始","goalList.status.error": "需要注意",@@ -863,7 +859,6 @@"goalProcess.findings.from": "來自「{{title}}」","goalProcess.findings.title": "發現","goalProcess.frontier.achievedDescription": "發現已顯示在下方地圖中。",- "goalProcess.frontier.achievedTitle": "無需再推進 — 此目標已完成","goalProcess.frontier.add": "新增任務","goalProcess.frontier.advanceable": "{{count}} 項可推進","goalProcess.frontier.blocked": "{{count}} 項因依賴關係而等待",@@ -1231,7 +1226,6 @@"goalTask.stage.executing": "執行","goalTask.stage.planning": "計劃","goalTask.stage.verifying": "接受",- "goalTask.status.achieved": "已達成","goalTask.status.canceled": "已取消","goalTask.status.draft": "尚未開始","goalTask.status.error": "需要注意",diff --git a/packages/database/src/models/__tests__/goalArchive.test.ts b/packages/database/src/models/__tests__/goalArchive.test.tsindex 6cc9bf52359..7f99100c5bc 100644--- a/packages/database/src/models/__tests__/goalArchive.test.ts+++ b/packages/database/src/models/__tests__/goalArchive.test.ts@@ -63,19 +63,26 @@ describe('GoalArchiveModel', () => {expect(archived?.status).toBe('canceled');});- it('archives an achieved goal once its owner signed it off', async () => {+ it('archives an achieved goal its owner signed off', async () => {const goal = await createListedGoal('Delivered', 'achieved');await signOff(goal.id, 'accepted');expect((await archiveModel.archive(goal.id))?.archivedAt).toBeInstanceOf(Date);});- it('refuses an achieved goal whose sign-off is still open', async () => {+ // The owner has no way to sign off a goal marked completed by hand, so+ // archiving cannot wait on a sign-off.+ it('archives an achieved goal with no Goal-level acceptance to sign off', async () => {+ const goal = await createListedGoal('Marked completed', 'achieved');++ expect((await archiveModel.archive(goal.id))?.archivedAt).toBeInstanceOf(Date);+ });++ it('archives an achieved goal whose sign-off is still open', async () => {const goal = await createListedGoal('Awaiting sign-off', 'achieved');await signOff(goal.id, 'delivered');- expect(await archiveModel.archive(goal.id)).toBeNull();- expect((await goalModel.findById(goal.id))?.archivedAt).toBeNull();+ expect((await archiveModel.archive(goal.id))?.archivedAt).toBeInstanceOf(Date);});it.each(['draft', 'planning', 'running', 'verifying', 'review', 'paused', 'failed'])(diff --git a/packages/database/src/models/goal.ts b/packages/database/src/models/goal.tsindex b5743bc87fa..4ce09b12d9c 100644--- a/packages/database/src/models/goal.ts+++ b/packages/database/src/models/goal.ts@@ -479,7 +479,7 @@ export class GoalModel {// Every status write — resume, pause, close, a sign-off sent back, the// coordinator — lands here, so this is where an archived goal is kept put:// its status is frozen until it is restored, which keeps the archive's own- // rule (signed off or canceled) true while it is hidden. The check is part+ // rule (completed or canceled) true while it is hidden. The check is part// of the UPDATE, which serializes with the guarded archive write.const row = await this.update(id,diff --git a/packages/database/src/models/goalArchive.ts b/packages/database/src/models/goalArchive.tsindex 1704f0abe85..c36632fde20 100644--- a/packages/database/src/models/goalArchive.ts+++ b/packages/database/src/models/goalArchive.ts@@ -1,5 +1,5 @@import { GOAL_ACCEPTANCE_TASK_TITLE } from '@lobechat/const/goal';-import { and, eq, or, sql } from 'drizzle-orm';+import { and, eq, inArray, sql } from 'drizzle-orm';import { goals } from '../schemas/goal';import { goalNodes } from '../schemas/goalGraph';@@ -24,7 +24,7 @@ export class GoalArchivedError extends Error {/*** Whether the owner signed the goal off: its Goal-level acceptance Task has an* accepted acceptance. Correlated on `goals.id`, so it reads inside any query- * over `goals`.+ * over `goals`. Shown on list rows; archiving does not depend on it.*/export const goalSignedOffSql = sql<boolean>`EXISTS (SELECT 1 FROM ${goalNodes}@@ -38,7 +38,7 @@ export const goalSignedOffSql = sql<boolean>`EXISTS (/*** Archive writes for `goals`, kept out of `GoalModel` the way `TaskArchiveModel`- * is: the "signed off or canceled" check is part of the UPDATE that sets+ * is: the "completed or canceled" check is part of the UPDATE that sets* `archived_at`, so a resume or start racing it either lands first (and the* archive matches no row) or sees the archive under the row lock and refuses.*/@@ -57,7 +57,7 @@ export class GoalArchiveModel {buildWorkspaceWhere({ userId: this.userId, workspaceId: this.workspaceId }, goals);/**- * Archive a goal that is signed off or canceled (`isGoalArchiveBlocked`).+ * Archive a goal that is completed (`achieved`) or canceled (`isGoalArchiveBlocked`).* Returns null when the goal is missing or not done with yet; an already* archived goal keeps its original `archived_at`. Only the `goals` row:* `GoalArchiveRepository` archives its Tasks with it.@@ -67,11 +67,7 @@ export class GoalArchiveModel {.update(goals).set({ archivedAt: sql`COALESCE(${goals.archivedAt}, now())`, updatedAt: new Date() }).where(- and(- eq(goals.id, id),- this.ownership(),- or(eq(goals.status, 'canceled'), and(eq(goals.status, 'achieved'), goalSignedOffSql)),- ),+ and(eq(goals.id, id), this.ownership(), inArray(goals.status, ['achieved', 'canceled'])),).returning();return goal ?? null;diff --git a/packages/database/src/repositories/goalArchive/index.ts b/packages/database/src/repositories/goalArchive/index.tsindex f2f6605c0ca..3dc6ffcfd78 100644--- a/packages/database/src/repositories/goalArchive/index.ts+++ b/packages/database/src/repositories/goalArchive/index.ts@@ -36,7 +36,7 @@ export class GoalArchiveRepository {sql`(SELECT ${goals.archivedAt} FROM ${goals} WHERE ${goals.id} = ${goalId})`;/**- * Archive a signed-off or canceled goal and its Tasks. The goal's UPDATE+ * Archive a completed or canceled goal and its Tasks. The goal's UPDATE* takes its row lock first. The Tasks go through the guarded task archive,* so one still running or with a live schedule / heartbeat stays where its* owner can see it, and they carry the goal's own archive time, which is howdiff --git a/packages/locales/src/default/chat.ts b/packages/locales/src/default/chat.tsindex a0f42690f89..0022ebe4f03 100644--- a/packages/locales/src/default/chat.ts+++ b/packages/locales/src/default/chat.ts@@ -2407,13 +2407,13 @@ export default {'Each round is one full agent run; its output, time and cost all hang off this goal.','goalEmpty.step2.title': 'The agent runs a round on its own','goalEmpty.step3.desc':- 'Every check is judged one by one. All passed means achieved; anything needing your call stops and asks you.',+ 'Every check is judged one by one. All passed means completed; anything needing your call stops and asks you.','goalEmpty.step3.title': 'Acceptance runs every round','goalEmpty.title': 'Chase goals without limits','goalList.acceptanceProgress': '{{passed}}/{{total}} passed','goalList.agentRuns': '{{count}} runs','goalList.archive': 'Archive',- 'goalList.archiveBlocked': 'Sign off or cancel the goal before archiving it',+ 'goalList.archiveBlocked': 'Only a completed or canceled goal can be archived','goalList.archiveDenied': 'Only the goal creator or a workspace owner can archive it','goalList.archiveFailed': 'Failed to archive goal','goalList.archiveSuccess': 'Goal archived',@@ -2434,7 +2434,7 @@ export default {'The service is temporarily unavailable. Your goals are not lost.','goalList.retry': 'Retry','goalList.roundProgress': 'Round {{current}}/{{total}}',- 'goalList.status.achieved': 'Achieved',+ 'goalList.status.achieved': 'Completed','goalList.status.canceled': 'Canceled','goalList.status.draft': 'Not started','goalList.status.error': 'Needs attention',@@ -2448,7 +2448,7 @@ export default {'goalTask.round': 'Round {{current}}','goalTask.roundWithBudget': 'Round {{current}}/{{total}}','goalTask.tasksDone': '{{passed}}/{{total}} tasks done',- 'goalTask.status.achieved': 'Achieved',+ 'goalTask.status.achieved': 'Completed','goalTask.status.canceled': 'Canceled','goalTask.status.draft': 'Not started','goalTask.status.error': 'Needs attention',@@ -2511,8 +2511,8 @@ export default {'goalDetail.mainAgentUnassigned': 'Choose main agent','goalDetail.closeConfirm.achieved.content':'Runs still in progress will be stopped and no new tasks will start. You can reopen the goal from this menu.',- 'goalDetail.closeConfirm.achieved.ok': 'Mark achieved',- 'goalDetail.closeConfirm.achieved.title': 'Mark this goal as achieved?',+ 'goalDetail.closeConfirm.achieved.ok': 'Mark completed',+ 'goalDetail.closeConfirm.achieved.title': 'Mark this goal as completed?','goalDetail.closeConfirm.canceled.content':'Runs still in progress will be stopped and no new tasks will start. You can reopen the goal from this menu.','goalDetail.closeConfirm.canceled.ok': 'Cancel goal',@@ -2624,7 +2624,7 @@ export default {'goalProcess.frontier.emptyTitle': 'Nothing to advance right now','goalProcess.frontier.emptyDescription':'Every task is either waiting on a dependency or already finished.',- 'goalProcess.frontier.achievedTitle': 'Nothing left to advance — this goal is achieved',+ 'goalProcess.frontier.achievedTitle': 'Nothing left to advance — this goal is completed','goalProcess.frontier.achievedDescription': 'The findings are in the map below.','goalProcess.addTask.failed': 'Failed to add the task — please try again','goalProcess.addTask.titleLabel': 'Task title',diff --git a/packages/types/src/goalArchive.test.ts b/packages/types/src/goalArchive.test.tsindex eb2d20dd82c..6b839ea8922 100644--- a/packages/types/src/goalArchive.test.ts+++ b/packages/types/src/goalArchive.test.ts@@ -3,16 +3,11 @@ import { describe, expect, it } from 'vitest';import { isGoalArchiveBlocked } from './goalArchive';describe('isGoalArchiveBlocked', () => {- it('lets a signed-off or canceled goal be archived', () => {- expect(isGoalArchiveBlocked({ signedOff: true, status: 'achieved' })).toBe(false);+ it('lets a completed or canceled goal be archived', () => {+ expect(isGoalArchiveBlocked({ status: 'achieved' })).toBe(false);expect(isGoalArchiveBlocked({ status: 'canceled' })).toBe(false);});- it('blocks an achieved goal still waiting on its sign-off', () => {- expect(isGoalArchiveBlocked({ signedOff: false, status: 'achieved' })).toBe(true);- expect(isGoalArchiveBlocked({ status: 'achieved' })).toBe(true);- });-it('blocks a failed, draft or open goal', () => {for (const status of ['failed',@@ -23,6 +18,6 @@ describe('isGoalArchiveBlocked', () => {'review','paused',])- expect(isGoalArchiveBlocked({ signedOff: true, status })).toBe(true);+ expect(isGoalArchiveBlocked({ status })).toBe(true);});});diff --git a/packages/types/src/goalArchive.ts b/packages/types/src/goalArchive.tsindex e6b8b5f5d44..8991f52df38 100644--- a/packages/types/src/goalArchive.ts+++ b/packages/types/src/goalArchive.ts@@ -2,19 +2,20 @@ import type { GoalStatus } from './goal';/** What decides whether a goal may be archived. */export interface GoalArchiveGuardInput {- /** Its Goal-level acceptance was accepted by the owner. */- signedOff?: boolean;status: GoalStatus | string;}/**- * A goal may be archived once it is truly done with: achieved and signed off- * by its owner, or canceled. Anything else still has a decision left — an- * achieved goal waits on its sign-off (and the owner may still send it back),- * a failed one on a retry or a continuation, and an open one can move on its- * own — so hiding it from every list would leave that decision out of sight.+ * A goal may be archived once it has ended as completed (`achieved`) or+ * canceled. A failed goal still waits on a retry or a continuation, and an+ * open one can move on its own, so hiding it from every list would leave that+ * decision out of sight.+ *+ * Archiving does not wait on the owner's sign-off: an achieved goal may have no+ * Goal-level acceptance to sign off at all (marked completed by hand, say), and+ * gating on it left such a goal impossible to put away.** `GoalArchiveModel` applies the same rule inside its UPDATE.*/-export const isGoalArchiveBlocked = ({ signedOff, status }: GoalArchiveGuardInput): boolean =>- !(status === 'canceled' || (status === 'achieved' && !!signedOff));+export const isGoalArchiveBlocked = ({ status }: GoalArchiveGuardInput): boolean =>+ !(status === 'achieved' || status === 'canceled');diff --git a/src/features/AgentGoals/GoalCardItem.tsx b/src/features/AgentGoals/GoalCardItem.tsxindex 90d6b987084..e06ea80396e 100644--- a/src/features/AgentGoals/GoalCardItem.tsx+++ b/src/features/AgentGoals/GoalCardItem.tsx@@ -51,7 +51,6 @@ export const GoalCardItem = memo<GoalItemProps>(({ globalScopeId, goal: item, prgoal,projectId,routeAgentId: aid,- signedOff: item.signedOff,});const handleKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {if (event.key !== 'Enter' && event.key !== ' ') return;diff --git a/src/features/AgentGoals/GoalDetailActions.tsx b/src/features/AgentGoals/GoalDetailActions.tsxindex 88be8ec96f5..2f927bdc36a 100644--- a/src/features/AgentGoals/GoalDetailActions.tsx+++ b/src/features/AgentGoals/GoalDetailActions.tsx@@ -5,7 +5,6 @@ import { useTranslation } from 'react-i18next';import { goalSelectors, useGoalStore } from '@/store/goal';-import { isGoalSnapshotSignedOff } from './goalSignedOff';import { useGoalMenuItems } from './useGoalMenuItems';interface GoalDetailActionsProps {@@ -24,9 +23,6 @@ const GoalDetailActions = memo<GoalDetailActionsProps>(const status = useGoalStore((s) => goalSelectors.goalGraph(goalId)(s)?.goal.status);const creatorUserId = useGoalStore((s) => goalSelectors.goalGraph(goalId)(s)?.goal.userId);const title = useGoalStore((s) => goalSelectors.goalGraph(goalId)(s)?.goal.title);- const signedOff = useGoalStore((s) =>- isGoalSnapshotSignedOff(goalSelectors.goalGraph(goalId)(s)),- );const items = useGoalMenuItems({agentId,archivedAt,@@ -34,7 +30,6 @@ const GoalDetailActions = memo<GoalDetailActionsProps>(goalId,onRename,projectId,- signedOff,status,title,});diff --git a/src/features/AgentGoals/GoalListItem.tsx b/src/features/AgentGoals/GoalListItem.tsxindex 667a4e620bb..539a0428f8a 100644--- a/src/features/AgentGoals/GoalListItem.tsx+++ b/src/features/AgentGoals/GoalListItem.tsx@@ -65,7 +65,6 @@ export const GoalListItem = memo<GoalItemProps>(({ globalScopeId, goal: item, prgoal,projectId,routeAgentId: aid,- signedOff: item.signedOff,});const handleKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {if (event.key !== 'Enter' && event.key !== ' ') return;diff --git a/src/features/AgentGoals/goalSignedOff.test.ts b/src/features/AgentGoals/goalSignedOff.test.tsdeleted file mode 100644index bf7dd9419ad..00000000000--- a/src/features/AgentGoals/goalSignedOff.test.ts+++ /dev/null@@ -1,27 +0,0 @@-import { GOAL_ACCEPTANCE_TASK_TITLE } from '@lobechat/const/goal';-import { describe, expect, it } from 'vitest';--import { isGoalSnapshotSignedOff } from './goalSignedOff';--const snapshot = (status: string, acceptance?: string) =>- ({- acceptances: acceptance ? { node_acc: { id: 'acc_1', status: acceptance } } : {},- goal: { status },- nodes: [- { id: 'node_work', kind: 'task', title: 'Draft the checklist' },- { id: 'node_acc', kind: 'task', title: GOAL_ACCEPTANCE_TASK_TITLE },- ],- }) as never;--describe('isGoalSnapshotSignedOff', () => {- it('is true once an achieved goal’s Goal-level acceptance is accepted', () => {- expect(isGoalSnapshotSignedOff(snapshot('achieved', 'accepted'))).toBe(true);- });-- it('is false while the sign-off is still open, or for a goal that is not achieved', () => {- expect(isGoalSnapshotSignedOff(snapshot('achieved', 'delivered'))).toBe(false);- expect(isGoalSnapshotSignedOff(snapshot('achieved'))).toBe(false);- expect(isGoalSnapshotSignedOff(snapshot('running', 'accepted'))).toBe(false);- expect(isGoalSnapshotSignedOff(undefined)).toBe(false);- });-});diff --git a/src/features/AgentGoals/goalSignedOff.ts b/src/features/AgentGoals/goalSignedOff.tsdeleted file mode 100644index fdee9ecabbb..00000000000--- a/src/features/AgentGoals/goalSignedOff.ts+++ /dev/null@@ -1,18 +0,0 @@-import { GOAL_ACCEPTANCE_TASK_TITLE } from '@lobechat/const/goal';-import type { GoalGraphSnapshot } from '@lobechat/types';--/**- * Whether the owner signed the goal off: it is achieved and its Goal-level- * acceptance was accepted. The detail page's counterpart of the list row's- * `signedOff`, read from the graph snapshot it already holds.- */-export const isGoalSnapshotSignedOff = (- snapshot: Pick<GoalGraphSnapshot, 'acceptances' | 'goal' | 'nodes'> | undefined,-): boolean =>- snapshot?.goal.status === 'achieved' &&- snapshot.nodes.some(- (node) =>- node.kind === 'task' &&- node.title === GOAL_ACCEPTANCE_TASK_TITLE &&- snapshot.acceptances?.[node.id]?.status === 'accepted',- );diff --git a/src/features/AgentGoals/useGoalMenuItems.test.ts b/src/features/AgentGoals/useGoalMenuItems.test.tsindex 0d09d2dbc42..a57b8084a14 100644--- a/src/features/AgentGoals/useGoalMenuItems.test.ts+++ b/src/features/AgentGoals/useGoalMenuItems.test.ts@@ -114,21 +114,18 @@ describe('useGoalItemMenu', () => {const archiveItem = (items: DropdownItem[]) =>items.find((item) => item && 'key' in item && item.key === 'archive') as any;- it('is disabled, with the reason, until the goal is signed off or canceled', () => {- const cases = [- ...['draft', 'planning', 'running', 'verifying', 'review', 'paused', 'failed'].map(- (status) => ({ signedOff: true, status }),- ),- // Achieved but the owner has not signed it off yet.- { signedOff: false, status: 'achieved' },- ];- for (const { signedOff, status } of cases) {+ it('is disabled, with the reason, until the goal is completed or canceled', () => {+ for (const status of [+ 'draft',+ 'planning',+ 'running',+ 'verifying',+ 'review',+ 'paused',+ 'failed',+ ]) {const { result } = renderHook(() =>- useGoalItemMenu({- agentId: 'agt_1',- goal: { ...goal, archivedAt: null, status },- signedOff,- }),+ useGoalItemMenu({ agentId: 'agt_1', goal: { ...goal, archivedAt: null, status } }),);expect(archiveItem(result.current)).toMatchObject({desc: 'goalList.archiveBlocked',@@ -138,6 +135,19 @@ describe('useGoalItemMenu', () => {}});+ // The list row and the detail header used to read the sign-off from two+ // places; neither gates archiving any more.+ it('is enabled for a completed goal, signed off or not', () => {+ const { result } = renderHook(() =>+ useGoalItemMenu({+ agentId: 'agt_1',+ goal: { ...goal, archivedAt: null, status: 'achieved' },+ }),+ );++ expect(archiveItem(result.current)).toMatchObject({ desc: undefined, disabled: false });+ });+it('is enabled for a canceled goal', () => {const { result } = renderHook(() =>useGoalItemMenu({@@ -149,14 +159,13 @@ describe('useGoalItemMenu', () => {expect(archiveItem(result.current)).toMatchObject({ disabled: false });});- it('archives a signed-off goal and refreshes the list it was opened from', async () => {+ it('archives a completed goal and refreshes the list it was opened from', async () => {mocks.store.archiveGoal.mockResolvedValue(undefined);const { result } = renderHook(() =>useGoalItemMenu({agentId: 'agt_1',goal: { ...goal, archivedAt: null, status: 'achieved' },routeAgentId: 'agt_1',- signedOff: true,}),);diff --git a/src/features/AgentGoals/useGoalMenuItems.tsx b/src/features/AgentGoals/useGoalMenuItems.tsxindex 393f6109b69..dfd0a2f556e 100644--- a/src/features/AgentGoals/useGoalMenuItems.tsx+++ b/src/features/AgentGoals/useGoalMenuItems.tsx@@ -43,8 +43,6 @@ interface UseGoalMenuItemsOptions {/** Runs after a status change lands, for hosts that render the status from another read. */onStatusChanged?: () => void;projectId?: string | null;- /** Achieved and accepted by its owner — with `canceled`, what archiving needs. */- signedOff?: boolean;status?: string;/** The current title, prefilled by the rename dialog. */title?: string;@@ -60,7 +58,6 @@ export const useGoalMenuItems = ({onRename,onStatusChanged,projectId,- signedOff,status,title,}: UseGoalMenuItemsOptions): DropdownItem[] => {@@ -83,9 +80,9 @@ export const useGoalMenuItems = ({const current = toManualStatus(status);const isArchived = !!archivedAt;- // Archived goals leave every list, so only a goal that is done with — signed- // off, or canceled — may be put away. Restoring is always fine.- const archiveBlocked = !isArchived && (!status || isGoalArchiveBlocked({ signedOff, status }));+ // Archived goals leave every list, so only a goal that is done with —+ // completed or canceled — may be put away. Restoring is always fine.+ const archiveBlocked = !isArchived && (!status || isGoalArchiveBlocked({ status }));const toggleArchive = useCallback(async () => {try {@@ -249,8 +246,6 @@ interface UseGoalItemMenuOptions {projectId?: string;/** The route's agent, which keys the list scope on an agent's page. */routeAgentId?: string;- /** The list row's sign-off state (`GoalListItem.signedOff`). */- signedOff?: boolean;}/** The action menu of a goal-list row (list or card view). */@@ -260,7 +255,6 @@ export const useGoalItemMenu = ({goal,projectId,routeAgentId,- signedOff,}: UseGoalItemMenuOptions): DropdownItem[] => {// The row reads its status from the list, not the goal graph the store// actions refresh, so a status change refetches the list it was rendered in.@@ -280,7 +274,6 @@ export const useGoalItemMenu = ({onDeleted: noop,onStatusChanged: handleStatusChanged,projectId,- signedOff,status: goal.status,title: goal.title,});diff --git a/src/services/goal.ts b/src/services/goal.tsindex 88ccaebefa4..a8e1714b168 100644--- a/src/services/goal.ts+++ b/src/services/goal.ts@@ -189,7 +189,7 @@ class GoalService {close = async (id: string, status: 'achieved' | 'canceled') =>lambdaClient.goal.close.mutate({ id, status });- /** Archive (or restore) a signed-off or canceled goal; archived goals leave every list. */+ /** Archive (or restore) a completed or canceled goal; archived goals leave every list. */archive = async (id: string, archived: boolean) =>lambdaClient.goal.archive.mutate({ archived, id });