Skip to content
Merged
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
17 changes: 16 additions & 1 deletion content/copilot/concepts/agents/copilot-cli/chronicle.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,21 @@ You can choose to share individual sessions, giving view-only access to others w

You can manage your session data both locally and on {% data variables.product.prodname_dotcom_the_website %}.

#### Deleting sessions with the `/session` slash command

The simplest way to delete sessions is to use the `/session` slash command in an interactive CLI session.

* `/session delete` deletes the current session and starts a new one in its place.
* `/session delete SESSION-ID` deletes a specific session. This shows a preview first; add `--yes` to confirm, for example `/session delete SESSION-ID --yes`.
* `/session delete-all` deletes all of your local sessions except the current one. Add `--yes` to confirm: `/session delete-all --yes`. Sessions that are in use by another process are skipped.
* `/session prune --older-than DAYS` deletes sessions older than the specified number of days. Add `--dry-run` to preview what would be deleted.

When you delete a session that has been synced to your account, `/session delete` asks whether you also want to delete the synced (remote) copy. Deleting the synced copy also removes the session from your `/chronicle` insights and query results. The `/session delete-all` and `/session prune` subcommands only affect local sessions and do not delete synced data. To remove synced data for those sessions, manually delete it from {% data variables.product.prodname_dotcom_the_website %}.

For the full list of `/session` subcommands, see [AUTOTITLE](/copilot/reference/copilot-cli-reference/cli-command-reference).

#### Deleting session data manually

