feat(coding-agent/task): added optional assignment field to track raw task text separately from templates
- Added optional `assignment` field to task result and progress interfaces to track raw per-task assignment text separately from full templated task. - Updated task rendering to display assignment text instead of full task template when available, improving clarity of task display. - Modified task section rendering to show trimmed assignment text with fallback to task field if assignment is not available. - Propagated assignment field through task executor, template renderer, and result objects to maintain consistency across task processing pipeline.
This commit is contained in:
@@ -123,6 +123,7 @@ export interface ExecutorOptions {
|
||||
worktree?: string;
|
||||
agent: AgentDefinition;
|
||||
task: string;
|
||||
assignment?: string;
|
||||
description?: string;
|
||||
index: number;
|
||||
id: string;
|
||||
@@ -442,6 +443,7 @@ export async function runSubprocess(options: ExecutorOptions): Promise<SingleRes
|
||||
cwd,
|
||||
agent,
|
||||
task,
|
||||
assignment,
|
||||
index,
|
||||
id,
|
||||
worktree,
|
||||
@@ -462,6 +464,7 @@ export async function runSubprocess(options: ExecutorOptions): Promise<SingleRes
|
||||
agentSource: agent.source,
|
||||
status: "running",
|
||||
task,
|
||||
assignment,
|
||||
description: options.description,
|
||||
lastIntent: undefined,
|
||||
recentTools: [],
|
||||
@@ -480,6 +483,7 @@ export async function runSubprocess(options: ExecutorOptions): Promise<SingleRes
|
||||
agent: agent.name,
|
||||
agentSource: agent.source,
|
||||
task,
|
||||
assignment,
|
||||
description: options.description,
|
||||
exitCode: 1,
|
||||
output: "",
|
||||
@@ -622,6 +626,7 @@ export async function runSubprocess(options: ExecutorOptions): Promise<SingleRes
|
||||
agent: agent.name,
|
||||
agentSource: agent.source,
|
||||
task,
|
||||
assignment,
|
||||
progress: { ...progress },
|
||||
});
|
||||
}
|
||||
@@ -711,6 +716,7 @@ export async function runSubprocess(options: ExecutorOptions): Promise<SingleRes
|
||||
agent: agent.name,
|
||||
agentSource: agent.source,
|
||||
task,
|
||||
assignment,
|
||||
event,
|
||||
});
|
||||
}
|
||||
@@ -1231,6 +1237,7 @@ export async function runSubprocess(options: ExecutorOptions): Promise<SingleRes
|
||||
agent: agent.name,
|
||||
agentSource: agent.source,
|
||||
task,
|
||||
assignment,
|
||||
description: options.description,
|
||||
lastIntent: progress.lastIntent,
|
||||
exitCode,
|
||||
|
||||
Reference in New Issue
Block a user