🤯 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): require confirmation for goal launch even in auto-run mode (#18111)
Arvin Xua789dd958a51
diff --git a/packages/builtin-tool-goal/src/manifest.test.ts b/packages/builtin-tool-goal/src/manifest.test.tsindex 172a35be613..f81420a4d1f 100644--- a/packages/builtin-tool-goal/src/manifest.test.ts+++ b/packages/builtin-tool-goal/src/manifest.test.ts@@ -7,7 +7,9 @@ describe('GoalManifest', () => {it('exposes only the canonical createGoal workflow', () => {expect(GoalManifest.identifier).toBe('lobe-goal');expect(GoalManifest.api.map(({ name }) => name)).toEqual([GoalApiName.createGoal]);- expect(GoalManifest.api[0].humanIntervention).toBe('required');+ // 'always' cannot be bypassed by the user's auto-run approval mode —+ // launching a goal must always pause for the user to review the acceptance plan+ expect(GoalManifest.api[0].humanIntervention).toBe('always');expect(GoalManifest.api[0].work).toBeUndefined();});});diff --git a/packages/builtin-tool-goal/src/manifest.ts b/packages/builtin-tool-goal/src/manifest.tsindex 4094e31470c..2949790d144 100644--- a/packages/builtin-tool-goal/src/manifest.ts+++ b/packages/builtin-tool-goal/src/manifest.ts@@ -10,7 +10,7 @@ export const GoalManifest: BuiltinToolManifest = {{description:'Create and immediately start a goal-driven task with an editable acceptance plan. Use this only when the user explicitly starts their request with /goal. The call pauses for confirmation; after approval it creates the underlying task, persists the acceptance criteria, enables bounded automatic repair, and runs the current agent in a separate task topic. Once it succeeds, do not execute or reproduce the work in the current conversation; the live result card is the progress and result entry point.',- humanIntervention: 'required',+ humanIntervention: 'always',name: GoalApiName.createGoal,parameters: {additionalProperties: false,