microsoft-foundry / microsoft-foundry/foundry-samples

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

Open
#680 13 comments 0 reactions 8 assignees View on GitHub

@brandom-msft is already working on this.

Since Aug 13, 2026.

bug
Dominant language
Bicep
Stars
445
Forks
494
Avg merge
11h 35m
Merged PRs (30d)
38

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.