Skip to content

[bot] docs: Update Learning Hub for Copilot CLI v1.0.11/v1.0.12 features#1208

Merged
aaronpowell merged 2 commits intostagedfrom
learning-hub-updates-march-2026-d460fee7eeb0dfed
Mar 30, 2026
Merged

[bot] docs: Update Learning Hub for Copilot CLI v1.0.11/v1.0.12 features#1208
aaronpowell merged 2 commits intostagedfrom
learning-hub-updates-march-2026-d460fee7eeb0dfed

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

What's new

Updates the Learning Hub to document recent GitHub Copilot CLI releases (v1.0.11, March 23 and v1.0.12, March 26, 2026).


New features/changes found

Feature Release Source
/rewind command and double-Esc timeline picker — roll back to any point in conversation history v1.0.12 (2026-03-26) Release notes
/allow-all now supports on, off, show subcommands v1.0.12 (2026-03-26) Release notes
.claude/settings.json and .claude/settings.local.json as additional repo config sources v1.0.12 (2026-03-26) Release notes
Plugin hooks receive CLAUDE_PROJECT_DIR and CLAUDE_PLUGIN_DATA env variables + \{\{project_dir}}/\{\{plugin_data_dir}} template variables v1.0.12 (2026-03-26) Release notes
preCompact hook event v1.0.5 (2026-03-13) Release notes — was missing from the Learning Hub

Pages updated

website/src/content/docs/learning-hub/copilot-configuration-basics.md

  • Added /rewind command description with usage notes (rolls back conversation + file changes to any earlier point; also triggered by double-Esc)
  • Added /allow-all on/off/show subcommands to the CLI Session Commands section
  • Added a note about .claude/settings.json and .claude/settings.local.json as per-repo config sources (Claude Code compatibility)
  • Updated lastUpdated to 2026-03-28

website/src/content/docs/learning-hub/automating-with-hooks.md

  • Added preCompact hook event to the Hook Events table (fires before context window compaction)
  • Added new Plugin Hooks Environment Variables subsection documenting CLAUDE_PROJECT_DIR, CLAUDE_PLUGIN_DATA, \{\{project_dir}}, and \{\{plugin_data_dir}}
  • Updated lastUpdated to 2026-03-28

Sources

Generated by Learning Hub Updater ·

Add documentation for new features released in the past 7 days:

- /rewind command and double-Esc timeline picker (v1.0.12)
- /allow-all on/off/show subcommands (v1.0.12)
- .claude/settings.json and .claude/settings.local.json as additional
  repo config sources (v1.0.12)
- preCompact hook event in the events table (v1.0.5, previously missing)
- Plugin hooks CLAUDE_PROJECT_DIR and CLAUDE_PLUGIN_DATA env variables
  and {{project_dir}}/{{plugin_data_dir}} template variables (v1.0.12)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aaronpowell aaronpowell marked this pull request as ready for review March 30, 2026 00:51
@aaronpowell aaronpowell self-requested a review as a code owner March 30, 2026 00:51
Copilot AI review requested due to automatic review settings March 30, 2026 00:51
@aaronpowell aaronpowell merged commit 819a8fa into staged Mar 30, 2026
7 checks passed
@aaronpowell aaronpowell deleted the learning-hub-updates-march-2026-d460fee7eeb0dfed branch March 30, 2026 00:53
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

Updates Learning Hub documentation to reflect recent GitHub Copilot CLI (v1.0.11/v1.0.12) capabilities, especially around session controls and hooks/plugin behaviors.

Changes:

  • Documented the new /rewind session timeline picker and updated /allow-all subcommands/notes.
  • Added preCompact hook event and expanded documentation for plugin hook environment/template variables.
  • Refreshed article metadata (lastUpdated) for the updated Learning Hub pages.

Reviewed changes

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

File Description
website/src/content/docs/learning-hub/copilot-configuration-basics.md Adds /rewind, clarifies /allow-all subcommands, and documents additional per-repo config sources.
website/src/content/docs/learning-hub/automating-with-hooks.md Adds preCompact and documents plugin hook env/template variables for portable hook scripts.

