fix: retain diagnostic evidence readers and legacy proposal completion
This commit is contained in:
@@ -35,7 +35,8 @@ export function updateTaskContract(task, instruction) {
|
||||
if (current.checks === 'skip') task.constraints.push('用户明确要求无需测试;不得自动扩大为工程测试任务。');
|
||||
}
|
||||
|
||||
export const DIAGNOSTIC_TOOLS = new Set(['inspect_session', 'inspect_project', 'list_files', 'read_file', 'search_files', 'read_artifact', 'inspect_task_plan', 'read_browser_result', 'read_registered_skill']);
|
||||
export const DIAGNOSTIC_TOOLS = new Set(['inspect_session', 'inspect_project', 'list_files', 'read_file', 'search_files', 'read_artifact', 'inspect_task_plan', 'read_browser_result', 'read_registered_skill',
|
||||
'inspect_engine_checks', 'list_research_targets', 'read_research_evidence']);
|
||||
export const AUTOMATIC_CHECK_TOOLS = new Set(['plan_checks', 'run_checks', 'plan_browser', 'run_browser']);
|
||||
|
||||
export function taskToolAllowed(task, run, tool, args = {}) {
|
||||
@@ -47,9 +48,10 @@ export function taskToolAllowed(task, run, tool, args = {}) {
|
||||
|
||||
export function settleAppliedTask(store, session) {
|
||||
const task = store.core.task.get(session.taskId);
|
||||
if (!task || session.changes.some(change => ['pending', 'conflict'].includes(change.status))) return;
|
||||
const applied = session.changes.filter(change => change.status === 'applied' && (!change.taskId || change.taskId === task.id));
|
||||
if (session.changes.some(change => ['pending', 'conflict'].includes(change.status))) return;
|
||||
const applied = session.changes.filter(change => change.status === 'applied' && (!task || !change.taskId || change.taskId === task.id));
|
||||
if (!applied.length) return;
|
||||
if (!task) { if (!session.taskId) session.status = 'completed'; return; }
|
||||
const contract = taskContract(task, id => store.core.task.get(id));
|
||||
task.delivery = { status: 'files_applied', paths: applied.map(change => change.path), at: new Date().toISOString(),
|
||||
checks: contract.checks === 'skip' ? 'not_requested' : task.verification?.status ?? 'not_configured' };
|
||||
|
||||
Reference in New Issue
Block a user