Skip to content

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

test(conversations): align goal fixture with camelCase wire shape

Steven Enamakel7011426f8eeb
diff --git a/app/src/features/conversations/aui/useThreadGoal.test.tsx b/app/src/features/conversations/aui/useThreadGoal.test.tsx
index 3abb398b87..76a7079c20 100644
--- a/app/src/features/conversations/aui/useThreadGoal.test.tsx
+++ b/app/src/features/conversations/aui/useThreadGoal.test.tsx
@@ -43,11 +43,16 @@ describe('useLoadThreadGoal', () => {
it('primes the slice from the RPC on thread open', async () => {
const goal = {
- goal_id: 'g1',
+ threadId: 't1',
+ goalId: 'g1',
objective: 'Ship it',
status: 'active' as const,
- tokens_used: 10,
- time_used_seconds: 5,
+ tokensUsed: 10,
+ timeUsedSeconds: 5,
+ tokenBudget: null,
+ createdAtMs: 1,
+ updatedAtMs: 1,
+ continuationSuppressed: false,
};
vi.mocked(threadApi.getGoal).mockResolvedValue(goal);
const { store, wrapper } = setup();
diff --git a/app/src/store/threadTodosSlice.ts b/app/src/store/threadTodosSlice.ts
index 3990cc0fae..2b67c79ce3 100644
--- a/app/src/store/threadTodosSlice.ts
+++ b/app/src/store/threadTodosSlice.ts
@@ -17,10 +17,7 @@ import type { TodoItem as TodoItemWire } from '../types/threadWire.generated';
export type CoreTodoStatus = TodoItemWire['status'];
/** One todo item as the core sends it — wire shape, not the element's shape. */
-export type ThreadTodoItemView = Omit<TodoItemWire, 'reason'> & {
- /** Why the step was cancelled; only on a `cancelled` item. */
- reason?: NonNullable<TodoItemWire['reason']>;
-};
+export type ThreadTodoItemView = TodoItemWire;
export interface ThreadTodosState {
byThread: Record<string, ThreadTodoItemView[]>;