Skip to content

[bot] Document Copilot CLI v1.0.15 features in Learning Hub#1258

Merged
aaronpowell merged 1 commit intostagedfrom
learning-hub/copilot-cli-v1.0.15-updates-b034b93b6c15850d
Apr 1, 2026
Merged

[bot] Document Copilot CLI v1.0.15 features in Learning Hub#1258
aaronpowell merged 1 commit intostagedfrom
learning-hub/copilot-cli-v1.0.15-updates-b034b93b6c15850d

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Apr 1, 2026

What's New

Based on Copilot CLI releases from the past 7 days (v1.0.13–v1.0.15, March 27–April 1, 2026), the following new features were found and documented:

New features found

  1. postToolUseFailure hook event (v1.0.15) — New lifecycle event that fires when a tool call fails. postToolUse now only fires on successful tool calls. This is a behavioral change that could affect existing hooks.
  2. /share html command (v1.0.15) — Export sessions and research reports as self-contained interactive HTML files.
  3. /mcp auth command (v1.0.15) — Re-authentication UI for MCP OAuth servers with account switching support, usable without restarting a session.
  4. Device code flow for MCP OAuth (v1.0.15) — RFC 8628 fallback authentication for headless and CI environments.
  5. MCP config RPCs (v1.0.15) — mcp.config.list, mcp.config.add, mcp.config.update, and mcp.config.remove server RPCs for programmatic management of persistent MCP server configuration.

Sections updated

File Changes
automating-with-hooks.md Updated events table: postToolUse now marked as success-only; added postToolUseFailure row. Added practical example with migration note.
understanding-mcp-servers.md Expanded Authentication section with /mcp auth and device code flow entries. Added new "Managing Persistent MCP Configuration via Server RPCs" section with RPC reference table.
copilot-configuration-basics.md Added /share html command to the CLI Session Commands section.

Source announcements

Generated by Learning Hub Updater ·

- Add postToolUseFailure hook event to automating-with-hooks.md:
  clarify that postToolUse now only fires on success, add new event
  to the events table, and add a practical example with migration note
- Add /mcp auth command and device code flow (RFC 8628) to
  understanding-mcp-servers.md authentication section
- Add mcp.config.list/add/update/remove server RPCs section to
  understanding-mcp-servers.md
- Add /share html command to copilot-configuration-basics.md CLI
  Session Commands section
- Update lastUpdated dates to 2026-04-01

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aaronpowell aaronpowell marked this pull request as ready for review April 1, 2026 23:03
Copilot AI review requested due to automatic review settings April 1, 2026 23:03
@aaronpowell aaronpowell merged commit 5f3d66c into staged Apr 1, 2026
@aaronpowell aaronpowell deleted the learning-hub/copilot-cli-v1.0.15-updates-b034b93b6c15850d branch April 1, 2026 23:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents recent GitHub Copilot CLI (v1.0.13–v1.0.15) changes in the Learning Hub, focusing on new CLI commands, MCP authentication/config management, and updated hook lifecycle semantics.

Changes:

  • Updates hook event documentation to reflect postToolUse as success-only and adds postToolUseFailure, including a migration note/example.
  • Expands MCP server documentation with device-code OAuth fallback, /mcp auth, and a new section describing persistent MCP config RPCs.
  • Adds /share html documentation to session commands.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
website/src/content/docs/learning-hub/understanding-mcp-servers.md Adds MCP auth updates and documents new persistent MCP config RPCs.
website/src/content/docs/learning-hub/copilot-configuration-basics.md Documents /share html session export behavior.
website/src/content/docs/learning-hub/automating-with-hooks.md Updates hook lifecycle events and adds a tool-failure handling example.

/share html
```

The exported file contains everything needed to view the session without a network connection and can be shared with teammates or stored for later reference. This complements `/share` (which shares via URL) for cases where an offline or attached format is preferred.
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/share is referenced as “shares via URL”, but this doc doesn’t define /share anywhere, and it conflicts with the Learning Hub “CLI for beginners” guide (which describes /share as exporting to markdown/GitHub gist). Please either document /share in this section and align the description, or reword this sentence to avoid making a potentially incorrect claim about /share’s behavior.

Suggested change
The exported file contains everything needed to view the session without a network connection and can be shared with teammates or stored for later reference. This complements `/share` (which shares via URL) for cases where an offline or attached format is preferred.
The exported file contains everything needed to view the session without a network connection and can be shared with teammates or stored for later reference. This is useful when you want an offline or easily attachable format.

Copilot uses AI. Check for mistakes.
Comment on lines +104 to +105
In addition to file-based configuration, GitHub Copilot CLI exposes **server RPCs** that let MCP servers and tooling scripts manage the persistent MCP server registry at runtime. This enables programmatic setup — for example, an installer script that registers a server without requiring you to hand-edit a JSON file.

Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section introduces a “persistent MCP server registry” managed via RPCs, but earlier the page states MCP servers are configured per-workspace and lists a file-based load order. Please clarify where this persistent configuration is stored and how it interacts with/overrides file-based configuration (including precedence), so readers can predict which server definition will be used.

Suggested change
In addition to file-based configuration, GitHub Copilot CLI exposes **server RPCs** that let MCP servers and tooling scripts manage the persistent MCP server registry at runtime. This enables programmatic setup — for example, an installer script that registers a server without requiring you to hand-edit a JSON file.
In addition to per-workspace, file-based configuration, GitHub Copilot CLI exposes **server RPCs** that let MCP servers and tooling scripts manage a **persistent MCP server registry** at runtime. This registry is stored in the Copilot CLI user configuration (not in your workspace) and is shared across all workspaces for that user on the machine. It enables programmatic setup — for example, an installer script that registers a server without requiring you to hand-edit a JSON file.
At startup, Copilot first loads MCP servers from the workspace configuration files in the order described above, then merges in any servers from the persistent registry that do not already exist in the workspace configuration. If a server with the same name is defined both in a workspace config file and in the persistent registry, **the workspace (file-based) definition takes precedence**, and the persistent entry is ignored for that server.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants