Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions website/src/content/docs/learning-hub/automating-with-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,17 @@ You can also use these as **template variables** directly in the `bash` or `powe

This makes it straightforward to write plugin hooks that are portable across machines and projects without hardcoding paths.

### OpenTelemetry Trace Context (v1.0.81+)

Hooks can now receive the current OpenTelemetry trace context so their work can be correlated with the session's telemetry spans. Hook inputs gain a `traceparent` field (plus `tracestate` when the active span carries vendor-specific state), and command hooks also receive these as environment variables:

| Variable | Description |
|----------|-------------|
| `TRACEPARENT` | The W3C Trace Context `traceparent` header value for the current span |
| `TRACESTATE` | The W3C Trace Context `tracestate` header value, when present |

This lets hook scripts emit their own OpenTelemetry spans as children of the session's trace, making it possible to see hook execution alongside tool calls and model requests in your observability backend.

### Event Configuration

Hooks support two types: `"command"` for running local shell scripts, and `"http"` for sending JSON payloads to a URL.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,17 @@ copilot plugin uninstall my-plugin

### Enabling and Disabling Plugin Components

*(v1.0.76+)* The `/plugins` command (or `copilot plugin list` in non-interactive mode) now includes **enable/disable toggles** for individual plugin components. You can turn off specific agents, instructions, hooks, LSP servers, or entire plugins without uninstalling them:
*(v1.0.81+)* The former `/plugins` command has been replaced by the **plugins dashboard**, now available to everyone via `/plugin`, `/mcp`, or `/skills` — there is no separate `/plugins` command anymore. Each entry point opens the same dashboard, scoped to the relevant resource type:

```
/plugins
/plugin
```

This opens an interactive list where each installed plugin and its components are shown with a toggle. Disabling a component hides it from Copilot without removing it from disk — useful for temporarily deactivating a hook that is too noisy, or turning off a plugin's instructions when working on a different type of project. Re-enable the component at any time from the same `/plugins` menu.
This opens an interactive list where each installed plugin and its components are shown with a toggle so you can turn off specific agents, instructions, hooks, or entire plugins without uninstalling them. Disabling a component hides it from Copilot without removing it from disk — useful for temporarily deactivating a hook that is too noisy, or turning off a plugin's instructions when working on a different type of project. Re-enable the component at any time from the same dashboard.

> **Note**: Enabling and disabling hooks and LSP servers directly is temporarily unavailable — those toggles previously lived only in the removed `/plugins` dashboard.

The dashboard also flags installed plugins and marketplaces that have a newer version upstream, with an **Update** action to pull it directly from the list.

### Loading Plugins from a Local Directory

Expand Down
Loading