Skip to content

GitHub Copilot SDK sample local invoke fails on Windows: session.create requires /home, resulting in unexpected EOF #680

@Menghua1

Description

@Menghua1

Description:
When testing Scenario 2: GitHub Copilot SDK sample (Invocations), after azd ai agent run successfully started locally, executing the local invocation command azd ai agent invoke --local --protocol invocations '{"input": "What can you help me with?"}' failed. The local log showed the error: "Directory does not exist or cannot be accessed: /home". See the image below for details.
Image
Image

Steps to Reproduce:

  1. mkdir github-copilot-invocations and cd github-copilot-invocations
  2. Run azd ai agent init --manifest "https://github.com/microsoft-foundry/foundry-samples/blob/main/samples/python/hosted-agents/bring-your-own/invocations/github-copilot/agent.manifest.yaml" and select location northcentralus.
  3. Run azd up.
  4. Run azd env set GITHUB_TOKEN "<github token>".
  5. Run azd ai agent run.
  6. From a second terminal, run azd ai agent invoke --local --protocol invocations '{"input": "What can you help me with?"}'.
    Environment:

Expected Behavior:
Local invoke can succeed.

@JeffreyCA and @rajeshkamal5050 for notification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions