Skip to content

Commit 5998cee

Browse files
Merge branch 'github:main' into main
2 parents f556977 + f42c2cc commit 5998cee

File tree

2 files changed

+234
-9
lines changed

2 files changed

+234
-9
lines changed

changelog.md

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,210 @@
1+
## 1.0.7 - 2026-03-17
2+
3+
- Improve color contrast across CLI themes for better readability and accessibility
4+
- User messages display with a subtle background color for visual differentiation from assistant messages
5+
- Add support for gpt-5.4-mini model
6+
- Tab bar selected tab uses compact [label] style with cleaner spacing
7+
- Add "customize" mode to system message config for section-level system prompt overrides
8+
- Double-Esc clears input when text is present, or triggers undo when the prompt is empty, with a hint shown after the first Esc
9+
- Session resume no longer fails with 'Session file is corrupted' for sessions created before 1.0.6
10+
- Branch indicator distinguishes unstaged changes (\*), staged changes (+), and untracked files (%) in the header
11+
- Add experimental SDK session APIs to list and manage skills, MCP servers, and plugins, with optional config auto-discovery from the working directory
12+
- Add subagentStart hook that fires when a subagent is spawned, with support for injecting additional context into the subagent's prompt
13+
- Pro and trial users now see all models they are entitled to in the model picker
14+
- CLI restart no longer re-sends the -i/--interactive prompt to the new session
15+
- Resolve an edge case where auto-update could leave an incomplete package on Windows
16+
17+
## 1.0.6 - 2026-03-16
18+
19+
- Autopilot continuation no longer gets permanently blocked after an error in a previous turn
20+
- In autopilot, task_complete summary is now required and renders as markdown
21+
- Input placeholder text is no longer read aloud by screen readers on every prompt submission
22+
- Free tree-sitter WASM objects after shell command parsing to prevent memory leak
23+
- /help dialog starts scrolled to the top in alt-screen mode
24+
- Auto-update correctly recovers from race conditions on Windows
25+
- CLI no longer fails to load on Windows after updating while another instance is running
26+
- Reduce memory usage by eliminating redundant environment variable copies per child process spawn
27+
- Remaining requests widget no longer shows inaccurate quota data for Copilot Free users
28+
- Resolve session crashes caused by HTTP/2 connection pool race conditions when sub-agents are active
29+
- CLI loads the latest version of itself after an auto-update
30+
- Kill command validation no longer incorrectly blocks some legitimate commands. e.g. p.kill() in a python script
31+
- Instruction file frontmatter applyTo field accepts both string and array values
32+
- Improve streaming and tool-output memory usage
33+
- Model can discover and use tools dynamically with tool search for Claude models
34+
- Hooks fire correctly when resuming a previous session
35+
- Prompt input in alt screen mode renders all lines without truncation
36+
- Links and right-click paste no longer trigger twice when running in VS Code's integrated terminal
37+
- Hook configuration files now work across VS Code, Claude Code, and the CLI without modification by accepting PascalCase event names alongside camelCase
38+
- Native module prebuilds (e.g., conpty.node on Windows ARM64) load reliably on first launch
39+
- Subagent elapsed time in /tasks view freezes when idle and resumes when active again
40+
- Flags --enable-all-github-mcp-tools, --add-github-mcp-toolset, and --add-github-mcp-tool now take effect when using the SDK (ACP mode)
41+
- Custom instruction file paths load correctly when using COPILOT_CUSTOM_INSTRUCTIONS_DIRS
42+
- Command output is no longer lost when a command causes the shell to exit
43+
- Plugins using .claude-plugin/plugin.json are discovered when loaded via --plugin-dir
44+
- Fix handling of shift+enter on VS Code with old /terminal-setup config.
45+
- Agent creation wizard shows the correct user agents directory path
46+
- Support Open Plugin spec file locations for loading plugin and marketplace manifests
47+
- Show friendlier error messages and provide keyboard shortcut to open event links in browsers
48+
- Extension tools now work with the permissions system, use `skipPermission` per-tool to bypass permission prompts
49+
- Hook config files now support Claude Code's nested matcher/hooks structure and optional type field
50+
- Sub-agents launched by the task tool are assigned human-readable IDs based on their name (e.g., `math-helper-0`) instead of generic `agent-0` identifiers
51+
- The create_pull_request tool now includes the PR URL in its output so the agent can share the direct link
52+
- read_agent output includes inbound messages that triggered each turn in multi-turn agents
53+
- Improve compatibility with the Open Plugins spec: support `.lsp.json`, PascalCase hook event names, `exclusive` path mode, and `:` namespace separator
54+
55+
## 1.0.5 - 2026-03-13
56+
57+
- Terminal title resets to default after running /clear or /new
58+
- Add /extensions command to view, enable, and disable CLI extensions
59+
- @ file mentions now support paths outside the project: absolute paths (@/usr/...), home directory (@~/...), and relative parent paths (@../...)
60+
- Toggling experimental mode with /experimental on|off automatically restarts the CLI to apply changes immediately
61+
- Right-click paste goes to the active dialog input instead of the main conversation input
62+
- Introducing /pr to help create and view PRs, automatically fix CI failures, address review feedback, and resolve merge conflicts
63+
- Block network (UNC) paths to prevent credential leakage via SMB authentication
64+
- Send follow-up messages to background agents with the write_agent tool for multi-turn conversations
65+
- Memory storage errors now indicate when repository doesn't exist or you lack write access
66+
- Show a clear error when a classic Personal Access Token (ghp\_) is set in environment variables instead of silently exiting
67+
- Diff view displays correctly on Windows instead of showing corrupted/overwritten text
68+
- Fix Kitty keyboard protocol escape sequences appearing at shutdown
69+
- Setting claude-sonnet-4.6 as the default model is now preserved correctly
70+
- Plugin uninstall reliably removes files using the stored install path
71+
- Add /version command to display CLI version and check for updates from within the session
72+
- Add experimental embedding-based dynamic retrieval of MCP and skill instructions per turn
73+
- Syntax highlighting in /diff with support for 17 programming languages
74+
- Add preCompact hook to run commands before context compaction starts
75+
- Request ID from the API now appears in the timeline when errors occur after retries are exhausted
76+
- PR descriptions with backtick-formatted code render correctly on Windows/PowerShell
77+
- Show a helpful error message when a file path is passed as a CLI command
78+
- Session reports an authentication error instead of hanging when the token is invalid or expired
79+
- View tool shows partial content for large single-line files (e.g. minified JS, large JSON blobs) instead of empty output
80+
- /changelog supports `last <N>`, `since <version>`, and `summarize` to browse and summarize multiple release notes at once
81+
- Hooks config files that omit the version field are now accepted by the CLI
82+
83+
## 1.0.4 - 2026-03-11
84+
85+
- Add `session.shell.exec` and `session.shell.kill` RPC methods for executing shell commands with streaming stdout/stderr output
86+
- Custom agents from --plugin-dir plugins now load correctly in ACP mode
87+
- Adaptive color engine with dynamic color modes and interactive theme picker. Gracefully degrades on limited-color terminals and Windows
88+
- MCP OAuth re-authentication works reliably when callback port changes or when using Microsoft Entra ID
89+
- Replace /pr open with /pr view [local|web] to view PR status locally or open in browser
90+
- Enables OpenTelemetry instrumentation for observability into agent sessions, LLM calls, and tool executions
91+
- Extensions can now be written as CommonJS modules (extension.cjs)
92+
- Show loaded extensions count in the Environment loaded startup message
93+
- Support disableAllHooks flag to disable all hooks from a configuration file
94+
- Support Azure DevOps repository identification in session logs
95+
- Session export header renders each field on its own line in shared gists
96+
- Auto-update now retries without authentication token on SAML enforcement errors
97+
- Autopilot mode stops continuing after API errors instead of looping indefinitely
98+
- Status line context window percentage no longer inflates across turns by using the last call's input and output tokens instead of cumulative totals
99+
- Kitty keyboard protocol is properly disabled on suspend when using alternate screen
100+
- Only show reasoning headers when it's the only reasoning text available.
101+
- Terminal properly resets when CLI crashes, preventing shell corruption
102+
- /update command automatically restarts to apply updates instead of requiring manual exit
103+
- OAuth authentication now handles Microsoft Entra ID and other OIDC servers reliably with proper resource indicators and refresh token support
104+
- Show individual instruction file names in /instructions picker with [external] labels for injected files
105+
- Path permission dialog offers a one-time approval option in addition to adding the path to the allowed list
106+
- Add --reasoning-effort CLI flag to set reasoning effort level
107+
- Hooks can now request user confirmation before tool execution with 'ask' permission decision
108+
- Add configure-copilot sub-agent for managing MCP servers, custom agents, and skills via the task tool
109+
- Interactive shell initialization no longer times out on slow machines
110+
- Faster shell commands on Windows by skipping PowerShell profile loading
111+
- Improve CLI help documentation to use standard --option=value format and comma-separated list syntax
112+
113+
## 1.0.3 - 2026-03-09
114+
115+
- Enable alternate screen buffer by default for staff users
116+
- Extensions are now available as an experimental feature — ask Copilot to write custom tools and hooks for itself using @github/copilot-sdk
117+
- Document GH_HOST, HTTP_PROXY, HTTPS_PROXY, NO_COLOR, and NO_PROXY environment variables in help
118+
- Read MCP server configuration from .devcontainer/devcontainer.json
119+
- Add --binary-version flag to query the CLI binary version without launching
120+
- Add /restart command to hot restart the CLI while preserving your session
121+
- Background task notifications display in timeline with expandable detail
122+
- Type 'quit' to exit the CLI, in addition to 'exit'
123+
- Add extraKnownMarketplaces repository setting to replace marketplaces
124+
- Add Windows Terminal support to /terminal-setup command
125+
- /reset-allowed-tools now fully undoes /allow-all and re-triggers the autopilot permission dialog
126+
- Improved handling of batched queries in the SQL tool
127+
- Login flow no longer hangs on Ubuntu when system keyring is unresponsive
128+
- Terminal is properly reset when CLI crashes unexpectedly
129+
- Table disables borders in screen reader mode to prevent announcing decorative characters
130+
- MCP servers with non-conforming outputSchema are now accessible
131+
- /plugin update now works for GitHub-installed plugins
132+
- /add-dir directories persist across session changes like /clear and /resume
133+
- Prevent env command from being treated as safe to allow without approval
134+
- Placeholder text color displays correctly when wrapping in narrow terminals
135+
- /plugin update now works with marketplaces defined in project settings
136+
- Retry status messages now display to show progress during server error recovery
137+
- Show loading spinner in diff mode while fetching changes
138+
- Suppress /init suggestion when .github/instructions/ contains instructions
139+
- Rename merge_strategy config to mergeStrategy for consistency
140+
- Suppress unknown field warnings in skill and command frontmatter
141+
- Trust safe sed commands to run without confirmation
142+
143+
## 1.0.2 - 2026-03-06
144+
145+
To commemorate GitHub Copilot CLI reaching general availability last week, we're incrementing the major version to 1.0!
146+
147+
- Type 'exit' as a bare command to close the CLI
148+
- Ask_user form now submits with Enter key and allows custom responses in enum fields
149+
- Support 'command' field as cross-platform alias for bash/powershell in hook configs
150+
- Hook configurations now accept timeout as alias for timeoutSec
151+
- Fix handling of meta with control keys (including shift+enter from /terminal-setup)
152+
153+
## 0.0.423 - 2026-03-06
154+
155+
- Users are prompted for shell commands with potentially dangerous expansion or substitution use cases, additional guardrails for malicious exploits
156+
- Block /share gist for EMU and GHE Cloud users with clear error messaging
157+
- Elicitation enum and boolean fields now require Enter to confirm a selection, with a ✓ indicator for confirmed values vs ❯ for the browsing cursor
158+
- MCP servers can now request users to visit a URL for out-of-band interactions such as OAuth flows or API key entry
159+
- Improve explore agent precision and large repository support with better context sharing
160+
- Diff mode displays cleanly on Windows with CRLF line endings
161+
162+
## 0.0.422 - 2026-03-05
163+
164+
- Display request ID in authentication and authorization error messages to aid troubleshooting
165+
- Load personal hooks from ~/.copilot/hooks in addition to repo-level .github/hooks
166+
- Timeline now shows the question in a box and displays 'Making best guess on autopilot' when ask_user is auto-responded
167+
- Add support for GPT-5.4 model
168+
- Plugin cache automatically recovers from a corrupted or incomplete clone without manual intervention
169+
- Show a clear, actionable error message when git is not installed and a remote plugin or marketplace is used
170+
- Text selection persists after copying to clipboard in alt screen
171+
- Scroll view no longer jumps to earlier messages when scrolling during response streaming or with popups open
172+
- Add copy_on_select config option to auto-copy selected text to clipboard in alt screen mode
173+
- IME candidate windows appear at correct cursor position in CJK input
174+
- Add mouse scroll support to /diff in alt-screen mode
175+
- Reduce memory usage in alt-screen mode for long sessions
176+
- Diff mode now works correctly when git color.diff=always is configured
177+
- Opening links on Windows correctly handles URLs with & query parameters
178+
- @-mention file completion always reflects the current state of the working directory
179+
- ESC key to cancel works correctly in tmux and other non-kitty terminals
180+
- Click in the prompt input to reposition the text cursor
181+
- Add /copy command to copy the last response to clipboard
182+
- Links in alt-screen mode are rendered with underline styling for better visibility
183+
- /delegate prompts for a target remote in multi-remote repositories and clarifies confirmation text
184+
- GitHub MCP server stays enabled in repositories that have both Azure DevOps and GitHub remotes
185+
- Colons in inline code render correctly inside markdown tables
186+
- Pressing Ctrl+C on the help dialog now dismisses it cleanly
187+
- Plugin-contributed LSP servers are now loaded, started, and shown in /lsp show
188+
- Pressing Enter in required enum field now selects the highlighted option
189+
- Hide noisy todo bookkeeping queries and show dependency details in timeline
190+
- CLI no longer hangs for minutes when working in a directory with a large number of files
191+
- Add --output-format json flag to emit JSONL in prompt mode for programmatic integrations
192+
- Add exitPlanMode.request protocol method for SDK plan approval support
193+
- Automatic notifications when background shell commands and agents complete
194+
- GitHub MCP server connection status is accurately tracked and counted in the status indicator
195+
- Press Ctrl+R to search command history with reverse incremental search (like Bash)
196+
- Long diff lines no longer overflow and wrap in the diff view
197+
- Add startup prompt hooks to auto-submit prompts or slash commands when a session starts
198+
- Ctrl+K joins lines when cursor is at end of line, matching standard Emacs/terminal behavior
199+
- Escape sequences split across input chunks no longer leak into text input
200+
- Rename `launch_messages` config setting to `companyAnnouncements`
201+
- Show a waiting message when the terminal is handed to an external editor
202+
- Support enabledPlugins in config for automatic plugin installation at startup
203+
- Improve key bindings in reverse history search: Ctrl+J to accept, Ctrl+G to cancel
204+
- Rename repository config from `.github/copilot/config.json` to `settings.json`
205+
- Support installing plugins from ssh:// URLs
206+
- Session usage metrics (requests, tokens, code changes) are now persisted to events.jsonl after each session ends
207+
1208
## 0.0.421 - 2026-03-03
2209

