Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

style: reformat long lines and imports

Steven Enamakele87a2fcceafc
diff --git a/app/src/features/conversations/derived/mapDisplayItems.ts b/app/src/features/conversations/derived/mapDisplayItems.ts
index bd43050f72..5445930192 100644
--- a/app/src/features/conversations/derived/mapDisplayItems.ts
+++ b/app/src/features/conversations/derived/mapDisplayItems.ts
@@ -405,9 +405,7 @@ export function mapDisplayItems(
/** Tool names that open a delegation — mirrors `findPendingDelegationContext`. */
function isDelegationToolName(name: string): boolean {
return (
- name === 'spawn_subagent' ||
- name === 'spawn_async_subagent' ||
- name.startsWith('delegate_')
+ name === 'spawn_subagent' || name === 'spawn_async_subagent' || name.startsWith('delegate_')
);
}
diff --git a/app/src/store/__tests__/chatRuntimeSlice.test.ts b/app/src/store/__tests__/chatRuntimeSlice.test.ts
index e948717ed0..8eb4efce05 100644
--- a/app/src/store/__tests__/chatRuntimeSlice.test.ts
+++ b/app/src/store/__tests__/chatRuntimeSlice.test.ts
@@ -1,7 +1,7 @@
import { describe, expect, it } from 'vitest';
-import type { PersistedTurnState } from '../../types/turnState';
import { toThreadMessageLike } from '../../providers/assistantUiMessages';
+import type { PersistedTurnState } from '../../types/turnState';
import reducer, {
beginInferenceTurn,
bumpInferenceHeartbeatForThread,
@@ -1388,20 +1388,8 @@ describe('subagent event reducers (Phase 3)', () => {
setToolTimelineForThread({
threadId: 't1',
entries: [
- {
- id: 'spawn-original',
- name: 'spawn_subagent',
- round: 0,
- seq: 0,
- status: 'success',
- },
- {
- id: 'spawn-resume',
- name: 'spawn_subagent',
- round: 0,
- seq: 1,
- status: 'running',
- },
+ { id: 'spawn-original', name: 'spawn_subagent', round: 0, seq: 0, status: 'success' },
+ { id: 'spawn-resume', name: 'spawn_subagent', round: 0, seq: 1, status: 'running' },
],
})
),
@@ -1434,10 +1422,7 @@ describe('subagent event reducers (Phase 3)', () => {
const activity = state.toolTimelineByThread.t1.find(entry => entry.id === rowId)!;
expect(activity).toMatchObject({ status: 'running' });
- expect(activity.subagent).toMatchObject({
- status: 'running',
- parentCallId: 'spawn-resume',
- });
+ expect(activity.subagent).toMatchObject({ status: 'running', parentCallId: 'spawn-resume' });
expect(activity.subagent?.awaitingQuestion).toBeUndefined();
const rendered = toThreadMessageLike(
{
@@ -1452,7 +1437,11 @@ describe('subagent event reducers (Phase 3)', () => {
);
expect(rendered.content).toEqual(
expect.arrayContaining([
- expect.objectContaining({ type: 'tool-call', toolCallId: 'spawn-resume', toolName: 'task' }),
+ expect.objectContaining({
+ type: 'tool-call',
+ toolCallId: 'spawn-resume',
+ toolName: 'task',
+ }),
])
);
});
diff --git a/app/src/store/chatRuntimeSlice.ts b/app/src/store/chatRuntimeSlice.ts
index 68ae7bafa4..77ded06305 100644
--- a/app/src/store/chatRuntimeSlice.ts
+++ b/app/src/store/chatRuntimeSlice.ts
@@ -2139,16 +2139,8 @@ const chatRuntimeSlice = createSlice({
output?: string;
}>
) => {
- const {
- threadId,
- rowId,
- taskId,
- success,
- iterations,
- elapsedMs,
- outputChars,
- output,
- } = action.payload;
+ const { threadId, rowId, taskId, success, iterations, elapsedMs, outputChars, output } =
+ action.payload;
// Settle a still-in-flight row: `running`, or `awaiting_user` (a subagent
// paused for input that then completes must not stay stuck at
// awaiting_user). Already-terminal rows are left as-is.