Skip to content

bug: copilot-sdk executor fails first message with context canceled on Windows #546

Description

@RascoApps

Summary

On Windows, Waza 0.38.7's copilot-sdk executor creates a session but every evaluated task fails when sending the first message with context canceled. The standalone Copilot CLI works with the same authenticated account and model.

Environment

  • Waza: 0.38.7
  • GitHub Copilot CLI: 1.0.80
  • OS: Windows 11 Enterprise (10.0.26200.0)
  • Shell: PowerShell
  • Waza executor: copilot-sdk

Steps to reproduce

  1. Authenticate the Copilot CLI normally.
  2. Confirm the requested model appears in waza models --json.
  3. Run a single Waza task without cache, for example:
waza cache clear
waza run eval.yaml --executor copilot-sdk --model <model-from-waza-models> --trials 1 --task <task-id>

Actual behavior

The session starts, but sending the first task message fails:

session.start
failed to send message: context canceled

The task receives no agent response and fails. Clearing .waza-cache and rerunning produces the same result.

Control cases

  • A direct non-interactive Copilot CLI prompt succeeds under the same account/environment.
  • Repeating the Waza run after clearing the cache fails identically.
  • Pointing COPILOT_CLI_PATH at the independently installed Copilot CLI 1.0.80 changes the failure to:
Time.UnmarshalJSON: input is not a JSON string

This suggests a possible Waza/Copilot SDK/CLI protocol or timestamp-schema compatibility issue, although the exact root cause is not yet confirmed.

Expected behavior

The copilot-sdk executor should send the task prompt and return the model response, or report a specific actionable SDK/CLI compatibility error rather than context canceled.

Additional context

Related upstream issue: github/copilot-sdk#1165 tracks SDK protocol-version drift detection, but no existing Waza issue was found for this failure signature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggo:needs-researchNeeds investigationneeds-author-feedbackNeeds additional details from issue author to validate or implementsquad:richard parkAssigned to Richard Park (Go Engineer)type:bugSomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions