The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(conversations): include use_skill in goal tool detection
Steven Enamakel449cfda6b921
diff --git a/app/src/features/conversations/utils/harnessState.test.ts b/app/src/features/conversations/utils/harnessState.test.tsindex 3c8505aaf8..1ec10de999 100644--- a/app/src/features/conversations/utils/harnessState.test.ts+++ b/app/src/features/conversations/utils/harnessState.test.ts@@ -160,6 +160,18 @@ describe('selectThreadGoal', () => {expect(selectThreadGoal([set, failed, other])?.goalId).toBe('g1');});+ // `goal_set` / `goal_get` sit in the `goals` tool pack, so the model calls+ // them through `use_skill` and the row is named for the wrapper.+ it('reads a goal call made through the use_skill wrapper', () => {+ expect(selectThreadGoal([entry('use_skill', goalResult(active))])?.goalId).toBe('g1');+ });++ it('ignores an unrelated use_skill result', () => {+ const set = entry('goal_set', goalResult(active));+ const unrelated = entry('use_skill', { ok: true, goal: 'a bare string, not a goal' });+ expect(selectThreadGoal([set, unrelated])?.goalId).toBe('g1');+ });+it('treats a missing budget as unbounded', () => {const goal = selectThreadGoal([entry('goal_set', goalResult({ ...active, tokenBudget: undefined, tokensUsed: undefined })),diff --git a/app/src/features/conversations/utils/harnessState.ts b/app/src/features/conversations/utils/harnessState.tsindex 6daf7cf95a..6fcb6304ae 100644--- a/app/src/features/conversations/utils/harnessState.ts+++ b/app/src/features/conversations/utils/harnessState.ts@@ -43,7 +43,14 @@ export interface ThreadGoalView {}const TODO_TOOL = 'todo';-const GOAL_TOOLS = new Set(['goal_set', 'goal_get', 'goal_complete']);+/**+ * `goal_complete` is a direct tool; `goal_set` / `goal_get` live in the+ * `goals` tool pack, so the model reaches them through `use_skill` and the+ * timeline row is named for the wrapper, not the goal tool. Matching the+ * wrapper is safe because the payload check below is exact — a `use_skill`+ * result only counts when it carries a `goal` key of the right shape.+ */+const GOAL_TOOLS = new Set(['goal_set', 'goal_get', 'goal_complete', 'use_skill']);const TODO_STATUSES: ReadonlySet<string> = new Set(['pending', 'in_progress', 'completed']);const GOAL_STATUSES: ReadonlySet<string> = new Set(['active',