* **Local data**: To remove data for a particular CLI session locally, delete the relevant session directory from `~/.copilot/session-state/`. To clear all local session data, delete everything under `~/.copilot/session-state/`. After doing this you must manually reindex the session store. See [Reindexing the session store](#reindexing-the-session-store) later in this article. Deleting local files does not affect session data that has been synced to your account. You cannot delete synced data locally.
* **Synced data**: You can delete or hide synced CLI sessions from {% data variables.product.prodname_dotcom_the_website %}. Hiding a session removes it from your session index so it no longer appears in query results. Deleting a session removes it from your session list on {% data variables.product.prodname_dotcom_the_website %}. Deletion applies to CLI, {% data variables.product.prodname_vscode_shortname %}, and {% data variables.copilot.github_copilot_app %} sessions.

Expand All @@ -81,7 +96,7 @@ You can reindex the session store from the session files on disk. Reindexing als
Situations where you might need to reindex include:

* **Indexing old sessions**: If you have old session files on disk that were created before the session store existed, reindexing will populate the session store with data from those sessions.
* **Session deletion**: If you want to delete a session from your history you can delete the session directory and then reindex the session store.
* **Session deletion**: To delete a session from your history, use the `/session delete`, `/session delete-all`, or `/session prune` slash commands. For a synced session, `/session delete` can also remove the synced copy, which removes the session from your `/chronicle` insights.
* **Migrating/recovering sessions**: If you moved your session files to another machine, or restored them from a backup, without also moving/restoring the session store file (`~/.copilot/session-store.db`), you can use the reindex command to recreate the session store.
* **File corruption**: If the session store file (`~/.copilot/session-store.db`) becomes corrupted, or is accidentally deleted, you can recover the session store from the session files.
* **Unexpected termination**: If a session terminates unexpectedly (for example, due to a crash or power loss) before data held in memory has been flushed to the session store you may be able to populate the session store with the missing data if it was written to disk, in the session files, prior to the termination.
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/github-apps/lib/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@
"2022-11-28"
]
},
"sha": "7a0a14cf24805c7efd23fef351bfab80391ec8fb"
"sha": "5dc466be95bd7fefb4103d2455e47dee38365248"
}
14 changes: 12 additions & 2 deletions src/rest/data/fpt-2022-11-28/billing.json
Original file line number Diff line number Diff line change
Expand Up @@ -554,12 +554,17 @@
{
"type": "string",
"name": "budget_type",
"description": "<p>The type of pricing for the budget</p>"
"description": "<p>The type of pricing model used by the budget. Determines how <code>budget_product_sku</code> is interpreted.</p>\n<ul>\n<li><code>BundlePricing</code>: Covers all AI credit SKUs. Set <code>budget_product_sku</code> to <code>ai_credits</code>.</li>\n<li><code>ProductPricing</code>: Covers all SKUs that belong to a product. Set <code>budget_product_sku</code> to a product such as <code>actions</code> or <code>packages</code>.</li>\n<li><code>SkuPricing</code>: Covers a single, specific SKU. Set <code>budget_product_sku</code> to a SKU such as <code>actions_linux</code>.</li>\n</ul>"
},
{
"type": "string",
"name": "budget_product_sku",
"description": "<p>A single product or SKU that will be covered in the budget</p>"
},
{
"type": "string",
"name": "user",
"description": "<p>The username of the user for <code>user</code> scope budgets. This field is required when <code>budget_scope</code> is <code>user</code>.</p>"
}
],
"descriptionHTML": "<p>Creates a new budget for an organization. The authenticated user must be an\norganization admin or billing manager.</p>",
Expand Down Expand Up @@ -994,12 +999,17 @@
{
"type": "string",
"name": "budget_type",
"description": "<p>The type of pricing for the budget</p>"
"description": "<p>The type of pricing model used by the budget. Determines how <code>budget_product_sku</code> is interpreted.</p>\n<ul>\n<li><code>BundlePricing</code>: Covers all AI credit SKUs. Set <code>budget_product_sku</code> to <code>ai_credits</code>.</li>\n<li><code>ProductPricing</code>: Covers all SKUs that belong to a product. Set <code>budget_product_sku</code> to a product such as <code>actions</code> or <code>packages</code>.</li>\n<li><code>SkuPricing</code>: Covers a single, specific SKU. Set <code>budget_product_sku</code> to a SKU such as <code>actions_linux</code>.</li>\n</ul>"
},
{
"type": "string",
"name": "budget_product_sku",
"description": "<p>A single product or SKU that will be covered in the budget</p>"
},
{
"type": "string",
"name": "user",
"description": "<p>The username of the user for <code>user</code> scope budgets.</p>"
}
],
"descriptionHTML": "<p>Updates an existing budget for an organization. The authenticated user must be an organization admin or billing manager.</p>",
Expand Down
7 changes: 5 additions & 2 deletions src/rest/data/fpt-2022-11-28/orgs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5605,8 +5605,11 @@
"status": "deployed",
"deployment_name": "deployment-pod",
"tags": {
"runtime-risk": "sensitive-data"
}
"owning-team": "platform"
},
"runtime_risks": [
"sensitive-data"
]
}
]
},
Expand Down
14 changes: 12 additions & 2 deletions src/rest/data/fpt-2026-03-10/billing.json
Original file line number Diff line number Diff line change
Expand Up @@ -554,12 +554,17 @@
{
"type": "string",
"name": "budget_type",
"description": "<p>The type of pricing for the budget</p>"
"description": "<p>The type of pricing model used by the budget. Determines how <code>budget_product_sku</code> is interpreted.</p>\n<ul>\n<li><code>BundlePricing</code>: Covers all AI credit SKUs. Set <code>budget_product_sku</code> to <code>ai_credits</code>.</li>\n<li><code>ProductPricing</code>: Covers all SKUs that belong to a product. Set <code>budget_product_sku</code> to a product such as <code>actions</code> or <code>packages</code>.</li>\n<li><code>SkuPricing</code>: Covers a single, specific SKU. Set <code>budget_product_sku</code> to a SKU such as <code>actions_linux</code>.</li>\n</ul>"
},
{
"type": "string",
"name": "budget_product_sku",
"description": "<p>A single product or SKU that will be covered in the budget</p>"
},
{
"type": "string",
"name": "user",
"description": "<p>The username of the user for <code>user</code> scope budgets. This field is required when <code>budget_scope</code> is <code>user</code>.</p>"
}
],
"descriptionHTML": "<p>Creates a new budget for an organization. The authenticated user must be an\norganization admin or billing manager.</p>",
Expand Down Expand Up @@ -994,12 +999,17 @@
{
"type": "string",
"name": "budget_type",
"description": "<p>The type of pricing for the budget</p>"
"description": "<p>The type of pricing model used by the budget. Determines how <code>budget_product_sku</code> is interpreted.</p>\n<ul>\n<li><code>BundlePricing</code>: Covers all AI credit SKUs. Set <code>budget_product_sku</code> to <code>ai_credits</code>.</li>\n<li><code>ProductPricing</code>: Covers all SKUs that belong to a product. Set <code>budget_product_sku</code> to a product such as <code>actions</code> or <code>packages</code>.</li>\n<li><code>SkuPricing</code>: Covers a single, specific SKU. Set <code>budget_product_sku</code> to a SKU such as <code>actions_linux</code>.</li>\n</ul>"
},
{
"type": "string",
"name": "budget_product_sku",
"description": "<p>A single product or SKU that will be covered in the budget</p>"
},
{
"type": "string",
"name": "user",
"description": "<p>The username of the user for <code>user</code> scope budgets.</p>"
}
],
"descriptionHTML": "<p>Updates an existing budget for an organization. The authenticated user must be an organization admin or billing manager.</p>",
Expand Down
7 changes: 5 additions & 2 deletions src/rest/data/fpt-2026-03-10/orgs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5591,8 +5591,11 @@
"status": "deployed",
"deployment_name": "deployment-pod",
"tags": {
"runtime-risk": "sensitive-data"
}
"owning-team": "platform"
},
"runtime_risks": [
"sensitive-data"
]
}
]
},
Expand Down
14 changes: 12 additions & 2 deletions src/rest/data/ghec-2022-11-28/billing.json
Original file line number Diff line number Diff line change
Expand Up @@ -739,13 +739,18 @@
{
"type": "string",
"name": "budget_type",
"description": "<p>The type of pricing for the budget</p>",
"description": "<p>The type of pricing model used by the budget. Determines how <code>budget_product_sku</code> is interpreted.</p>\n<ul>\n<li><code>BundlePricing</code>: Covers all AI credit SKUs. Set <code>budget_product_sku</code> to <code>ai_credits</code>.</li>\n<li><code>ProductPricing</code>: Covers all SKUs that belong to a product. Set <code>budget_product_sku</code> to a product such as <code>actions</code> or <code>packages</code>.</li>\n<li><code>SkuPricing</code>: Covers a single, specific SKU. Set <code>budget_product_sku</code> to a SKU such as <code>actions_linux</code>.</li>\n</ul>",
"isRequired": true
},
{
"type": "string",
"name": "budget_product_sku",
"description": "<p>A single product or SKU that will be covered in the budget</p>"
},
{
"type": "string",
"name": "user",
"description": "<p>The username of the user for <code>user</code> scope budgets. This field is required when <code>budget_scope</code> is <code>user</code>.</p>"
}
],
"descriptionHTML": "<p>Creates a new budget for an enterprise. The authenticated user must be an enterprise admin, organization admin, or billing manager of the enterprise.</p>",
Expand Down Expand Up @@ -1172,12 +1177,17 @@
{
"type": "string",
"name": "budget_type",
"description": "<p>The type of pricing for the budget</p>"
"description": "<p>The type of pricing model used by the budget. Determines how <code>budget_product_sku</code> is interpreted.</p>\n<ul>\n<li><code>BundlePricing</code>: Covers all AI credit SKUs. Set <code>budget_product_sku</code> to <code>ai_credits</code>.</li>\n<li><code>ProductPricing</code>: Covers all SKUs that belong to a product. Set <code>budget_product_sku</code> to a product such as <code>actions</code> or <code>packages</code>.</li>\n<li><code>SkuPricing</code>: Covers a single, specific SKU. Set <code>budget_product_sku</code> to a SKU such as <code>actions_linux</code>.</li>\n</ul>"
},
{
"type": "string",
"name": "budget_product_sku",
"description": "<p>A single product or SKU that will be covered in the budget</p>"
},
{
"type": "string",
"name": "user",
"description": "<p>The username of the user for <code>user</code> scope budgets.</p>"
}
],
"descriptionHTML": "<p>Updates an existing budget for an enterprise. The authenticated user must be an enterprise admin, organization admin, or billing manager of the enterprise.</p>",
Expand Down
7 changes: 5 additions & 2 deletions src/rest/data/ghec-2022-11-28/orgs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6235,8 +6235,11 @@
"status": "deployed",
"deployment_name": "deployment-pod",
"tags": {
"runtime-risk": "sensitive-data"
}
"owning-team": "platform"
},
"runtime_risks": [
"sensitive-data"
]
}
]
},
Expand Down
14 changes: 12 additions & 2 deletions src/rest/data/ghec-2026-03-10/billing.json
Original file line number Diff line number Diff line change
Expand Up @@ -739,13 +739,18 @@
{
"type": "string",
"name": "budget_type",
"description": "<p>The type of pricing for the budget</p>",
"description": "<p>The type of pricing model used by the budget. Determines how <code>budget_product_sku</code> is interpreted.</p>\n<ul>\n<li><code>BundlePricing</code>: Covers all AI credit SKUs. Set <code>budget_product_sku</code> to <code>ai_credits</code>.</li>\n<li><code>ProductPricing</code>: Covers all SKUs that belong to a product. Set <code>budget_product_sku</code> to a product such as <code>actions</code> or <code>packages</code>.</li>\n<li><code>SkuPricing</code>: Covers a single, specific SKU. Set <code>budget_product_sku</code> to a SKU such as <code>actions_linux</code>.</li>\n</ul>",
"isRequired": true
},
{
"type": "string",
"name": "budget_product_sku",
"description": "<p>A single product or SKU that will be covered in the budget</p>"
},
{
"type": "string",
"name": "user",
"description": "<p>The username of the user for <code>user</code> scope budgets. This field is required when <code>budget_scope</code> is <code>user</code>.</p>"
}
],
"descriptionHTML": "<p>Creates a new budget for an enterprise. The authenticated user must be an enterprise admin, organization admin, or billing manager of the enterprise.</p>",
Expand Down Expand Up @@ -1172,12 +1177,17 @@
{
"type": "string",
"name": "budget_type",
"description": "<p>The type of pricing for the budget</p>"
"description": "<p>The type of pricing model used by the budget. Determines how <code>budget_product_sku</code> is interpreted.</p>\n<ul>\n<li><code>BundlePricing</code>: Covers all AI credit SKUs. Set <code>budget_product_sku</code> to <code>ai_credits</code>.</li>\n<li><code>ProductPricing</code>: Covers all SKUs that belong to a product. Set <code>budget_product_sku</code> to a product such as <code>actions</code> or <code>packages</code>.</li>\n<li><code>SkuPricing</code>: Covers a single, specific SKU. Set <code>budget_product_sku</code> to a SKU such as <code>actions_linux</code>.</li>\n</ul>"
},
{
"type": "string",
"name": "budget_product_sku",
"description": "<p>A single product or SKU that will be covered in the budget</p>"
},
{
"type": "string",
"name": "user",
"description": "<p>The username of the user for <code>user</code> scope budgets.</p>"
}
],
"descriptionHTML": "<p>Updates an existing budget for an enterprise. The authenticated user must be an enterprise admin, organization admin, or billing manager of the enterprise.</p>",
Expand Down
7 changes: 5 additions & 2 deletions src/rest/data/ghec-2026-03-10/orgs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6221,8 +6221,11 @@
"status": "deployed",
"deployment_name": "deployment-pod",
"tags": {
"runtime-risk": "sensitive-data"
}
"owning-team": "platform"
},
"runtime_risks": [
"sensitive-data"
]
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion src/rest/lib/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@
]
}
},
"sha": "7a0a14cf24805c7efd23fef351bfab80391ec8fb"
"sha": "5dc466be95bd7fefb4103d2455e47dee38365248"
}
18 changes: 18 additions & 0 deletions src/webhooks/data/fpt/check_suite.child-params.json
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,15 @@
"write"
]
},
{
"type": "string",
"name": "drives",
"description": "",
"enum": [
"read",
"write"
]
},
{
"type": "string",
"name": "emails",
Expand Down Expand Up @@ -2010,6 +2019,15 @@
"write"
]
},
{
"type": "string",
"name": "drives",
"description": "",
"enum": [
"read",
"write"
]
},
{
"type": "string",
"name": "emails",
Expand Down
18 changes: 18 additions & 0 deletions src/webhooks/data/ghec/check_suite.child-params.json
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,15 @@
"write"
]
},
{
"type": "string",
"name": "drives",
"description": "",
"enum": [
"read",
"write"
]
},
{
"type": "string",
"name": "emails",
Expand Down Expand Up @@ -2010,6 +2019,15 @@
"write"
]
},
{
"type": "string",
"name": "drives",
"description": "",
"enum": [
"read",
"write"
]
},
{
"type": "string",
"name": "emails",
Expand Down
Loading
Loading