How automatic compaction works, why a fresh chat beats a long one, and what happens to messages and output that do not fit.
Context is everything the model can see at once: your messages, its replies, every step row, the
files it read, the snapshots it took. It is finite, and a busy chat fills it faster than you
would expect. One slide review with two snapshots costs more than a dozen typed sentences.
Automatic compaction
You do not have to manage this. When a chat gets close to full, Pretty compresses the earlier
part of the conversation into a summary and carries on.
A Compacted divider in the transcript. Everything above it now exists only as that summary. Open it to read what was kept.
A message reads Compacting… while the compression runs, then settles into Compacted,
holding the summary.Pretty can also compact deliberately rather than waiting to be forced. That turn shows a
Summarizing step. It happens when the conversation has grown long, or when you ask
for it directly.
Compaction is lossy by design. Specifics from before the divider (an exact figure you pasted,
the precise wording you asked for) may not survive it. If a detail still matters after a
compaction, say it again.
If compaction itself fails, the message reads “Compaction failed”.
Why long chats get worse
Three things happen at once as a chat grows:
Old work crowds out new. The slide you built an hour ago is still taking up room.
Summaries stack on summaries. Each compaction is a step further from what you actually said.
Stale instructions linger. A constraint you gave for slide 2 is still in scope for slide 20.
The fix is New Chat.
One chat per topic. New deck, new chat; new section of a deck, new chat. You lose nothing. The
old chat stays in All chats, and your slides live in the deck, not the conversation.
If a chat does hit the ceiling, you get: “This chat has grown too large to continue — usually
from many steps or large attachments. Please start a new chat to keep going.”
Queued messages
Send a message while a turn is still running and it is held, marked Queued, and sent when the
current turn finishes.Three controls sit on the queued card:
Control
What it does
Edit
Takes the message off the queue and puts it back in the box to change.
Send now
Stops the running turn and sends this message straight away.
Dismiss
Throws the queued message away.
Queuing lets you type a correction the moment you spot it mid-run instead of holding it in your
head. Be aware the agent has not seen it yet, so it will keep going down its current path until
the turn ends.
Truncated output
A step that produces a lot of output does not push all of it into the context. The row shows
“Output truncated” with a caption, “Full output saved to …/tool-output.txt”, and the complete result
is written to a file in your workspace.That path is usable. You can ask Pretty to read or search the file, which keeps the bulk out of
the conversation while the detail stays available:
Grep the saved output for rows where the region is EMEA and show mejust those.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Pretty","description":"Documentation for Pretty in PowerPoint and through MCP.","colors":{"primary":"#4d92db","light":"#6ba6e6","dark":"#3b7cc0"},"logo":{"light":"https://mintcdn.com/pretty/dsMPAb5R_rxOhIR-/logo/light.svg?fit=max\u0026auto=format\u0026n=dsMPAb5R_rxOhIR-\u0026q=85\u0026s=aa09bf1dc3b59ede7321ea68fa3df7e3","dark":"https://mintcdn.com/pretty/dsMPAb5R_rxOhIR-/logo/dark.svg?fit=max\u0026auto=format\u0026n=dsMPAb5R_rxOhIR-\u0026q=85\u0026s=2c741f67fee43f7beb705436bd5c1386","href":"https://make-pretty.com"},"favicon":"https://mintcdn.com/pretty/dsMPAb5R_rxOhIR-/favicon.svg?fit=max\u0026auto=format\u0026n=dsMPAb5R_rxOhIR-\u0026q=85\u0026s=715a087250d152981eb60431437fa6cf","appearance":{"default":"light"},"navbar":{"links":[{"href":"mailto:support@make-pretty.com","label":"Support"}],"primary":{"type":"button","label":"Install the add-in","href":"https://marketplace.microsoft.com/en-us/product/WA200010901"}},"search":{"prompt":"Search the Pretty docs..."},"seo":{"metatags":{"og:site_name":"Pretty Docs","twitter:card":"summary_large_image"},"indexing":"navigable"},"fonts":{"family":"Geist"},"thumbnails":{"appearance":"light","background":"https://mintcdn.com/pretty/okpvxqjqDMNsMXAu/images/og-background.jpg?fit=max\u0026auto=format\u0026n=okpvxqjqDMNsMXAu\u0026q=85\u0026s=14ffd035bdd88313bc5aac02daf64d8c"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Web editor","icon":"browser","href":"https://editor.make-pretty.com"},{"anchor":"Support","icon":"life-ring","href":"mailto:support@make-pretty.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pretty","hasAudioNarration":false,"actualSubdomain":"pretty","customDomains":["docs.make-pretty.com"],"gitSource":{"type":"github","owner":"make-pretty","repo":"pretty-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af38545343f209299353e80","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"Documentation","count":35},{"language":"default","tag":"Support","count":6},{"language":"default","tag":"Chat","count":5},{"language":"default","tag":"Building slides","count":5},{"language":"default","tag":"Assets","count":4},{"language":"default","tag":"Get started","count":4},{"language":"default","tag":"Workspace admin","count":3},{"language":"default","tag":"Customize","count":3},{"language":"default","tag":"Reference","count":3},{"language":"default","tag":"MCP","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"chat/context","slug":"/chat/context","pageMetadata":{"title":"Context and compaction","description":"How automatic compaction works, why a fresh chat beats a long one, and what happens to messages and output that do not fit.","icon":"gauge","href":"/chat/context"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"How automatic compaction works, why a fresh chat beats a long one, and what happens to messages and output that do not fit.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,OptimizedImage,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Context is everything the model can see at once: your messages, its replies, every step row, the\nfiles it read, the snapshots it took. It is finite, and a busy chat fills it faster than you\nwould expect. One slide review with two snapshots costs more than a dozen typed sentences.`}),`\n`,_jsx(Heading,{level:`2`,id:`automatic-compaction`,children:`Automatic compaction`}),`\n`,_jsx(_components.p,{children:`You do not have to manage this. When a chat gets close to full, Pretty compresses the earlier\npart of the conversation into a summary and carries on.`}),`\n`,_jsx(Frame,{caption:`A Compacted divider in the transcript. Everything above it now exists only as that summary. Open it to read what was kept.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/pretty/AolTsLIDSZTnCk8e/images/chat-compaction.png?fit=max\u0026auto=format\u0026n=AolTsLIDSZTnCk8e\u0026q=85\u0026s=50be477ca7d49755ec51aab38cb7baff`,alt:`Chat transcript with a Compacted divider between two messages`,\"data-og-width\":`1220`,width:`1220`,\"data-og-height\":`509`,height:`509`,\"data-path\":`images/chat-compaction.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/pretty/AolTsLIDSZTnCk8e/images/chat-compaction.png?w=280\u0026fit=max\u0026auto=format\u0026n=AolTsLIDSZTnCk8e\u0026q=85\u0026s=0fa4afc9e041d8c5824937d8dfd8593c 280w, https://mintcdn.com/pretty/AolTsLIDSZTnCk8e/images/chat-compaction.png?w=560\u0026fit=max\u0026auto=format\u0026n=AolTsLIDSZTnCk8e\u0026q=85\u0026s=2a5880d8aa17b3fdfdf3ce0c5234d597 560w, https://mintcdn.com/pretty/AolTsLIDSZTnCk8e/images/chat-compaction.png?w=840\u0026fit=max\u0026auto=format\u0026n=AolTsLIDSZTnCk8e\u0026q=85\u0026s=0be59dcf7dd041ed2e75914789957028 840w, https://mintcdn.com/pretty/AolTsLIDSZTnCk8e/images/chat-compaction.png?w=1100\u0026fit=max\u0026auto=format\u0026n=AolTsLIDSZTnCk8e\u0026q=85\u0026s=851cd5a998981341cf5c02e770711941 1100w, https://mintcdn.com/pretty/AolTsLIDSZTnCk8e/images/chat-compaction.png?w=1650\u0026fit=max\u0026auto=format\u0026n=AolTsLIDSZTnCk8e\u0026q=85\u0026s=b129f3c0b165b61c1e84c4f43166fe2c 1650w, https://mintcdn.com/pretty/AolTsLIDSZTnCk8e/images/chat-compaction.png?w=2500\u0026fit=max\u0026auto=format\u0026n=AolTsLIDSZTnCk8e\u0026q=85\u0026s=e0913a668bcb8138fbdb867db950b70f 2500w`})}),`\n`,_jsxs(_components.p,{children:[`A message reads `,_jsx(_components.strong,{children:`Compacting…`}),` while the compression runs, then settles into `,_jsx(_components.strong,{children:`Compacted`}),`,\nholding the summary.`]}),`\n`,_jsxs(_components.p,{children:[`Pretty can also compact deliberately rather than waiting to be forced. That turn shows a\n`,_jsx(_components.strong,{children:`Summarizing`}),` step. It happens when the conversation has grown long, or when you ask\nfor it directly.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Compaction is lossy by design. Specifics from before the divider (an exact figure you pasted,\nthe precise wording you asked for) may not survive it. If a detail still matters after a\ncompaction, say it again.`})}),`\n`,_jsxs(_components.p,{children:[`If compaction itself fails, the message reads `,_jsx(_components.em,{children:`“Compaction failed”`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`why-long-chats-get-worse`,children:`Why long chats get worse`}),`\n`,_jsx(_components.p,{children:`Three things happen at once as a chat grows:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Old work crowds out new.`}),` The slide you built an hour ago is still taking up room.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Summaries stack on summaries.`}),` Each compaction is a step further from what you actually said.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Stale instructions linger.`}),` A constraint you gave for slide 2 is still in scope for slide 20.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The fix is `,_jsx(_components.strong,{children:`New Chat`}),`.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`One chat per topic. New deck, new chat; new section of a deck, new chat. You lose nothing. The\nold chat stays in `,_jsx(_components.strong,{children:`All chats`}),`, and your slides live in the deck, not the conversation.`]})}),`\n`,_jsxs(_components.p,{children:[`If a chat does hit the ceiling, you get: `,_jsx(_components.em,{children:`“This chat has grown too large to continue — usually\nfrom many steps or large attachments. Please start a new chat to keep going.”`})]}),`\n`,_jsx(Heading,{level:`2`,id:`queued-messages`,children:`Queued messages`}),`\n`,_jsxs(_components.p,{children:[`Send a message while a turn is still running and it is held, marked `,_jsx(_components.strong,{children:`Queued`}),`, and sent when the\ncurrent turn finishes.`]}),`\n`,_jsx(_components.p,{children:`Three controls sit on the queued card:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Control`}),_jsx(_components.th,{children:`What it does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Edit`})}),_jsx(_components.td,{children:`Takes the message off the queue and puts it back in the box to change.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Send now`})}),_jsx(_components.td,{children:`Stops the running turn and sends this message straight away.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Dismiss`})}),_jsx(_components.td,{children:`Throws the queued message away.`})]})]})]}),`\n`,_jsx(_components.p,{children:`Queuing lets you type a correction the moment you spot it mid-run instead of holding it in your\nhead. Be aware the agent has not seen it yet, so it will keep going down its current path until\nthe turn ends.`}),`\n`,_jsx(Heading,{level:`2`,id:`truncated-output`,children:`Truncated output`}),`\n`,_jsxs(_components.p,{children:[`A step that produces a lot of output does not push all of it into the context. The row shows\n`,_jsx(_components.em,{children:`“Output truncated”`}),` with a caption, `,_jsx(_components.em,{children:`“Full output saved to …/tool-output.txt”`}),`, and the complete result\nis written to a file in your workspace.`]}),`\n`,_jsx(_components.p,{children:`That path is usable. You can ask Pretty to read or search the file, which keeps the bulk out of\nthe conversation while the detail stays available:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Grep the saved output for rows where the region is EMEA and show me`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`just those.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Context and compaction","description":"How automatic compaction works, why a fresh chat beats a long one, and what happens to messages and output that do not fit.","icon":"gauge","href":"/chat/context"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Automatic compaction","slug":"automatic-compaction","depth":2,"children":[]},{"title":"Why long chats get worse","slug":"why-long-chats-get-worse","depth":2,"children":[]},{"title":"Queued messages","slug":"queued-messages","depth":2,"children":[]},{"title":"Truncated output","slug":"truncated-output","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/pretty/aa80ddda050667a9/tips-demos.js"],"subdomain":"pretty","siteName":"Pretty","title":"Context and compaction - Pretty","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T18:14:11.952Z","originalFileLocation":"chat/context.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"How automatic compaction works, why a fresh chat beats a long one, and what happens to messages and output that do not fit.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Pretty\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pretty/KslwB_NMpYd3KFdk/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/pretty/KslwB_NMpYd3KFdk/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pretty/KslwB_NMpYd3KFdk/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pretty/KslwB_NMpYd3KFdk/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pretty/KslwB_NMpYd3KFdk/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pretty/KslwB_NMpYd3KFdk/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pretty/KslwB_NMpYd3KFdk/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pretty/KslwB_NMpYd3KFdk/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pretty/KslwB_NMpYd3KFdk/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Context and compaction - Pretty\">\u003cmeta data-mint-head property=\"og:description\" content=\"How automatic compaction works, why a fresh chat beats a long one, and what happens to messages and output that do not fit.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Pretty Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.make-pretty.com/chat/context\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pretty.mintlify.site/_mintlify/api/og/v2?division=Chat\u0026amp;title=Context+and+compaction\u0026amp;description=How+automatic+compaction+works%2C+why+a+fresh+chat+beats+a+long+one%2C+and+what+happens+to+messages+and+output+that+do+not+fit.\u0026amp;theme=23252d2cb637203b8d31ac1b\u0026amp;signature=5cb4dc5aa3e5b627319bbfe5319ceb3f642e5087148dc9681109c0b156f606e9\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Context and compaction - Pretty\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How automatic compaction works, why a fresh chat beats a long one, and what happens to messages and output that do not fit.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pretty.mintlify.site/_mintlify/api/og/v2?division=Chat\u0026amp;title=Context+and+compaction\u0026amp;description=How+automatic+compaction+works%2C+why+a+fresh+chat+beats+a+long+one%2C+and+what+happens+to+messages+and+output+that+do+not+fit.\u0026amp;theme=23252d2cb637203b8d31ac1b\u0026amp;signature=5cb4dc5aa3e5b627319bbfe5319ceb3f642e5087148dc9681109c0b156f606e9\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/pretty/KslwB_NMpYd3KFdk/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Pretty\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4d92db\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.make-pretty.com/chat/context\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/chat/context.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.make-pretty.com/#organization\",\"name\":\"Pretty\",\"url\":\"https://docs.make-pretty.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pretty/dsMPAb5R_rxOhIR-/logo/light.svg?fit=max\u0026auto=format\u0026n=dsMPAb5R_rxOhIR-\u0026q=85\u0026s=aa09bf1dc3b59ede7321ea68fa3df7e3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.make-pretty.com#website\",\"name\":\"Pretty\",\"url\":\"https://docs.make-pretty.com\",\"publisher\":{\"@id\":\"https://docs.make-pretty.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.make-pretty.com/chat/context#webpage\",\"url\":\"https://docs.make-pretty.com/chat/context\",\"name\":\"Context and compaction\",\"description\":\"How automatic compaction works, why a fresh chat beats a long one, and what happens to messages and output that do not fit.\",\"dateModified\":\"2026-11-03T18:14:11.952Z\",\"isPartOf\":{\"@id\":\"https://docs.make-pretty.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.make-pretty.com/chat/context#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.make-pretty.com/chat/context#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Chat\",\"item\":\"https://docs.make-pretty.com/chat/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Context and compaction\",\"item\":\"https://docs.make-pretty.com/chat/context\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.make-pretty.com/chat/context#article\",\"headline\":\"Context and compaction\",\"name\":\"Context and compaction\",\"description\":\"How automatic compaction works, why a fresh chat beats a long one, and what happens to messages and output that do not fit.\",\"url\":\"https://docs.make-pretty.com/chat/context\",\"mainEntityOfPage\":{\"@id\":\"https://docs.make-pretty.com/chat/context#webpage\"},\"dateModified\":\"2026-11-03T18:14:11.952Z\",\"publisher\":{\"@id\":\"https://docs.make-pretty.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.make-pretty.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Pretty\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Pretty\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/chat/context.md","siteName":"Pretty","nav":{"global":{"anchors":[{"anchor":"Web editor","icon":"browser","href":"https://editor.make-pretty.com"},{"anchor":"Support","icon":"life-ring","href":"mailto:support@make-pretty.com"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Get started","pages":[{"title":"Pretty for PowerPoint","sidebarTitle":"Introduction","icon":"sparkles","href":""},{"title":"Install the add-in","icon":"download","href":"/get-started/install"},{"title":"Tour the task pane","icon":"sidebar","href":"/get-started/task-pane"},{"title":"Cheatsheet","icon":"lightbulb","href":"/get-started/cheatsheet"}]},{"group":"Design systems","pages":[{"title":"Create a design system","icon":"palette","href":"/design-systems/create"},{"title":"Review and improve a design system","icon":"wand-magic-sparkles","href":"/design-systems/review"}]},{"group":"Customize","pages":[{"title":"Components","icon":"puzzle-piece","href":"/components/overview"},{"title":"Slide pools","icon":"layer-group","href":"/slide-pools/overview"},{"title":"Skills","icon":"slash","href":"/skills/overview"}]},{"group":"Chat","pages":[{"title":"Chatting with Pretty","icon":"message","href":"/chat/overview"},{"title":"Referencing your work","icon":"paperclip","href":"/chat/references"},{"title":"Choosing a model","description":"The model picker, what the capability marks and the EU badge mean, and which models your workspace offers.","icon":"microchip","href":"/chat/models"},{"title":"Context and compaction","icon":"gauge","href":"/chat/context"},{"title":"Managing chats","description":"Start, find and branch conversations, rewind a message, revert a slide, and tell us how an answer went.","icon":"comments","href":"/chat/managing-chats"}]},{"group":"MCP","pages":[{"title":"Pretty MCP","icon":"plug","href":"/mcp/overview"},{"title":"Connect an AI client","icon":"plug","href":"/mcp/connect"},{"title":"MCP tool reference","icon":"code","href":"/mcp/tools"}]},{"group":"Building slides","pages":[{"title":"Draft a full deck","icon":"presentation","href":"/slides/full-deck"},{"title":"Screenshot or sketch to slide","icon":"image","href":"/slides/screenshot-to-slide"},{"title":"Editing existing slides","icon":"pen-to-square","href":"/slides/editing"},{"title":"Charts and data","icon":"chart-column","href":"/slides/charts"},{"title":"Research and sources","icon":"magnifying-glass","href":"/slides/research"}]},{"group":"Assets","pages":[{"title":"Assets","icon":"shapes","href":"/assets/overview"},{"title":"Icons","icon":"icons","href":"/assets/icons"},{"title":"Logos","icon":"trademark","href":"/assets/logos"},{"title":"Maps","icon":"map","href":"/assets/maps"}]},{"group":"Reference","pages":[{"title":"Preferences","icon":"sliders","href":"/help/preferences"},{"title":"What the steps mean","icon":"list-check","href":"/help/tools"},{"title":"Security and privacy","icon":"shield-check","href":"/help/security"}]},{"group":"Support","pages":[{"title":"Troubleshooting","icon":"wrench","href":"/help/troubleshooting"},{"title":"Error messages","icon":"circle-exclamation","href":"/errors/overview"},{"title":"AI provider rejected the request","icon":"file-circle-exclamation","href":"/errors/ai-request-rejected"},{"title":"AI provider overloaded","icon":"cloud-exclamation","href":"/errors/ai-provider-overloaded"},{"title":"AI service isn't available","icon":"plug-circle-xmark","href":"/errors/ai-provider-unreachable"},{"title":"Support","icon":"life-ring","href":"/help/support"}]}]},{"tab":"Workspace admin","pages":[{"title":"Workspace admin","href":"/admin/members"}]}]},"basePath":"","title":"Context and compaction - Pretty","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-CUYDhsh7.js","DynamicMarkdown-D8KwOkxZ.js","zoom-image-lightbox-lceUjs6n.js","lightbox-handle-r17bVUz3.js"]}