Harden nested project instruction tracking

This commit is contained in:
Yichen Jiang
2026-07-05 21:30:47 +08:00
parent b92795a731
commit 706b9c95b1
4 changed files with 343 additions and 31 deletions
+2
View File
@@ -735,6 +735,8 @@ async function runStep(
}
// --- Tool execution (sequential; parallel execution is a TODO) ---
// If this becomes parallel, audit post-execute plugins that keep per-step
// pending state before their returned additionalContext is appended.
// ToolRegistry.execute converts tool failures (including aborts) into
// isError results, so abort is re-checked around every call here.
const toolCalls = message.content.filter(block => block.type === 'tool-call')