From a878b1f11247de8c5748c3af8f75af950a0cdb39 Mon Sep 17 00:00:00 2001 From: Todd Robertson Date: Fri, 10 Apr 2026 09:30:47 -0700 Subject: [PATCH] fix: read turn_id instead of turn from Copilot SDK events The Copilot SDK exposes the turn number as 'turn_id' on event.data, not 'turn'. The incorrect attribute name caused getattr to always return None, resulting in 'Turn ?' in the web dashboard and missing turn info in console output. Fixes #62 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/conductor/providers/copilot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conductor/providers/copilot.py b/src/conductor/providers/copilot.py index 3d3ac76..9d05fbc 100644 --- a/src/conductor/providers/copilot.py +++ b/src/conductor/providers/copilot.py @@ -1120,7 +1120,7 @@ def _print(renderable: Any) -> None: elif event_type == "assistant.turn_start": # Only show processing indicator in full mode if full_mode: - turn = getattr(event.data, "turn", None) + turn = getattr(event.data, "turn_id", None) turn_info = f" (turn {turn})" if turn else "" text = Text() text.append(" │ ", style="dim") @@ -1177,7 +1177,7 @@ def _forward_event(event_type: str, event: Any, callback: EventCallback) -> None ) elif event_type == "assistant.turn_start": - turn = getattr(event.data, "turn", None) + turn = getattr(event.data, "turn_id", None) callback("agent_turn_start", {"turn": turn}) elif event_type == "assistant.message":