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
chore: reformat long lines and reorder imports across conversation components
Steven Enamakelcca9c72d6114
diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsxindex 1399dd5837..388ada4471 100644--- a/app/src/features/conversations/Conversations.tsx+++ b/app/src/features/conversations/Conversations.tsx@@ -12,8 +12,8 @@ import ChatFilesChip from '../../components/chat/ChatFilesChip';import WorkflowProposalCard from '../../components/chat/WorkflowProposalCard';import { ConfirmationModal } from '../../components/intelligence/ConfirmationModal';import { SidebarContent } from '../../components/layout/shell/SidebarSlot';-import { PlanReviewCardCore } from '../../features/conversations/aui/PlanReviewPart';import { ContextUsage } from '../../features/conversations/aui/ContextUsage';+import { PlanReviewCardCore } from '../../features/conversations/aui/PlanReviewPart';import { RunModeToggle } from '../../features/conversations/aui/RunModeToggle';import { toAuiTodoItems } from '../../features/conversations/aui/TodoListPart';import { useRunMode } from '../../features/conversations/aui/useRunMode';diff --git a/app/src/features/conversations/aui/SubagentActivityCard.test.tsx b/app/src/features/conversations/aui/SubagentActivityCard.test.tsxindex 403d6636a7..781b40d25c 100644--- a/app/src/features/conversations/aui/SubagentActivityCard.test.tsx+++ b/app/src/features/conversations/aui/SubagentActivityCard.test.tsx@@ -14,7 +14,10 @@ describe('SubagentActivityCard', () => {activity={{ taskId: 't', agentId: 'researcher', status: 'running', toolCalls: [] }}/>);- expect(screen.getByTestId('assistant-ui-subagent-call')).toHaveAttribute('data-status', 'working');+ expect(screen.getByTestId('assistant-ui-subagent-call')).toHaveAttribute(+ 'data-status',+ 'working'+ );});it('marks a failed delegation as failed rather than complete', () => {@@ -23,7 +26,10 @@ describe('SubagentActivityCard', () => {activity={{ taskId: 't', agentId: 'researcher', status: 'failed', toolCalls: [] }}/>);- expect(screen.getByTestId('assistant-ui-subagent-call')).toHaveAttribute('data-status', 'failed');+ expect(screen.getByTestId('assistant-ui-subagent-call')).toHaveAttribute(+ 'data-status',+ 'failed'+ );});it('marks a cancelled delegation as cancelled', () => {@@ -94,9 +100,11 @@ describe('SubagentActivityCard', () => {});it('renders no nested-transcript disclosure chevron when there is nothing to show', () => {- render(<SubagentActivityCard activity={{ taskId: 't', agentId: 'researcher', toolCalls: [] }} />);- expect(- screen.getByRole('button', { name: /Delegated to researcher/i })- ).toHaveAttribute('disabled');+ render(+ <SubagentActivityCard activity={{ taskId: 't', agentId: 'researcher', toolCalls: [] }} />+ );+ expect(screen.getByRole('button', { name: /Delegated to researcher/i })).toHaveAttribute(+ 'disabled'+ );});});diff --git a/app/src/features/conversations/aui/SubagentActivityCard.tsx b/app/src/features/conversations/aui/SubagentActivityCard.tsxindex 60697f5172..396a56ce1e 100644--- a/app/src/features/conversations/aui/SubagentActivityCard.tsx+++ b/app/src/features/conversations/aui/SubagentActivityCard.tsx@@ -18,15 +18,15 @@* inline via `TaskCard`'s own disclosure, mirroring what `SubagentTaskCard`* does for a live delegation.*/-import { useT } from '../../../lib/i18n/I18nContext';-import { subagentMessages } from '../../../providers/assistantUiMessages';-import { isActiveTimelineStatus, type SubagentActivity } from '../../../store/chatRuntimeSlice';-import { basename } from '../../../utils/pathUtils';import { TaskCard, type TaskCardState } from '../../../components/assistant-ui/elements/task-card';import { TaskTranscript } from '../../../components/assistant-ui/elements/task-card.aui';import { formatElapsed } from '../../../components/assistant-ui/utils/task';import Badge from '../../../components/ui/Badge';import WorktreeActions from '../../../components/worktree/WorktreeActions';+import { useT } from '../../../lib/i18n/I18nContext';+import { subagentMessages } from '../../../providers/assistantUiMessages';+import { isActiveTimelineStatus, type SubagentActivity } from '../../../store/chatRuntimeSlice';+import { basename } from '../../../utils/pathUtils';function stateOf(activity: SubagentActivity): TaskCardState {if (activity.status === 'awaiting_user') return 'waiting';diff --git a/app/src/features/conversations/aui/ToolTimelineAdapter.test.tsx b/app/src/features/conversations/aui/ToolTimelineAdapter.test.tsxindex 84acc095ec..9ffb8088fc 100644--- a/app/src/features/conversations/aui/ToolTimelineAdapter.test.tsx+++ b/app/src/features/conversations/aui/ToolTimelineAdapter.test.tsx@@ -15,8 +15,22 @@ import { ToolTimelineAdapter } from './ToolTimelineAdapter';describe('ToolTimelineAdapter — agentic task insights surface', () => {it('wraps rows in the "Agentic task insights" group and conveys run state on the name', () => {const entries: ToolTimelineEntry[] = [- { id: 'r', name: 'web_search', round: 1, seq: 0, status: 'running', argsBuffer: '{"query":"f1"}' },- { id: 'd', name: 'file_read', round: 1, seq: 0, status: 'success', argsBuffer: '{"path":"/a/b.txt"}' },+ {+ id: 'r',+ name: 'web_search',+ round: 1,+ seq: 0,+ status: 'running',+ argsBuffer: '{"query":"f1"}',+ },+ {+ id: 'd',+ name: 'file_read',+ round: 1,+ seq: 0,+ status: 'success',+ argsBuffer: '{"path":"/a/b.txt"}',+ },];render(<ToolTimelineAdapter entries={entries} />);const group = screen.getByTestId('agent-task-insights');@@ -50,11 +64,15 @@ describe('ToolTimelineAdapter — agentic task insights surface', () => {});it('stays open while running and collapses once settled so a finished run does not dominate', () => {- const running: ToolTimelineEntry[] = [{ id: 'r', name: 'web_search', round: 1, seq: 0, status: 'running' }];+ const running: ToolTimelineEntry[] = [+ { id: 'r', name: 'web_search', round: 1, seq: 0, status: 'running' },+ ];const { rerender } = render(<ToolTimelineAdapter entries={running} />);expect(screen.getByTestId('agent-task-insights')).toHaveAttribute('data-state', 'open');- const settled: ToolTimelineEntry[] = [{ id: 'r', name: 'web_search', round: 1, seq: 0, status: 'success' }];+ const settled: ToolTimelineEntry[] = [+ { id: 'r', name: 'web_search', round: 1, seq: 0, status: 'success' },+ ];rerender(<ToolTimelineAdapter entries={settled} />);expect(screen.getByTestId('agent-task-insights')).toHaveAttribute('data-state', 'closed');@@ -130,7 +148,14 @@ describe('ToolTimelineAdapter — agentic task insights surface', () => {it('renders the parent live response inside the panel under a Response heading, stripping a leaked tool_call envelope', () => {const entries: ToolTimelineEntry[] = [- { id: 'r', name: 'web_search', round: 1, seq: 0, status: 'running', argsBuffer: '{"query":"f1"}' },+ {+ id: 'r',+ name: 'web_search',+ round: 1,+ seq: 0,+ status: 'running',+ argsBuffer: '{"query":"f1"}',+ },];render(<ToolTimelineAdapter@@ -146,7 +171,9 @@ describe('ToolTimelineAdapter — agentic task insights surface', () => {it('omits the Response block when there is no live response', () => {render(- <ToolTimelineAdapter entries={[{ id: 'r', name: 'web_search', round: 1, seq: 0, status: 'running' }]} />+ <ToolTimelineAdapter+ entries={[{ id: 'r', name: 'web_search', round: 1, seq: 0, status: 'running' }]}+ />);expect(screen.queryByTestId('agent-live-response')).toBeNull();});@@ -322,12 +349,16 @@ describe('ToolTimelineAdapter — in-flight viewport windowing', () => {it('does not window once the turn has settled', () => {render(<ToolTimelineAdapter entries={runningEntries} turnActive={false} />);- expect(screen.getByTestId('tool-timeline-viewport').getAttribute('data-windowed')).toBe('false');+ expect(screen.getByTestId('tool-timeline-viewport').getAttribute('data-windowed')).toBe(+ 'false'+ );});it('never windows under expandAllRows, even mid-turn', () => {render(<ToolTimelineAdapter entries={runningEntries} turnActive expandAllRows />);- expect(screen.getByTestId('tool-timeline-viewport').getAttribute('data-windowed')).toBe('false');+ expect(screen.getByTestId('tool-timeline-viewport').getAttribute('data-windowed')).toBe(+ 'false'+ );});it('attaches a scroll handler that does not throw as scroll metrics change', () => {@@ -359,7 +390,9 @@ describe('ToolTimelineAdapter — renders the processing transcript inline', ()it('falls back to the tool-row list when no transcript is present', () => {render(- <ToolTimelineAdapter entries={[{ id: 'a', name: 'web_search', round: 1, seq: 0, status: 'success' }]} />+ <ToolTimelineAdapter+ entries={[{ id: 'a', name: 'web_search', round: 1, seq: 0, status: 'success' }]}+ />);expect(screen.queryByTestId('processing-transcript')).toBeNull();expect(screen.getByTestId('agent-timeline-row')).toBeInTheDocument();diff --git a/app/src/features/conversations/aui/ToolTimelineAdapter.tsx b/app/src/features/conversations/aui/ToolTimelineAdapter.tsxindex 3c76aa5236..112e3d54cc 100644--- a/app/src/features/conversations/aui/ToolTimelineAdapter.tsx+++ b/app/src/features/conversations/aui/ToolTimelineAdapter.tsx@@ -8,10 +8,7 @@ import {CollapsibleTrigger,} from '../../../components/ui/Collapsible';import { useT } from '../../../lib/i18n/I18nContext';-import type {- ProcessingTranscriptItem,- ToolTimelineEntry,-} from '../../../store/chatRuntimeSlice';+import type { ProcessingTranscriptItem, ToolTimelineEntry } from '../../../store/chatRuntimeSlice';import { formatTimelineEntry, stripToolCallEnvelopes } from '../../../utils/toolTimelineFormatting';import { WorkerThreadRefCard } from '../components/WorkerThreadRefCard';import { parseWorkerThreadRef } from '../utils/workerThreadRef';diff --git a/app/src/features/conversations/aui/processingTranscript.tsx b/app/src/features/conversations/aui/processingTranscript.tsxindex 3832cf21ea..d68eb56213 100644--- a/app/src/features/conversations/aui/processingTranscript.tsx+++ b/app/src/features/conversations/aui/processingTranscript.tsx@@ -14,8 +14,8 @@ import {stripToolCallEnvelopes,} from '../../../utils/toolTimelineFormatting';import { ToolIcon } from '../tools/ToolIcon';-import { ToolFailureCard } from './ToolFailureCard';import { SubagentActivityCard } from './SubagentActivityCard';+import { ToolFailureCard } from './ToolFailureCard';/*** The Hermes-style "View processing" body: the agent's narration and hidden@@ -177,7 +177,11 @@ function ToolRow({ entry }: { entry: ToolTimelineEntry }) {) : null}{entry.status === 'error' && entry.failure ? (<span className="mt-1 block">- <ToolFailureCard toolName={entry.name} target={detail ?? title} failure={entry.failure} />+ <ToolFailureCard+ toolName={entry.name}+ target={detail ?? title}+ failure={entry.failure}+ /></span>) : null}</span>diff --git a/app/src/features/conversations/components/aui/TranscriptOverlays.tsx b/app/src/features/conversations/components/aui/TranscriptOverlays.tsxindex ed7046e33c..6aab114ae8 100644--- a/app/src/features/conversations/components/aui/TranscriptOverlays.tsx+++ b/app/src/features/conversations/components/aui/TranscriptOverlays.tsx@@ -1,6 +1,9 @@import { useState } from 'react';-import type { ProcessingTranscriptItem, ToolTimelineEntry } from '../../../../store/chatRuntimeSlice';+import type {+ ProcessingTranscriptItem,+ ToolTimelineEntry,+} from '../../../../store/chatRuntimeSlice';import { AgentProcessSourcePanel } from '../AgentProcessSourcePanel';import { type BackgroundProcess, BackgroundProcessesPanel } from '../BackgroundProcessesPanel';diff --git a/app/src/features/conversations/components/aui/auiThreadState.ts b/app/src/features/conversations/components/aui/auiThreadState.tsindex a71c820225..77668fd05d 100644--- a/app/src/features/conversations/components/aui/auiThreadState.ts+++ b/app/src/features/conversations/components/aui/auiThreadState.ts@@ -106,6 +106,7 @@ export function useAuiReloadCapability(): boolean {* UI off again automatically instead of leaving a dead button.*/export const EDIT_AND_BRANCH_SEAM = Object.freeze({- editComposer: 'thread.tsx UserMessage — vendored EditMessage, gated on useAuiEditCapabilities().canEdit',+ editComposer:+ 'thread.tsx UserMessage — vendored EditMessage, gated on useAuiEditCapabilities().canEdit',branchPicker: 'thread.tsx BranchPicker — gated on useAuiEditCapabilities().canSwitchToBranch',});diff --git a/app/src/lib/i18n/de.ts b/app/src/lib/i18n/de.tsindex 3c219d7537..8ae65ffb5a 100644--- a/app/src/lib/i18n/de.ts+++ b/app/src/lib/i18n/de.ts@@ -3400,7 +3400,8 @@ const messages: TranslationMap = {'conversations.composer.context.meterValue': '{used} von {limit}','conversations.composer.context.loading': 'Kontext wird gemessen…','conversations.composer.context.errorTitle': 'Kontextaufschlüsselung nicht verfügbar',- 'conversations.composer.context.errorDetail': 'Der Core konnte den Prompt dieses Threads nicht messen.',+ 'conversations.composer.context.errorDetail':+ 'Der Core konnte den Prompt dieses Threads nicht messen.','conversations.composer.context.section.preamble': 'System-Prompt','conversations.composer.context.section.tools': 'Werkzeuge','conversations.composer.context.section.history': 'Gesprächsverlauf',diff --git a/app/src/lib/i18n/en.ts b/app/src/lib/i18n/en.tsindex 1714f05cb4..5149cc11ac 100644--- a/app/src/lib/i18n/en.ts+++ b/app/src/lib/i18n/en.ts@@ -3719,7 +3719,8 @@ const en: TranslationMap = {'conversations.composer.context.meterValue': '{used} of {limit}','conversations.composer.context.loading': 'Measuring context…','conversations.composer.context.errorTitle': 'Context breakdown unavailable',- 'conversations.composer.context.errorDetail': 'The core could not measure the prompt for this thread.',+ 'conversations.composer.context.errorDetail':+ 'The core could not measure the prompt for this thread.','conversations.composer.context.section.preamble': 'System prompt','conversations.composer.context.section.tools': 'Tools','conversations.composer.context.section.history': 'Conversation history',diff --git a/app/src/lib/i18n/es.ts b/app/src/lib/i18n/es.tsindex 753f838aba..7bac33f5aa 100644--- a/app/src/lib/i18n/es.ts+++ b/app/src/lib/i18n/es.ts@@ -185,9 +185,11 @@ const messages: TranslationMap = {'conversations.chatError.guardrail.tryInstead': 'probar en su lugar','conversations.assistantUi.edit.ariaLabel': 'Editar tu mensaje','conversations.assistantUi.edit.discardedRepliesOne': 'Al enviar se descartará {count} respuesta',- 'conversations.assistantUi.edit.discardedRepliesOther': 'Al enviar se descartarán {count} respuestas',+ 'conversations.assistantUi.edit.discardedRepliesOther':+ 'Al enviar se descartarán {count} respuestas','conversations.assistantUi.stoppedRun.reasonUserStop': 'Detenido',- 'conversations.assistantUi.stoppedRun.reasonSuperseded': 'Reemplazado por un mensaje más reciente',+ 'conversations.assistantUi.stoppedRun.reasonSuperseded':+ 'Reemplazado por un mensaje más reciente','conversations.toolFailure.whyLabel': 'Por qué','conversations.toolFailure.nextLabel': 'Qué hacer a continuación','conversations.toolFailure.missingPermission.cause':diff --git a/app/src/lib/i18n/fr.ts b/app/src/lib/i18n/fr.tsindex 4f83f81c82..7a4030210e 100644--- a/app/src/lib/i18n/fr.ts+++ b/app/src/lib/i18n/fr.ts@@ -192,8 +192,8 @@ const messages: TranslationMap = {'Une politique a bloqué cette réponse avant son envoi.','conversations.chatError.guardrail.tryInstead': 'essayer plutôt','conversations.assistantUi.edit.ariaLabel': 'Modifier votre message',- 'conversations.assistantUi.edit.discardedRepliesOne': 'L\'envoi supprimera {count} réponse',- 'conversations.assistantUi.edit.discardedRepliesOther': 'L\'envoi supprimera {count} réponses',+ 'conversations.assistantUi.edit.discardedRepliesOne': "L'envoi supprimera {count} réponse",+ 'conversations.assistantUi.edit.discardedRepliesOther': "L'envoi supprimera {count} réponses",'conversations.assistantUi.stoppedRun.reasonUserStop': 'Arrêté','conversations.assistantUi.stoppedRun.reasonSuperseded': 'Remplacé par un message plus récent','conversations.toolFailure.whyLabel': 'Pourquoi',diff --git a/app/src/lib/i18n/it.ts b/app/src/lib/i18n/it.tsindex 3be1173197..0ed494b84d 100644--- a/app/src/lib/i18n/it.ts+++ b/app/src/lib/i18n/it.ts@@ -186,8 +186,8 @@ const messages: TranslationMap = {'Una norma ha bloccato questa risposta prima che venisse inviata.','conversations.chatError.guardrail.tryInstead': 'prova invece','conversations.assistantUi.edit.ariaLabel': 'Modifica il tuo messaggio',- 'conversations.assistantUi.edit.discardedRepliesOne': 'L\'invio eliminerà {count} risposta',- 'conversations.assistantUi.edit.discardedRepliesOther': 'L\'invio eliminerà {count} risposte',+ 'conversations.assistantUi.edit.discardedRepliesOne': "L'invio eliminerà {count} risposta",+ 'conversations.assistantUi.edit.discardedRepliesOther': "L'invio eliminerà {count} risposte",'conversations.assistantUi.stoppedRun.reasonUserStop': 'Interrotto','conversations.assistantUi.stoppedRun.reasonSuperseded': 'Sostituito da un messaggio più recente','conversations.toolFailure.whyLabel': 'Perché',@@ -3364,7 +3364,8 @@ const messages: TranslationMap = {'conversations.composer.context.meterValue': '{used} di {limit}','conversations.composer.context.loading': 'Misurazione del contesto…','conversations.composer.context.errorTitle': 'Ripartizione del contesto non disponibile',- 'conversations.composer.context.errorDetail': 'Il core non è riuscito a misurare il prompt di questo thread.',+ 'conversations.composer.context.errorDetail':+ 'Il core non è riuscito a misurare il prompt di questo thread.','conversations.composer.context.section.preamble': 'Prompt di sistema','conversations.composer.context.section.tools': 'Strumenti','conversations.composer.context.section.history': 'Cronologia della conversazione',diff --git a/app/src/lib/i18n/ko.ts b/app/src/lib/i18n/ko.tsindex 8c54f7a75c..332288f967 100644--- a/app/src/lib/i18n/ko.ts+++ b/app/src/lib/i18n/ko.ts@@ -3272,7 +3272,8 @@ const messages: TranslationMap = {'conversations.composer.context.meterValue': '{limit} 중 {used}','conversations.composer.context.loading': '컨텍스트 측정 중…','conversations.composer.context.errorTitle': '컨텍스트 분석을 사용할 수 없음',- 'conversations.composer.context.errorDetail': '코어가 이 스레드의 프롬프트를 측정하지 못했습니다.',+ 'conversations.composer.context.errorDetail':+ '코어가 이 스레드의 프롬프트를 측정하지 못했습니다.','conversations.composer.context.section.preamble': '시스템 프롬프트','conversations.composer.context.section.tools': '도구','conversations.composer.context.section.history': '대화 기록',diff --git a/app/src/lib/i18n/pt.ts b/app/src/lib/i18n/pt.tsindex f9402f99fb..3c279d7262 100644--- a/app/src/lib/i18n/pt.ts+++ b/app/src/lib/i18n/pt.ts@@ -184,7 +184,8 @@ const messages: TranslationMap = {'conversations.assistantUi.edit.discardedRepliesOne': 'Enviar descartará {count} resposta','conversations.assistantUi.edit.discardedRepliesOther': 'Enviar descartará {count} respostas','conversations.assistantUi.stoppedRun.reasonUserStop': 'Interrompido',- 'conversations.assistantUi.stoppedRun.reasonSuperseded': 'Substituído por uma mensagem mais recente',+ 'conversations.assistantUi.stoppedRun.reasonSuperseded':+ 'Substituído por uma mensagem mais recente','conversations.toolFailure.whyLabel': 'Por quê','conversations.toolFailure.nextLabel': 'O que fazer a seguir','conversations.toolFailure.missingPermission.cause':@@ -3361,7 +3362,8 @@ const messages: TranslationMap = {'conversations.composer.context.meterValue': '{used} de {limit}','conversations.composer.context.loading': 'Medindo o contexto…','conversations.composer.context.errorTitle': 'Detalhamento do contexto indisponível',- 'conversations.composer.context.errorDetail': 'O núcleo não conseguiu medir o prompt desta conversa.',+ 'conversations.composer.context.errorDetail':+ 'O núcleo não conseguiu medir o prompt desta conversa.','conversations.composer.context.section.preamble': 'Prompt do sistema','conversations.composer.context.section.tools': 'Ferramentas','conversations.composer.context.section.history': 'Histórico da conversa',