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): clean up chat service and store imports
Steven Enamakel9d2ceb17e986
diff --git a/app/src/services/chatService.ts b/app/src/services/chatService.tsindex d3cadceae1..deab80b7b2 100644--- a/app/src/services/chatService.ts+++ b/app/src/services/chatService.ts@@ -50,9 +50,9 @@ import {ExternalTransferPendingEvent,externalTransferProvider,ProactiveMessageEvent,- QueueMode,QueueItemEvent,QueueItemPayload,+ QueueMode,WireEvent,} from './chatWire';import { callCoreRpc } from './coreRpcClient';@@ -1010,11 +1010,7 @@ function isStartedChatAck(value: unknown): value is StartedChatAck {}function unwrapChatAck(value: unknown): unknown {- if (- isRecord(value) &&- Object.hasOwn(value, 'result') &&- Array.isArray(value.logs)- ) {+ if (isRecord(value) && Object.hasOwn(value, 'result') && Array.isArray(value.logs)) {return value.result;}return value;diff --git a/app/src/store/chatRuntimeSlice.ts b/app/src/store/chatRuntimeSlice.tsindex a076f75a65..924eb22a14 100644--- a/app/src/store/chatRuntimeSlice.ts+++ b/app/src/store/chatRuntimeSlice.ts@@ -4,8 +4,8 @@ import debug from 'debug';import { mapDisplayItems } from '../features/conversations/derived/mapDisplayItems';import { threadApi } from '../services/api/threadApi';import type { CostSource } from '../services/chatService';-import type { ArtifactKind } from '../types/threadWire.generated';import type { DerivedTranscriptPage } from '../types/derivedTranscript';+import type { ArtifactKind } from '../types/threadWire.generated';import type {AgentRun,PersistedSubagentActivity,diff --git a/app/src/store/runModeSlice.ts b/app/src/store/runModeSlice.tsindex 3cdd4b5bbe..e48aa110f1 100644--- a/app/src/store/runModeSlice.ts+++ b/app/src/store/runModeSlice.ts@@ -5,6 +5,7 @@* core's default before the first RPC/event lands).*/import { createSlice, type PayloadAction } from '@reduxjs/toolkit';+import type { RunMode } from '../types/threadWire.generated';export type { RunMode };diff --git a/app/src/store/threadGoalSlice.ts b/app/src/store/threadGoalSlice.tsindex a242121249..93108a4c04 100644--- a/app/src/store/threadGoalSlice.ts+++ b/app/src/store/threadGoalSlice.ts@@ -5,6 +5,7 @@* the old tool-result-scraping `selectThreadGoal` in `harnessState.ts`.*/import { createSlice, type PayloadAction } from '@reduxjs/toolkit';+import type { ThreadGoal as ThreadGoalWire } from '../types/threadWire.generated';export type ThreadGoalStatus = ThreadGoalWire['status'];