You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pull request adds a new example for running the official GitHub Copilot CLI inside an OpenSandbox container. It includes a complete, well-documented workflow, a sample script, and supporting documentation to help users set up and run the Copilot CLI in an isolated environment.
New GitHub Copilot CLI Example in OpenSandbox:
Documentation and Usage Instructions
Added a detailed guide (docs/examples/github-copilot-cli-sandbox.md) explaining how to run the GitHub Copilot CLI inside a local OpenSandbox container, including prerequisites, environment variables, and security notes.
Added a short README (examples/github-copilot-cli-sandbox/README.md) pointing to the full documentation.
Example Implementation
Added a Python script (examples/github-copilot-cli-sandbox/main.py) that:
Loads environment variables and checks for a required GitHub token.
Connects to the local OpenSandbox server and creates a sandbox container.
Installs the Copilot CLI using the official installation script.
Runs a prompt non-interactively with copilot -sp and prints logs.
Add project metadata or explicit dependency installation instructions
docs/examples/github-copilot-cli-sandbox.md:31
uv sync cannot prepare this example from the repository root because there is no root pyproject.toml or uv.lock, and this example has no manifest declaring opensandbox or python-dotenv. As written, the setup stops here (or the script later fails to import its dependencies); document explicit installs or add runnable project metadata.
This issue also appears in the following locations of the same file:
line 46
line 56
line 89
Link directly to the example source on GitHub
docs/examples/microsoft-agent-framework.md:128
Source-code links in docs are required to use full GitHub URLs, and this relative repository path will also resolve as a VitePress page rather than a browsable source directory. Link directly to the example directory on GitHub.
The reason will be displayed to describe this comment to others. Learn more.
Reviewed ee84a61. Reproduced the documentation build failure and setup/path failures below. The Microsoft Agent Framework workflow passed a mock smoke test with the documented package versions; live Docker and model calls were not exercised.
The reason will be displayed to describe this comment to others. Learn more.
Copilot review overview
🟡 Changes recommended
The documented Copilot setup is not currently runnable, links and navigation remain incorrect, and unrelated Microsoft example work conflicts with the stated scope.
- [Functional workflow with agents](https://github.com/microsoft/agent-framework/blob/main/python/samples/01-get-started/05_functional_workflow_with_agents.py)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
documentationImprovements or additions to documentationsize/XLDenotes a PR that changes 500-999 lines, ignoring generated files.
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds a new example for running the official GitHub Copilot CLI inside an OpenSandbox container. It includes a complete, well-documented workflow, a sample script, and supporting documentation to help users set up and run the Copilot CLI in an isolated environment.
New GitHub Copilot CLI Example in OpenSandbox:
Documentation and Usage Instructions
docs/examples/github-copilot-cli-sandbox.md) explaining how to run the GitHub Copilot CLI inside a local OpenSandbox container, including prerequisites, environment variables, and security notes.examples/github-copilot-cli-sandbox/README.md) pointing to the full documentation.Example Implementation
examples/github-copilot-cli-sandbox/main.py) that:copilot -spand prints logs.