Skip to content

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

fix(chat): handle missing tool spec for workflow run

Steven Enamakela4efd98f95fd
diff --git a/app/src/features/conversations/tools/toolSpecs.ts b/app/src/features/conversations/tools/toolSpecs.ts
index 3b7c7448bd..80b45bdda3 100644
--- a/app/src/features/conversations/tools/toolSpecs.ts
+++ b/app/src/features/conversations/tools/toolSpecs.ts
@@ -610,8 +610,6 @@ export const FAMILY_TOOL_SPECS: ReadonlyArray<{ test: RegExp; spec: ToolSpec }>
* declare (`delegate_name`).
*/
export const AGENT_SPECS: Record<string, ToolSpec> = {
- researcher: spec('research', TelescopeIcon, 'agent'),
- research: spec('research', TelescopeIcon, 'agent'),
context_scout: spec('scoutContext', LayersIcon, 'agent'),
orchestrator: spec('planNextSteps', BotIcon, 'agent'),
plan: spec('planNextSteps', BotIcon, 'agent'),
diff --git a/app/src/services/api/workflowRunsApi.ts b/app/src/services/api/workflowRunsApi.ts
index f6d61af3f3..7d3879d21e 100644
--- a/app/src/services/api/workflowRunsApi.ts
+++ b/app/src/services/api/workflowRunsApi.ts
@@ -71,7 +71,7 @@ export interface WorkflowDefinition {
export interface WorkflowPhaseOutput {
/** Orchestration id of the spawned child agent. */
orchestrationId: string;
- /** Agent definition id (e.g. "researcher"). */
+ /** Agent definition id (e.g. "code_executor"). */
agentId: string;
/** The child's result summary. */
output: string;
diff --git a/app/src/services/chatService.ts b/app/src/services/chatService.ts
index 4958ccc0fb..7f376c1c3d 100644
--- a/app/src/services/chatService.ts
+++ b/app/src/services/chatService.ts
@@ -567,7 +567,7 @@ export interface ChatIterationStartEvent {
export interface ChatSubagentSpawnedEvent {
thread_id: string;
request_id: string;
- /** Agent definition id (e.g. "researcher"). */
+ /** Agent definition id (e.g. "code_executor"). */
tool_name: string;
/** Per-spawn task id. */
skill_id: string;
diff --git a/app/src/store/chatRuntimeSlice.ts b/app/src/store/chatRuntimeSlice.ts
index 2612ceedb6..429f390e14 100644
--- a/app/src/store/chatRuntimeSlice.ts
+++ b/app/src/store/chatRuntimeSlice.ts
@@ -107,7 +107,7 @@ export interface InferenceStatus {
export interface SubagentActivity {
/** Spawn task id (`sub-…`). Stable for the lifetime of one delegation. */
taskId: string;
- /** Sub-agent definition id (e.g. `researcher`). */
+ /** Sub-agent definition id (e.g. `code_executor`). */
agentId: string;
/** High-level status: `"running"`, `"awaiting_user"`, `"completed"`, `"failed"`. */
status?: string;
@@ -487,7 +487,7 @@ export type InferenceTurnLifecycle = 'started' | 'streaming' | 'interrupted';
/**
* Per-sub-agent token/cost contribution, accumulated across the session and
- * keyed by the sub-agent archetype id (e.g. `researcher`). Drives the hover
+ * keyed by the sub-agent archetype id (e.g. `code_executor`). Drives the hover
* breakdown under the composer footer's cost/context cluster.
*/
export interface SubAgentUsage {