Skip to content

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

feat(conversations): register todo, goal, and plan review tool entries

Steven Enamakel4d2692c6eecb
diff --git a/app/src/features/conversations/aui/toolkit.tsx b/app/src/features/conversations/aui/toolkit.tsx
index 5dcc26fb93..e75b7c94ab 100644
--- a/app/src/features/conversations/aui/toolkit.tsx
+++ b/app/src/features/conversations/aui/toolkit.tsx
@@ -99,6 +99,33 @@ export function openHumanToolEntries(): Record<string, OpenHumanToolEntry> {
cron_update: { type: 'backend', display: 'inline', render: CronAddOrUpdateCall },
cron_list: { type: 'backend', display: 'inline', render: CronListCall },
cron_runs: { type: 'backend', display: 'inline', render: CronRunsCall },
+
+ /**
+ * The agent's whole-list todo write (Claude Code / Codex style), rendered
+ * as the vendored `TodoList` element per call (`TodoListPart.tsx`). The
+ * always-current, pinned todo list above the composer is a SEPARATE
+ * render driven by the live `thread_todos_changed` socket event
+ * (`useThreadTodos`), not this per-call snapshot.
+ */
+ todo: { type: 'backend', display: 'standalone', render: TodoListPart },
+
+ /**
+ * The durable per-thread goal tools, rendered as a compact one-line
+ * summary in the activity trace (`GoalToolLine.tsx`). The pinned goal
+ * pill above the composer is a separate render driven by
+ * `thread_goal_updated` / `thread_goal_cleared` (`useThreadGoal`).
+ */
+ goal_set: { type: 'backend', display: 'inline', render: GoalToolLine },
+ goal_get: { type: 'backend', display: 'inline', render: GoalToolLine },
+ goal_complete: { type: 'backend', display: 'inline', render: GoalToolLine },
+
+ /**
+ * Plan-mode review gate: the orchestrator parked the live turn on a
+ * thread-scoped plan (`request_plan_review`). Rendered as the vendored
+ * `AgentPlan` element plus an approve/reject/revise decision row while
+ * the review is still pending (`PlanReviewPart.tsx`).
+ */
+ request_plan_review: { type: 'backend', display: 'standalone', render: PlanReviewPart },
};
}
diff --git a/app/src/providers/ChatRuntimeProvider.tsx b/app/src/providers/ChatRuntimeProvider.tsx
index f1900a3a72..3ff064b9ba 100644
--- a/app/src/providers/ChatRuntimeProvider.tsx
+++ b/app/src/providers/ChatRuntimeProvider.tsx
@@ -861,6 +861,10 @@ const ChatRuntimeProvider = ({ children }: { children: React.ReactNode }) => {
// Identity of THIS emission, carried into the reducer so it can
// tell a resume from a replay without depending on the cache above.
spawnEventId: `${event.request_id ?? 'none'}:${event.seq ?? 'noseq'}`,
+ // Real tool_call_id of the spawn/delegate call, when the core sent
+ // one — lets the reducer attach this activity to that exact row
+ // instead of guessing it heuristically.
+ parentCallId: event.subagent?.parent_call_id,
})
);
},