Title: Context clearing and terminal tools - GitHub Docs
Open Graph Title: Context clearing and terminal tools - GitHub Docs
X Title: Context clearing and terminal tools - GitHub Docs
Description: Use session.history.clearContext when a host needs to replace the current conversation context without replacing the session. Typical uses include handoffs and host-managed context lifecycle policies.
X Description: Use session.history.clearContext when a host needs to replace the current conversation context without replacing the session. Typical uses include handoffs and host-managed context lifecycle policies.
Opengraph URL: https://docs-internal.github.com/en/copilot/how-tos/copilot-sdk/features/context-management
Domain: docs.github.com
| google-site-verification | c1kuD-K2HIVF635lypcsWPoD4kilo5-jA_wBFyT4uMY |
| path-language | en |
| path-version | free-pro-team@latest |
| path-product | copilot |
| path-article | copilot/how-tos/copilot-sdk/features/context-management |
| page-content-type | how-tos |
| page-document-type | article |
| status | 200 |
| og:site_name | GitHub Docs |
| og:type | article |
| og:image | https://docs.github.com/assets/cb-345/images/social-cards/copilot.png |
| twitter:card | summary |
| twitter:domain | docs-internal.github.com |
| twitter:url | https://docs-internal.github.com/en/copilot/how-tos/copilot-sdk/features/context-management |
| twitter:image | https://docs.github.com/assets/cb-345/images/social-cards/copilot.png |
Links:
Viewport: width=device-width, initial-scale=1