diff --git a/content/copilot/concepts/agents/copilot-cli/chronicle.md b/content/copilot/concepts/agents/copilot-cli/chronicle.md index 6ab22d2fec1d..75d8fe50455f 100644 --- a/content/copilot/concepts/agents/copilot-cli/chronicle.md +++ b/content/copilot/concepts/agents/copilot-cli/chronicle.md @@ -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. @@ -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. diff --git a/package-lock.json b/package-lock.json index 78eeb331c049..763df7ccb4fb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1731,9 +1731,9 @@ } }, "node_modules/@grpc/grpc-js": { - "version": "1.14.3", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.14.3.tgz", - "integrity": "sha512-Iq8QQQ/7X3Sac15oB6p0FmUg/klxQvXLeileoqrTRGJYLV+/9tubbr9ipz0GKHjmXVsgFPo/+W+2cA8eNcR+XA==", + "version": "1.14.4", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.14.4.tgz", + "integrity": "sha512-k9Dj3DV/itK9D06Y8f190Qgop7/Ui+D0njFV3LHMPwPT75DpXLQohE9Wmz0QElrJnzsjB7KPWiKJbOl7IPDArQ==", "license": "Apache-2.0", "dependencies": { "@grpc/proto-loader": "^0.8.0", diff --git a/src/github-apps/lib/config.json b/src/github-apps/lib/config.json index 8a89152da10d..0717ea7a7c22 100644 --- a/src/github-apps/lib/config.json +++ b/src/github-apps/lib/config.json @@ -60,5 +60,5 @@ "2022-11-28" ] }, - "sha": "7a0a14cf24805c7efd23fef351bfab80391ec8fb" + "sha": "5dc466be95bd7fefb4103d2455e47dee38365248" } \ No newline at end of file diff --git a/src/rest/data/fpt-2022-11-28/billing.json b/src/rest/data/fpt-2022-11-28/billing.json index be90931a3448..27724aac0797 100644 --- a/src/rest/data/fpt-2022-11-28/billing.json +++ b/src/rest/data/fpt-2022-11-28/billing.json @@ -554,12 +554,17 @@ { "type": "string", "name": "budget_type", - "description": "

The type of pricing for the budget

" + "description": "

The type of pricing model used by the budget. Determines how budget_product_sku is interpreted.

\n" }, { "type": "string", "name": "budget_product_sku", "description": "

A single product or SKU that will be covered in the budget

" + }, + { + "type": "string", + "name": "user", + "description": "

The username of the user for user scope budgets. This field is required when budget_scope is user.

" } ], "descriptionHTML": "

Creates a new budget for an organization. The authenticated user must be an\norganization admin or billing manager.

", @@ -994,12 +999,17 @@ { "type": "string", "name": "budget_type", - "description": "

The type of pricing for the budget

" + "description": "

The type of pricing model used by the budget. Determines how budget_product_sku is interpreted.

\n" }, { "type": "string", "name": "budget_product_sku", "description": "

A single product or SKU that will be covered in the budget

" + }, + { + "type": "string", + "name": "user", + "description": "

The username of the user for user scope budgets.

" } ], "descriptionHTML": "

Updates an existing budget for an organization. The authenticated user must be an organization admin or billing manager.

", diff --git a/src/rest/data/fpt-2022-11-28/orgs.json b/src/rest/data/fpt-2022-11-28/orgs.json index a8195a45e8f0..18dc2598da9b 100644 --- a/src/rest/data/fpt-2022-11-28/orgs.json +++ b/src/rest/data/fpt-2022-11-28/orgs.json @@ -5605,8 +5605,11 @@ "status": "deployed", "deployment_name": "deployment-pod", "tags": { - "runtime-risk": "sensitive-data" - } + "owning-team": "platform" + }, + "runtime_risks": [ + "sensitive-data" + ] } ] }, diff --git a/src/rest/data/fpt-2026-03-10/billing.json b/src/rest/data/fpt-2026-03-10/billing.json index be90931a3448..27724aac0797 100644 --- a/src/rest/data/fpt-2026-03-10/billing.json +++ b/src/rest/data/fpt-2026-03-10/billing.json @@ -554,12 +554,17 @@ { "type": "string", "name": "budget_type", - "description": "

The type of pricing for the budget

" + "description": "

The type of pricing model used by the budget. Determines how budget_product_sku is interpreted.

\n" }, { "type": "string", "name": "budget_product_sku", "description": "

A single product or SKU that will be covered in the budget

" + }, + { + "type": "string", + "name": "user", + "description": "

The username of the user for user scope budgets. This field is required when budget_scope is user.

" } ], "descriptionHTML": "

Creates a new budget for an organization. The authenticated user must be an\norganization admin or billing manager.

", @@ -994,12 +999,17 @@ { "type": "string", "name": "budget_type", - "description": "

The type of pricing for the budget

" + "description": "

The type of pricing model used by the budget. Determines how budget_product_sku is interpreted.

\n" }, { "type": "string", "name": "budget_product_sku", "description": "

A single product or SKU that will be covered in the budget

" + }, + { + "type": "string", + "name": "user", + "description": "

The username of the user for user scope budgets.

" } ], "descriptionHTML": "

Updates an existing budget for an organization. The authenticated user must be an organization admin or billing manager.

", diff --git a/src/rest/data/fpt-2026-03-10/orgs.json b/src/rest/data/fpt-2026-03-10/orgs.json index d7f9da2475a5..a80ca244852d 100644 --- a/src/rest/data/fpt-2026-03-10/orgs.json +++ b/src/rest/data/fpt-2026-03-10/orgs.json @@ -5591,8 +5591,11 @@ "status": "deployed", "deployment_name": "deployment-pod", "tags": { - "runtime-risk": "sensitive-data" - } + "owning-team": "platform" + }, + "runtime_risks": [ + "sensitive-data" + ] } ] }, diff --git a/src/rest/data/ghec-2022-11-28/billing.json b/src/rest/data/ghec-2022-11-28/billing.json index d17da217dd28..12a2f889e1d3 100644 --- a/src/rest/data/ghec-2022-11-28/billing.json +++ b/src/rest/data/ghec-2022-11-28/billing.json @@ -739,13 +739,18 @@ { "type": "string", "name": "budget_type", - "description": "

The type of pricing for the budget

", + "description": "

The type of pricing model used by the budget. Determines how budget_product_sku is interpreted.

\n", "isRequired": true }, { "type": "string", "name": "budget_product_sku", "description": "

A single product or SKU that will be covered in the budget

" + }, + { + "type": "string", + "name": "user", + "description": "

The username of the user for user scope budgets. This field is required when budget_scope is user.

" } ], "descriptionHTML": "

Creates a new budget for an enterprise. The authenticated user must be an enterprise admin, organization admin, or billing manager of the enterprise.

", @@ -1172,12 +1177,17 @@ { "type": "string", "name": "budget_type", - "description": "

The type of pricing for the budget

" + "description": "

The type of pricing model used by the budget. Determines how budget_product_sku is interpreted.

\n" }, { "type": "string", "name": "budget_product_sku", "description": "

A single product or SKU that will be covered in the budget

" + }, + { + "type": "string", + "name": "user", + "description": "

The username of the user for user scope budgets.

" } ], "descriptionHTML": "

Updates an existing budget for an enterprise. The authenticated user must be an enterprise admin, organization admin, or billing manager of the enterprise.

", diff --git a/src/rest/data/ghec-2022-11-28/orgs.json b/src/rest/data/ghec-2022-11-28/orgs.json index 2743fa96dd66..b2132e08f22f 100644 --- a/src/rest/data/ghec-2022-11-28/orgs.json +++ b/src/rest/data/ghec-2022-11-28/orgs.json @@ -6235,8 +6235,11 @@ "status": "deployed", "deployment_name": "deployment-pod", "tags": { - "runtime-risk": "sensitive-data" - } + "owning-team": "platform" + }, + "runtime_risks": [ + "sensitive-data" + ] } ] }, diff --git a/src/rest/data/ghec-2026-03-10/billing.json b/src/rest/data/ghec-2026-03-10/billing.json index d17da217dd28..12a2f889e1d3 100644 --- a/src/rest/data/ghec-2026-03-10/billing.json +++ b/src/rest/data/ghec-2026-03-10/billing.json @@ -739,13 +739,18 @@ { "type": "string", "name": "budget_type", - "description": "

The type of pricing for the budget

", + "description": "

The type of pricing model used by the budget. Determines how budget_product_sku is interpreted.

\n", "isRequired": true }, { "type": "string", "name": "budget_product_sku", "description": "

A single product or SKU that will be covered in the budget

" + }, + { + "type": "string", + "name": "user", + "description": "

The username of the user for user scope budgets. This field is required when budget_scope is user.

" } ], "descriptionHTML": "

Creates a new budget for an enterprise. The authenticated user must be an enterprise admin, organization admin, or billing manager of the enterprise.

", @@ -1172,12 +1177,17 @@ { "type": "string", "name": "budget_type", - "description": "

The type of pricing for the budget

" + "description": "

The type of pricing model used by the budget. Determines how budget_product_sku is interpreted.

\n" }, { "type": "string", "name": "budget_product_sku", "description": "

A single product or SKU that will be covered in the budget

" + }, + { + "type": "string", + "name": "user", + "description": "

The username of the user for user scope budgets.

" } ], "descriptionHTML": "

Updates an existing budget for an enterprise. The authenticated user must be an enterprise admin, organization admin, or billing manager of the enterprise.

", diff --git a/src/rest/data/ghec-2026-03-10/orgs.json b/src/rest/data/ghec-2026-03-10/orgs.json index e420119d5ba0..0ed3da7defdf 100644 --- a/src/rest/data/ghec-2026-03-10/orgs.json +++ b/src/rest/data/ghec-2026-03-10/orgs.json @@ -6221,8 +6221,11 @@ "status": "deployed", "deployment_name": "deployment-pod", "tags": { - "runtime-risk": "sensitive-data" - } + "owning-team": "platform" + }, + "runtime_risks": [ + "sensitive-data" + ] } ] }, diff --git a/src/rest/lib/config.json b/src/rest/lib/config.json index 7c4673a81a64..16a368fae000 100644 --- a/src/rest/lib/config.json +++ b/src/rest/lib/config.json @@ -47,5 +47,5 @@ ] } }, - "sha": "7a0a14cf24805c7efd23fef351bfab80391ec8fb" + "sha": "5dc466be95bd7fefb4103d2455e47dee38365248" } \ No newline at end of file diff --git a/src/webhooks/data/fpt/check_suite.child-params.json b/src/webhooks/data/fpt/check_suite.child-params.json index fbd5bd86286c..273f056f1ecf 100644 --- a/src/webhooks/data/fpt/check_suite.child-params.json +++ b/src/webhooks/data/fpt/check_suite.child-params.json @@ -1126,6 +1126,15 @@ "write" ] }, + { + "type": "string", + "name": "drives", + "description": "", + "enum": [ + "read", + "write" + ] + }, { "type": "string", "name": "emails", @@ -2010,6 +2019,15 @@ "write" ] }, + { + "type": "string", + "name": "drives", + "description": "", + "enum": [ + "read", + "write" + ] + }, { "type": "string", "name": "emails", diff --git a/src/webhooks/data/ghec/check_suite.child-params.json b/src/webhooks/data/ghec/check_suite.child-params.json index fbd5bd86286c..273f056f1ecf 100644 --- a/src/webhooks/data/ghec/check_suite.child-params.json +++ b/src/webhooks/data/ghec/check_suite.child-params.json @@ -1126,6 +1126,15 @@ "write" ] }, + { + "type": "string", + "name": "drives", + "description": "", + "enum": [ + "read", + "write" + ] + }, { "type": "string", "name": "emails", @@ -2010,6 +2019,15 @@ "write" ] }, + { + "type": "string", + "name": "drives", + "description": "", + "enum": [ + "read", + "write" + ] + }, { "type": "string", "name": "emails", diff --git a/src/webhooks/data/ghes-3.17/check_suite.child-params.json b/src/webhooks/data/ghes-3.17/check_suite.child-params.json index fbd5bd86286c..273f056f1ecf 100644 --- a/src/webhooks/data/ghes-3.17/check_suite.child-params.json +++ b/src/webhooks/data/ghes-3.17/check_suite.child-params.json @@ -1126,6 +1126,15 @@ "write" ] }, + { + "type": "string", + "name": "drives", + "description": "", + "enum": [ + "read", + "write" + ] + }, { "type": "string", "name": "emails", @@ -2010,6 +2019,15 @@ "write" ] }, + { + "type": "string", + "name": "drives", + "description": "", + "enum": [ + "read", + "write" + ] + }, { "type": "string", "name": "emails", diff --git a/src/webhooks/data/ghes-3.18/check_suite.child-params.json b/src/webhooks/data/ghes-3.18/check_suite.child-params.json index fbd5bd86286c..273f056f1ecf 100644 --- a/src/webhooks/data/ghes-3.18/check_suite.child-params.json +++ b/src/webhooks/data/ghes-3.18/check_suite.child-params.json @@ -1126,6 +1126,15 @@ "write" ] }, + { + "type": "string", + "name": "drives", + "description": "", + "enum": [ + "read", + "write" + ] + }, { "type": "string", "name": "emails", @@ -2010,6 +2019,15 @@ "write" ] }, + { + "type": "string", + "name": "drives", + "description": "", + "enum": [ + "read", + "write" + ] + }, { "type": "string", "name": "emails", diff --git a/src/webhooks/data/ghes-3.19/check_suite.child-params.json b/src/webhooks/data/ghes-3.19/check_suite.child-params.json index fbd5bd86286c..273f056f1ecf 100644 --- a/src/webhooks/data/ghes-3.19/check_suite.child-params.json +++ b/src/webhooks/data/ghes-3.19/check_suite.child-params.json @@ -1126,6 +1126,15 @@ "write" ] }, + { + "type": "string", + "name": "drives", + "description": "", + "enum": [ + "read", + "write" + ] + }, { "type": "string", "name": "emails", @@ -2010,6 +2019,15 @@ "write" ] }, + { + "type": "string", + "name": "drives", + "description": "", + "enum": [ + "read", + "write" + ] + }, { "type": "string", "name": "emails", diff --git a/src/webhooks/data/ghes-3.20/check_suite.child-params.json b/src/webhooks/data/ghes-3.20/check_suite.child-params.json index fbd5bd86286c..273f056f1ecf 100644 --- a/src/webhooks/data/ghes-3.20/check_suite.child-params.json +++ b/src/webhooks/data/ghes-3.20/check_suite.child-params.json @@ -1126,6 +1126,15 @@ "write" ] }, + { + "type": "string", + "name": "drives", + "description": "", + "enum": [ + "read", + "write" + ] + }, { "type": "string", "name": "emails", @@ -2010,6 +2019,15 @@ "write" ] }, + { + "type": "string", + "name": "drives", + "description": "", + "enum": [ + "read", + "write" + ] + }, { "type": "string", "name": "emails", diff --git a/src/webhooks/data/ghes-3.21/check_suite.child-params.json b/src/webhooks/data/ghes-3.21/check_suite.child-params.json index fbd5bd86286c..273f056f1ecf 100644 --- a/src/webhooks/data/ghes-3.21/check_suite.child-params.json +++ b/src/webhooks/data/ghes-3.21/check_suite.child-params.json @@ -1126,6 +1126,15 @@ "write" ] }, + { + "type": "string", + "name": "drives", + "description": "", + "enum": [ + "read", + "write" + ] + }, { "type": "string", "name": "emails", @@ -2010,6 +2019,15 @@ "write" ] }, + { + "type": "string", + "name": "drives", + "description": "", + "enum": [ + "read", + "write" + ] + }, { "type": "string", "name": "emails", diff --git a/src/webhooks/lib/config.json b/src/webhooks/lib/config.json index 41fbabdbaad3..2b0ac818fce4 100644 --- a/src/webhooks/lib/config.json +++ b/src/webhooks/lib/config.json @@ -1,3 +1,3 @@ { - "sha": "7a0a14cf24805c7efd23fef351bfab80391ec8fb" + "sha": "5dc466be95bd7fefb4103d2455e47dee38365248" } \ No newline at end of file