Moves extension tool_call/tool_result interception from wrapToolsWithExtensions (which fires inside the agent loop, bypassing event settlement) to beforeToolCall/afterToolCall hooks that await _agentEventQueue. This ensures extensions always see settled state — including the appended assistant message — even when tools execute in parallel. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| package.json | ||
| tsconfig.json | ||