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
refactor(chat): source thread goal and artifact types from thread wire
Steven Enamakele563c9e964e7
diff --git a/app/src/features/conversations/aui/taskCardHistory.test.ts b/app/src/features/conversations/aui/taskCardHistory.test.tsindex 68eabb928b..36600aa011 100644--- a/app/src/features/conversations/aui/taskCardHistory.test.ts+++ b/app/src/features/conversations/aui/taskCardHistory.test.ts@@ -19,11 +19,16 @@ describe('turn task attachment', () => {{...task('turn'),goal: {- goal_id: 'g',+ threadId: 'turn',+ goalId: 'g',objective: 'Plan',status: 'paused',- tokens_used: 0,- time_used_seconds: 0,+ tokensUsed: 0,+ timeUsedSeconds: 0,+ tokenBudget: null,+ createdAtMs: 1,+ updatedAtMs: 1,+ continuationSuppressed: false,},},truediff --git a/app/src/services/chatWire.ts b/app/src/services/chatWire.tsindex 7eaf226e7e..a27826c59e 100644--- a/app/src/services/chatWire.ts+++ b/app/src/services/chatWire.ts@@ -19,18 +19,9 @@*/import type { ChatErrorCopyParams } from '../lib/chatErrorCopy';import type {- ArtifactKind as ArtifactKindWire,- ArtifactFailedPayload,- ArtifactPendingPayload,- ArtifactReadyPayload,ChatSuggestion,ContentPart,OutboundContentPart,- QueueMode as QueueModeWire,- RunMode as RunModeWire,- ThreadGoal as ThreadGoalWire,- TodoItem as TodoItemWire,- TurnCitation as TurnCitationWire,WebChannelEvent,WebGuardrailPayload,WebGuardrailReason,@@ -40,6 +31,17 @@ import type {WebTurnTimingPayload,WebTurnUsagePayload,} from './chatWire.generated';+import type {+ ArtifactFailedPayload,+ ArtifactKind as ArtifactKindWire,+ ArtifactPendingPayload,+ ArtifactReadyPayload,+ QueueMode as QueueModeWire,+ RunMode as RunModeWire,+ ThreadGoal as ThreadGoalWire,+ TodoItem as TodoItemWire,+ TurnCitation as TurnCitationWire,+} from '../types/threadWire.generated';export type { ContentPart, OutboundContentPart, WebChannelEvent };export type QueueMode = QueueModeWire;diff --git a/app/src/store/threadGoalSlice.test.ts b/app/src/store/threadGoalSlice.test.tsindex e13057d77e..99ac3f928a 100644--- a/app/src/store/threadGoalSlice.test.ts+++ b/app/src/store/threadGoalSlice.test.ts@@ -5,12 +5,16 @@ import reducer, { clearThreadGoal, setThreadGoal, type ThreadGoalState } from '.const initial: ThreadGoalState = { byThread: {} };const goal = {- goal_id: 'g1',+ threadId: 't1',+ goalId: 'g1',objective: 'Ship the feature',status: 'active' as const,- tokens_used: 100,- time_used_seconds: 30,- token_budget: 1000,+ tokensUsed: 100,+ timeUsedSeconds: 30,+ tokenBudget: 1000,+ createdAtMs: 1,+ updatedAtMs: 1,+ continuationSuppressed: false,};describe('threadGoalSlice', () => {@@ -35,9 +39,9 @@ describe('threadGoalSlice', () => {const withT1 = reducer(initial, setThreadGoal({ threadId: 't1', goal }));const withT2 = reducer(withT1,- setThreadGoal({ threadId: 't2', goal: { ...goal, goal_id: 'g2' } })+ setThreadGoal({ threadId: 't2', goal: { ...goal, threadId: 't2', goalId: 'g2' } }));- expect(withT2.byThread.t1?.goal_id).toBe('g1');- expect(withT2.byThread.t2?.goal_id).toBe('g2');+ expect(withT2.byThread.t1?.goalId).toBe('g1');+ expect(withT2.byThread.t2?.goalId).toBe('g2');});});