diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..035d7ad --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,4 @@ +{ + "image": "mcr.microsoft.com/devcontainers/universal:2-linux", + "features": {} +} diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index bd71d4a..f488ac3 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -2,8 +2,7 @@ name: 🐞 Bug Report description: Report a bug or unexpected behavior in the GitHub Copilot CLI. type: Bug labels: - - bug - - "needs triage" + - "triage" body: - type: markdown attributes: diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 0e21f01..0a31afd 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -2,8 +2,7 @@ name: ⭐️ Feature Request description: Suggest a new feature or improvement for the GitHub Copilot CLI. type: Feature labels: - - enhancement - - "needs triage" + - "triage" body: - type: markdown attributes: diff --git a/README.md b/README.md index 96e0ef6..04a0bca 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ We're still early in our journey, but with your feedback, we're rapidly iteratin - **Linux** - **macOS** -- **Windows** (experimental) +- **Windows** ### Prerequisites diff --git a/changelog.md b/changelog.md index 81259db..6d6fdc6 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,269 @@ +## 0.0.354 - 2025-11-03 + +- Exit with nonzero code when `-p` mode fails due to LLM backend errors (auth failures, quota exhaustion, network issues) +- Support for MCP server tool notifications +- Support for `COPILOT_GITHUB_TOKEN` environment variable for authentication (takes precedence over `GH_TOKEN`) +- Improved shell command safety with better heredoc handling outside of commands +- Diff hunk lines now properly fill the width of the diff box +- MCP servers in GitHub Actions environments automatically use `GITHUB_WORKSPACE` as working directory +- `/delegate` command now works correctly when no local changes exist +- Custom agents with special characters in filenames no longer fail +- Better error messages when using unsupported models with `/model` command +- Alternative model providers now work correctly when using different OpenAI base URLs + +## 0.0.353 - 2025-10-28 + +- Added support for custom agents. Custom agent definitions are pulled from `~/.copilot/agents`, `.github/agents` in your repository, or your organization's `.github` repository. You can explicitly invoke an agent with the `/agent` slash command interactively or `--agent ` noninteractively. Agents are also provided as tools that the model can call during completion of a task +- Added a `/delegate` command to delegate a task asynchronously to Copilot coding agent. Any unstaged changes will be committed to a new branch, a PR will be opened in your GitHub repository, and Copilot will complete work in the background. + +## 0.0.352 - 2025-10-27 + +- Improve handling of MCP tools containing slashes +- Improve error message from `/model ` command when using an unsupported model + +## 0.0.351 - 2025-10-24 + +- Improved our path detection heuristic to avoid various annoying, unnecessary permissions requests: + - Running many standard bash/PowerShell commands that are known to be readonly (Fixes part of https://github.com/github/sweagentd/issues/7372) + - Commands like `npm test -- --something` in PowerShell + - Shell redirections like `> some_file.txt` in paths you've already granted write permissions, `> /dev/null`, and `2>&1` (Fixes https://github.com/github/copilot-cli/issues/211) + - Arguments to `gh api` like `gh api /repos/user/repo/ec` (Fixes https://github.com/github/copilot-cli/issues/216) +- Improved prompting for Sonnet 4.5 to reduce the number of intermediate markdown files left in the workspace +- 👀 ...see you at [GitHub Universe](https://githubuniverse.com/)! + +## 0.0.350 - 2025-10-23 + +- To conserve context window space, we've limited the list of tools available to the default GitHub MCP server. In our tests, the model will use the [GitHub CLI, `gh`](https://github.com/cli/cli) (if installed) in lieu of missing MCP tools. We added an `--enable-all-github-mcp-tools` if you wish to turn on all available tools. +Default available tools are: + - Code & Repo navigation + - get_file_contents + - search_code + - search_repositories + - list_branches + - list_commits + - get_commit + - Issue Management + - get_issue + - list_issues + - get_issue_comments + - search_issues + - PR Management + - pull_request_read + - list_pull_requests + - search_pull_requests + - Workflow Info + - list_workflows + - list_workflow_runs + - get_workflow_run + - get_job_logs + - get_workflow_run_logs + - Misc search + - user_search +- Bundled `sharp` dependency into the CLI package -- we're one step closer to implementing https://github.com/github/copilot-cli/issues/16, and this fixes some startup blockers on Windows (fixes https://github.com/github/copilot-cli/issues/309 & https://github.com/github/copilot-cli/issues/287) +- Fixed a bug where input tokens were not tracked properly (Fixes https://github.com/github/copilot-cli/issues/337) +- Fixed a bug where MCP tools with arguments would fail with streaming enabled +- Added additional debug logging that will help us investigate https://github.com/github/copilot-cli/issues/346 + +## 0.0.349 - 2025-10-22 + +- The model can now call multiple tools in parallel. Each tool must be confirmed in advance. This behavior can be disabled with the `--disable-parallel-tools-execution` flag +- Added `/quit` as an alias of `/exit` (fixes https://github.com/github/copilot-cli/issues/357) +- Fixed a bug where every streamed output chunk was sent back to the model as part of the conversation (fixes https://github.com/github/copilot-cli/issues/379) +- Ensure that environment variables are expanded before running path permission checks +- Fixed a bug where Ctrl+K deleted to the end of the visual line in the input box rather than the logical line +- Added the temp directory to the paths that the model has access to by default (fixes https://github.com/github/copilot-cli/issues/306) + +## 0.0.348 - 2025-10-21 + +- Copilot's output now streams in token-by-token! This can be disabled with `--stream off` +- Made improvements to the memory footprint of Copilot CLI, especially when dealing with shell commands that produce very large outputs +- Ensured we preserve comments in VSCode config files when using `/terminal-setup` (fixes https://github.com/github/copilot-cli/issues/325) +- Bundled `node-pty` into the CLI package -- we're one step closer to implementing https://github.com/github/copilot-cli/issues/16 +- Fixed an issue where local tool calling broke sessions (fixes https://github.com/github/copilot-cli/issues/365, https://github.com/github/copilot-cli/issues/364, https://github.com/github/copilot-cli/issues/366) +- Added our LICENSE.md to our Node package (fixes https://github.com/github/copilot-cli/issues/371) +- Added debug logging to authentication status changes to get to the bottom of https://github.com/github/copilot-cli/issues/346 + +## 0.0.347 - 2025-10-20 + +- Fixed more bugs where incorrect PRU consumption stats were displayed on the frontend + For more information, see https://github.com/github/copilot-cli/issues/351#issuecomment-3423735333 +- Fixed a bug where pasted input content that was backspaced away was still sent to the model +- Improved line wrapping and alignment when rendering file diffs + +## 0.0.346 - 2025-10-19 + +- Fixed a bug where model sourced from configuration file was not accounted for correctly in estimating premium request usage + For more information, see https://github.com/github/copilot-cli/issues/351#issuecomment-3419045411 + +## 0.0.345 - 2025-10-18 + +- Fixed a bug where premium requests were being overcounted for some users (https://github.com/github/copilot-cli/issues/351). If you were affected, we are working on refunding your overcharged premium requests! + +## 0.0.344 - 2025-10-17 + +- Enabled GitHub MCP server in prompt mode +- Added support to the bash tool for executing detached processes +- Added list of supported models as part of `copilot help config` text +- Fixed session abort handling to properly clean up orphaned tool call when pressing Esc or force-quitting +- Enforced minimum Node version requirement at launch +- Simplified messaging for `/terminal-setup` + + +## 0.0.343 - 2025-10-16 + +- ``` + Added new model: + Run slash model to equip + Haiku 4.5. + ``` +- Added a flag to augment MCP server configuration to temporarily add or override server configuration per session: `--additional-mcp-config` (fixes https://github.com/github/copilot-cli/issues/288) + - You can pass MCP server configuration in two ways: + - Inline JSON: `copilot --additional-mcp-config '{"mcpServers": {"my-tool": {...}}}'` + - From a file (prefix with @): `copilot --additional-mcp-config @/path/to/config.json` + - You can also pass the flag multiple times (later values override earlier ones): `copilot --additional-mcp-config @base.json --additional-mcp-config @overrides.json` +- Improved our prompts to ensure the agent uses Windows-style paths on Windows (fixes https://github.com/github/copilot-cli/issues/261) +- Added a prompt for users to run `/terminal-setup` if needed to enable multi-line input +- Various visual improvements: + - Added a shimmer effect to the "Thinking..." indicator + - Removed the box around user messages in the timeline + - Increased the contrast of removed intraline highlights in diffs + - Allow cycling through slash commands (from the bottom of the list back to the top) + - Aligned permission/confirmation prompts to ensure all use the same visual style + + +## 0.0.342 - 2025-10-15 + +- Overhauled our session logging format: + - Introduced a new session logging format that decouples how we store sessions from how we display them in the timeline. The new format is cleaner, more concise, and scalable, and will allow us to more easily implement new features down the line. + - New sessions are stored in `~/.copilot/session-state` + - Legacy sessions are stored in `~/.copilot/history-session-state` -- these will be migrated to the new format & location as you resume them from `copilot --resume` +- Enabled the Kitty protocol by default. Multi-line input is now supported via Shift+Ctrl on terminal that support the Kitty protocol. Multi-line input is also supported in VSCode and its forks by running the `/terminal-setup` command (fixes https://github.com/github/copilot-cli/issues/14) +- Enabled non-interactive GHE logins by respecting the `GH_HOST` environment variable for PAT and `gh` authentication modes (fixes https://github.com/github/copilot-cli/issues/296) +- Improved debug log collection convenience by adding a persistent `log_level` option in `~/.copilot/config`. Possible values: `["none", "error", "warning", "info", "debug", "all", "default"]` +- Added debug logging when calls to `/model` result in Copilot API errors. This should help us diagnose some policy/model access edge cases like https://github.com/github/copilot-cli/issues/268 and https://github.com/github/copilot-cli/issues/116 +- Added `gradlew` to the list of commands whose subcommands can be whitelisted (fixes https://github.com/github/copilot-cli/issues/217#issuecomment-3393844685) +- Fixed a bug where sessions could enter a stuck state after a failed MCP tool call (fixes https://github.com/github/copilot-cli/issues/312) +- Made the output of `--help` text more concise + +## 0.0.341 - 2025-10-14 + +- Added `/terminal-setup` command to set up multi-line input on terminals not implementing the kitty protocol +- Fixed a bug where rejecting an MCP tool call would reject all future tool calls (fixes https://github.com/github/copilot-cli/issues/290) +- Fixed a regression where calling `/model` with an argument did not work properly +- Added each model's premium request multiplier to the `/model` list (currently, all our supported models are 1x) + +## 0.0.340 - 2025-10-13 + +- Removed the "Windows support is experimental" warning -- we've made some big strides in improving Windows support the last two weeks! Please continue to report any issues/feedback +- Improved debugging by including the Copilot API request ID for model calls errors and stack traces for client errors +- Fixed an issue where consecutive orphaned tool calls led to a "Each `tool_use` block must have a corresponding `tool_result` block in the next message" message (fixes https://github.com/github/copilot-cli/issues/102) +- Added a prompt to approve new paths in `-p` mode. Also added `--allow-all-paths` argument that approves access to all paths. +- Changed parsing of environment variables in MCP server configuration to treat the value of the `env` section as literal values (fixes https://github.com/github/copilot-cli/issues/26). + Customers who have configured MCP Servers for use with the CLI will need to make a slight modification to their `~/.copilot/mcp-config.json`. For any servers they have added with an `env` section, they will need to go add a `$` to the start of the "value" pair of the key value pair of each entry in the env-block, so to have the values treated as references to environment variables. + + For example: Before: + ```json + { + "env": { + "GITHUB_ACCESS_TOKEN": "GITHUB_TOKEN" + } + } + ``` + + Before this change, the CLI would read the value of `GITHUB_TOKEN` from the environment of the CLI and set the environment varaible named `GITHUB_ACCESS_TOKEN` in the MCP process to that value. With this change, `GITHUB_ACCESS_TOKEN` would now be set to the literal value `GITHUB_TOKEN`. To get the old behavior, change to this: + + ```json + { + "env": { + "GITHUB_ACCESS_TOKEN": "${GITHUB_TOKEN}" + } + } + ``` + + +## 0.0.339 - 2025-10-10 + +- Improved argument input to MCP servers in `/mcp add` -- previously, users had to use comma-separated syntax to specify arguments. Now, the "Command" field allows users to input the full command to start the server as if they were running it in a shell +- Fixed a bug when using the Kitty protocol that led to text containing `u` to not paste correctly. Kitty protocol support is still behind the `COPILOT_KITTY` environment variable. (Fixes https://github.com/github/copilot-cli/issues/259) +- Fixed a bug when using the Kitty protocol that led to the process hanging in VSCode terminal on Windows. Kitty protocol support is still behind the `COPILOT_KITTY` environment variable. (Fixes https://github.com/github/copilot-cli/issues/257) +- Improved the error handling in the `/model` picker when no models are available (fixes https://github.com/github/copilot-cli/issues/229) + +## 0.0.338 - 2025-10-09 + +- Moved Kitty protocol support behind the `COPILOT_KITTY` environment variable due to observed regressions (https://github.com/github/copilot-cli/issues/257, https://github.com/github/copilot-cli/issues/259) +- Fixed a wrapping issue in multi-line prompts with empty lines + +## 0.0.337 - 2025-10-08 + +- Added validation for MCP server names (fixes https://github.com/github/copilot-cli/issues/110) +- Added support for Ctrl+B and Ctrl+F for moving cursor back and forward (fixes https://github.com/github/copilot-cli/issues/214) +- Added support for multi-line input for terminals that support the [Kitty protocol](https://sw.kovidgoyal.net/kitty/keyboard-protocol/) (partially fixes https://github.com/github/copilot-cli/issues/14 -- broader terminal support coming soon!) +- Updated the OAuth login UI to begin polling as soon as the device code is generated (this will _more solidly_ fix SSH edge-cases as described in https://github.com/github/copilot-cli/issues/89) + +## 0.0.336 - 2025-10-07 + +- Enabled proxy support via HTTPS_PROXY/HTTP_PROXY environment variables regardless of Node version (Fixes https://github.com/github/copilot-cli/issues/41) +- Significantly reduced token consumption, round trips per problem, and time to result. We'll share more specific data in our weekly changelog on Friday! +- Improved file write performances (especially on Windows) by not relying on the shell to fetch the current working directory +- Fixed a bug where `/clear` did not properly reset the context truncation tracking state +- Hid the "Welcome to GitHub Copilot CLI" welcome message on session resumption and `/clear` for a cleaner look +- Improved the alignment of tables where the scrollbar is present +- Improved the output of `--help` by making it more concise +- Added a prompt for users who launch with `--screen-reader` to persistently save this preference +- Potentially improved flickering in some cases; we're still working on this! + +## 0.0.335 - 2025-10-06 + +- Improved visibility into file edits by showing file diffs in the timeline by default, without the need to Ctrl+R +- Improved slash command input by showing argument hints in the input box +- Improved the display of the interface in windows less than 80 columns wide +- Reduced the number of colors and improved the spacing of Markdown rendering +- Added a warning when attempting to use proxy support in an environment where it won't work (Node <24, required environment variables not set) (A more permanent fix for https://github.com/github/copilot-cli/issues/41 is coming ~tomorrow) +- Updated the context truncation message's color from an error color to a warning color +- Fixed a bug where `copilot` logs might not have been properly created on Windows +- Fixed a bug where Powershell users with custom profiles might have had issues running commands (Fixes https://github.com/github/copilot-cli/issues/196) +- Fixed a bug where prompts were truncated after pasting and other edge cases (Fixes https://github.com/github/copilot-cli/issues/208, https://github.com/github/copilot-cli/issues/218) +- Fixed a bug where users would see a login prompt on startup despite being logged in (fixes https://github.com/github/copilot-cli/issues/202) +- Fixed a bug where some SSH users in certain environments were unable to get the OAuth login link and had their processes hang trying to open a browser (fixes https://github.com/github/copilot-cli/issues/89) + +## 0.0.334 - 2025-10-03 + +- Improved the experience of pasting large content: when pasting more than 10 lines, it's displayed as a compact token like `[Paste #1 - 15 lines]` instead of flooding the terminal. +- Added a warning when conversation context approaches ≤20% remaining of the model's limit that truncation will soon occur. At this point, we recommend you begin a new session (improves https://github.com/github/copilot-cli/issues/29) +- Removed the on-exit usage stats from the persisted session history +- Added the current version to startup logs to aid in bug reporting +- Removed cycling through TAB autocomplete items if an argument is present. This prevents running `/cwd /path/to/whatever`, hitting `TAB`, then seeing `/clear` autocomplete + +## 0.0.333 - 2025-10-02 + +- Added image support! `@`-mention files to add them as input to the model. +- Improved proxy support for users on Node.JS v24+. See [this comment](https://github.com/github/copilot-cli/issues/41#issuecomment-3362444262) for more details (Fixes https://github.com/github/copilot-cli/issues/41) +- Added support for directly executing shell commands and bypassing the model by prepending input with `!` (fixes https://github.com/github/copilot-cli/issues/186, https://github.com/github/copilot-cli/issues/12) +- Added `/usage` slash command to provide stats about Premium request usage, session time, code changes, and per-model token use. This information is also printed at the conclusion of a session (Fixes https://github.com/github/copilot-cli/issues/27, https://github.com/github/copilot-cli/issues/121) +- Improved `--screen-reader` mode by replacing icons in the timeline with informative labels +- Added a `--continue` flag to resume the most recently closed session +- Updated the `/clear` command to properly clear old timeline entries/session information (Fixes https://github.com/github/copilot-cli/issues/170) + +## 0.0.332 - 2025-10-01 + +- Switched to using per-subscription Copilot API endpoints in accordance with [GitHub's docs](https://docs.github.com/en/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-access/manage-network-access) (fixes https://github.com/github/copilot-cli/issues/76) +- Fixed a bug where `/user [list | show | swtich]` did not include users signed in from all authentication modes (fixes https://github.com/github/copilot-cli/issues/58) +- Fixed a bug where switching to another user with `/user switch` did not take effect in the GitHub MCP server +- Improved the screenreader experience by disabling the scrollbar in the `@` file picker, the `--resume` session picker, and the `/` command picker +- Improved the polish of the scrollbar container (increased the width, reduced the opacity of the gutter) +- Minor visual improvements to the input area (moved the current model indicator to the right so it's not cramped with the CWD, improved the positioning of the file picker's "indexing" indicator, improved hint formatting in completion menus) +- Improved Markdown legibility by excluding `#` prefixes in headings +- Improved how we extract paths from shell commands for permission handling (might fix https://github.com/github/copilot-cli/issues/159, https://github.com/github/copilot-cli/issues/67) + +## 0.0.331 - 2025-10-01 + +- Improved the information density of file read/edit timeline events +- Fixed an inaccuracy in the `--banner` help text; it previously implied that it would persistently change the configuration to always show the startup banner +- Improved the `/model`s list to ensure that a user only sees models they have access to use -- previously, if a user tries to use a model they do not have access to (because of their Copilot plan, their geographic region, etc), they received a `model_not_supported` error. This should prevent that by not even showing such models as options in the list (Fixes https://github.com/github/copilot-cli/issues/112, https://github.com/github/copilot-cli/issues/85, https://github.com/github/copilot-cli/issues/40) +- Fixed a bug where pressing down arrow in a multi-line prompt would wrap around to the first line (This is on the way to implementing https://github.com/github/copilot-cli/issues/14) +- Added a scrollbar to the `@` file mentioning picker and increased the size of the active buffer to 10 items +- Improved the experience of writing prompts while the agent is running -- up/down arrows will now correctly navigate between options in the `@` and `/` menus + ## 0.0.330 - 2025-09-29 - Changed the default model back to Sonnet 4 since Sonnet 4.5 hasn't rolled out to all users yet. Sonnet 4.5 is still available from the `/model` slash command @@ -15,7 +281,7 @@ - Improved the handling of multi-line inputs in the input box: the input text box is scrollable, limited to 10 lines. Long prompts won't take up the whole screen anymore! (This is on the way to implementing https://github.com/github/copilot-cli/issues/14) - Removed the left and right boarders from the input box. This makes it easier to copy text out of it! - Added glob matching to shell rules. When using `--allow-tool` and `--deny-tool`, you can now specify things like `shell(npm run test:*)` to match any shell commands beginning with `npm run test` -- Improved the `copilot --resume` interface with relative time display, session message count, (Fixes https://github.com/github/copilot-cli/issues/97) +- Improved the `copilot --resume` interface with relative time display, session message count, (Fixes https://github.com/github/copilot-cli/issues/97) ## 0.0.328 - 2025-09-26