microsoft-foundry / microsoft-foundry/foundry-samples
`GitHub Copilot SDK` sample local invoke fails on Windows: session.create requires /home, resulting in unexpected EOF
Open
@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.
Steps to Reproduce:
mkdir github-copilot-invocationsandcd github-copilot-invocations- 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 locationnorthcentralus. - Run
azd up. - Run
azd env set GITHUB_TOKEN "<github token>". - Run
azd ai agent run. - From a second terminal, run
azd ai agent invoke --local --protocol invocations '{"input": "What can you help me with?"}'.
Environment:
- Azd version: azd version 1.24.2-daily.6223381 (commit 7d52038731150e12a5f12aadbfcb09d7413ed0f5) (daily).
- AI Agent Extension version: 0.1.28-preview
- Manifest URL: https://github.com/microsoft-foundry/foundry-samples/blob/main/samples/python/hosted-agents/bring-your-own/invocations/github-copilot/agent.manifest.yaml
- OS: Windows
- Location:
northcentralus.
Expected Behavior:
Local invoke can succeed.
@JeffreyCA and @rajeshkamal5050 for notification.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.