Comment on lines +127 to +150
### Plugin Hooks Environment Variables

When hooks are defined inside a **plugin**, the hook scripts receive two additional environment variables automatically:

| Variable | Description |
|----------|-------------|
| `CLAUDE_PROJECT_DIR` | The path to the current project (working) directory |
| `CLAUDE_PLUGIN_DATA` | The path to a persistent data directory scoped to the plugin |

You can also use these as **template variables** directly in the `bash` or `powershell` fields of your `hooks.json` configuration:

```json
{
"version": 1,
"hooks": {
"sessionStart": [
{
"type": "command",
"bash": "{{plugin_data_dir}}/scripts/init.sh --project {{project_dir}}",
"timeoutSec": 10
}
]
}
}
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

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

This new “Plugin Hooks Environment Variables” section duplicates the existing “Plugin Hook Environment Variables” section later in the same doc (around line ~360) with slightly different wording/examples. Please consolidate into a single section (and keep one heading/name) to avoid the docs diverging over time.

Suggested change
### Plugin Hooks Environment Variables
When hooks are defined inside a **plugin**, the hook scripts receive two additional environment variables automatically:
| Variable | Description |
|----------|-------------|
| `CLAUDE_PROJECT_DIR` | The path to the current project (working) directory |
| `CLAUDE_PLUGIN_DATA` | The path to a persistent data directory scoped to the plugin |
You can also use these as **template variables** directly in the `bash` or `powershell` fields of your `hooks.json` configuration:
```json
{
"version": 1,
"hooks": {
"sessionStart": [
{
"type": "command",
"bash": "{{plugin_data_dir}}/scripts/init.sh --project {{project_dir}}",
"timeoutSec": 10
}
]
}
}

Copilot uses AI. Check for mistakes.
Comment on lines +419 to +420
The `/rewind` command opens a timeline picker that lets you roll back the conversation to any earlier point in history, reverting both the conversation and any file changes made after that point. You can also trigger it by pressing **double-Esc**:

Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

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

The section intro says Copilot CLI has “two commands” for managing session state (referring to /new and /clear), but this change adds /rewind immediately after. Consider updating the wording and/or the command table so /rewind is discoverable and the section stays internally consistent.

See below for a potential fix:

GitHub Copilot CLI has several commands for managing session state, with distinct behaviours:

| Command | Behaviour |
|---------|-----------|
| `/new [prompt]` | Starts a fresh conversation while keeping the current session backgrounded. You can switch back to backgrounded sessions. |
| `/clear [prompt]` | Abandons the current session entirely and starts a new one. Backgrounded sessions are not affected. |
| `/rewind` | Opens a timeline picker that lets you roll back the conversation to any earlier point in history, reverting both the conversation and any file changes made after that point. Also available via **double-Esc**. |
| `/undo` | Reverts the last turn—including any file changes the agent made—so you can course-correct without manually undoing edits. |

The `/new` and `/clear` commands accept an optional prompt argument to seed the new session with an opening message, for example `/new Add error handling to the login flow`.

Copilot uses AI. Check for mistakes.
```

Path permissions granted via `/allow-all` persist across `/clear`, so if you've granted access to a directory in one session, that access carries into the new session.
> **Note**: `/allow-all on` permissions persist after `/clear` starts a new session, so you don't need to re-enable it each time.
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

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

/allow-all on permissions persist…” is ambiguous about what persists (autopilot mode itself vs previously granted directory/tool permissions). Please clarify what persists across /clear and what the scope is (e.g., per-session vs per-repo).

Suggested change
> **Note**: `/allow-all on` permissions persist after `/clear` starts a new session, so you don't need to re-enable it each time.
> **Note**: `/allow-all on` enables autopilot mode for the current terminal session. When you run `/clear`, the new session in that terminal inherits the same allow-all setting (autopilot stays on), but any previously granted directory- or tool-specific confirmations do not carry over. Use `/allow-all off` to disable autopilot for that session.

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