Conversation
) The Claude provider's execute() accepted event_callback but dropped it — never forwarding it to _execute_with_retry() or _execute_agentic_loop(). This meant the web dashboard (--web) showed zero intermediate activity for Claude agents. Thread event_callback through the call chain and emit events at key points in the agentic loop, matching the Copilot provider's event types: - agent_turn_start at each iteration - agent_message for text blocks in responses - agent_tool_start / agent_tool_complete for MCP tool calls All callbacks are guarded and wrapped in try/except to never break the agentic loop. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #39.
event_callbackfromexecute()→_execute_with_retry()→_execute_agentic_loop()so the web dashboard receives intermediate events from Claude agentsagent_turn_start,agent_message,agent_tool_start, andagent_tool_completeevents matching the Copilot provider's event types and data shapesif event_callback:and wrapped intry/exceptto never break the agentic loopTest plan
make lintpassesmake typecheckpassesmake test— 1700 passed, 9 skipped--webflag and a Claude MCP workflow — dashboard shows tool calls in real-time🤖 Generated with Claude Code