3210
- Autopilot permission dialog appears on first prompt submission instead of on mode switch

install.sh

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ case "$(uname -m)" in
3434
*) echo "Error: Unsupported architecture $(uname -m)" >&2 ; exit 1 ;;
3535
esac
3636

37+
# Set up authentication for GitHub requests if GITHUB_TOKEN is available
38+
CURL_AUTH=()
39+
WGET_AUTH=()
40+
GIT_REMOTE="https://github.com/github/copilot-cli"
41+
if [ -n "$GITHUB_TOKEN" ]; then
42+
CURL_AUTH=(-H "Authorization: token $GITHUB_TOKEN")
43+
WGET_AUTH=(--header="Authorization: token $GITHUB_TOKEN")
44+
GIT_REMOTE="https://x-access-token:${GITHUB_TOKEN}@github.com/github/copilot-cli"
45+
fi
46+
3747
# Determine download URL based on VERSION
3848
if [ "${VERSION}" = "latest" ] || [ -z "$VERSION" ]; then
3949
DOWNLOAD_URL="https://github.com/github/copilot-cli/releases/latest/download/copilot-${PLATFORM}-${ARCH}.tar.gz"
@@ -44,7 +54,7 @@ elif [ "${VERSION}" = "prerelease" ]; then
4454
echo "Error: git is required to install prerelease versions" >&2
4555
exit 1
4656
fi
47-
VERSION="$(git ls-remote --tags https://github.com/github/copilot-cli | tail -1 | awk -F/ '{print $NF}')"
57+
VERSION="$(git ls-remote --tags "$GIT_REMOTE" | tail -1 | awk -F/ '{print $NF}')"
4858
if [ -z "$VERSION" ]; then
4959
echo "Error: Could not determine prerelease version" >&2
5060
exit 1
@@ -67,9 +77,9 @@ echo "Downloading from: $DOWNLOAD_URL"
6777
TMP_DIR="$(mktemp -d)"
6878
TMP_TARBALL="$TMP_DIR/copilot-${PLATFORM}-${ARCH}.tar.gz"
6979
if command -v curl >/dev/null 2>&1; then
70-
curl -fsSL "$DOWNLOAD_URL" -o "$TMP_TARBALL"
80+
curl -fsSL "${CURL_AUTH[@]}" "$DOWNLOAD_URL" -o "$TMP_TARBALL"
7181
elif command -v wget >/dev/null 2>&1; then
72-
wget -qO "$TMP_TARBALL" "$DOWNLOAD_URL"
82+
wget -qO "$TMP_TARBALL" "${WGET_AUTH[@]}" "$DOWNLOAD_URL"
7383
else
7484
echo "Error: Neither curl nor wget found. Please install one of them."
7585
rm -rf "$TMP_DIR"
@@ -80,9 +90,9 @@ fi
8090
TMP_CHECKSUMS="$TMP_DIR/SHA256SUMS.txt"
8191
CHECKSUMS_AVAILABLE=false
8292
if command -v curl >/dev/null 2>&1; then
83-
curl -fsSL "$CHECKSUMS_URL" -o "$TMP_CHECKSUMS" 2>/dev/null && CHECKSUMS_AVAILABLE=true
93+
curl -fsSL "${CURL_AUTH[@]}" "$CHECKSUMS_URL" -o "$TMP_CHECKSUMS" 2>/dev/null && CHECKSUMS_AVAILABLE=true
8494
elif command -v wget >/dev/null 2>&1; then
85-
wget -qO "$TMP_CHECKSUMS" "$CHECKSUMS_URL" 2>/dev/null && CHECKSUMS_AVAILABLE=true
95+
wget -qO "$TMP_CHECKSUMS" "${WGET_AUTH[@]}" "$CHECKSUMS_URL" 2>/dev/null && CHECKSUMS_AVAILABLE=true
8696
fi
8797

8898
if [ "$CHECKSUMS_AVAILABLE" = true ]; then
@@ -141,11 +151,19 @@ if ! command -v copilot >/dev/null 2>&1; then
141151
echo ""
142152
echo "Notice: $INSTALL_DIR is not in your PATH"
143153

144-
# Detect shell rc file
154+
# Detect shell profile file for PATH
145155
case "$(basename "${SHELL:-/bin/sh}")" in
146-
zsh) RC_FILE="$HOME/.zshrc" ;;
147-
bash) RC_FILE="$HOME/.bashrc" ;;
148-
*) RC_FILE="$HOME/.profile" ;;
156+
zsh) RC_FILE="${ZDOTDIR:-$HOME}/.zprofile" ;;
157+
bash)
158+
if [ -f "$HOME/.bash_profile" ]; then
159+
RC_FILE="$HOME/.bash_profile"
160+
elif [ -f "$HOME/.bash_login" ]; then
161+
RC_FILE="$HOME/.bash_login"
162+
else
163+
RC_FILE="$HOME/.profile"
164+
fi
165+
;;
166+
*) RC_FILE="$HOME/.profile" ;;
149167
esac
150168

151169
# Prompt user to add to shell rc file (only if interactive)

0 commit comments

Comments
 (0)