René's URL Explorer Experiment


Title: Add automatic context compaction and retry on context errors · Issue #603 · cecli-dev/cecli · GitHub

Open Graph Title: Add automatic context compaction and retry on context errors · Issue #603 · cecli-dev/cecli

X Title: Add automatic context compaction and retry on context errors · Issue #603 · cecli-dev/cecli

Description: Feature Request Add the ability to automatically run context compaction when a context error is returned on a tool call, and then retry the tool call. This should be controlled by a configuration option: enable-context-compaction: true P...

Open Graph Description: Feature Request Add the ability to automatically run context compaction when a context error is returned on a tool call, and then retry the tool call. This should be controlled by a configuration o...

X Description: Feature Request Add the ability to automatically run context compaction when a context error is returned on a tool call, and then retry the tool call. This should be controlled by a configuration o...

Opengraph URL: https://github.com/cecli-dev/cecli/issues/603

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add automatic context compaction and retry on context errors","articleBody":"## Feature Request\n\nAdd the ability to automatically run context compaction when a context error is returned on a tool call, and then retry the tool call. This should be controlled by a configuration option:\n\n```yaml\nenable-context-compaction: true\n```\n\n### Problem\n\nCurrently, when a tool call fails due to a context error (e.g., token limit exceeded), the user must manually compact the context and retry the tool call. This is cumbersome and disrupts workflows.\n\n### Example Error\n\n```\nYour estimated chat context of 267,173 tokens exceeds the 230,000 token limit for openai/agentic!\nResponse parsing error. Model openai/agentic has hit a token limit!\nInput tokens: ~267,173 of 230,000 -- possibly exhausted context window!\nOutput tokens: ~0 of 128,000\nTotal tokens: ~267,173 of 230,000 -- possibly exhausted context window!\n```\n\n### Proposed Solution\n\n1. **Detect Context Errors**: Identify when a tool call fails due to context-related errors (e.g., token limit exceeded).\n2. **Automatic Compaction**: If `enable-context-compaction: true` is set, automatically trigger context compaction.\n3. **Retry Tool Call**: After compaction, retry the failed tool call.\n4. **Configuration**: Add a new configuration option `enable-context-compaction` to control this behavior.\n\n### Expected Behavior\n\nIf `enable-context-compaction: true`, the system should:\n1. Detect the context error.\n2. Run context compaction automatically.\n3. Retry the tool call with the compacted context.\n\n### Acceptance Criteria\n\n- [ ] Detect context errors (e.g., token limit exceeded) during tool calls.\n- [ ] Add `enable-context-compaction` configuration option.\n- [ ] Automatically compact context and retry the tool call if the option is enabled.\n- [ ] Ensure the feature is backward-compatible (disabled by default).\n- [ ] Add tests for the new functionality.\n- [ ] Update documentation to describe the new feature.\n\n### Jira Task\n\nThis issue is aligned with Jira task [CLI-56](https://team-16702636586024.atlassian.net/browse/CLI-56).","author":{"url":"https://github.com/szmania","@type":"Person","name":"szmania"},"datePublished":"2026-07-14T17:49:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/603/cecli/issues/603"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cfb4648c-b396-4b25-7fbf-fce4e1232b41
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD84C:3D3167:451EA0:5AFD3D:6A61527D
html-safe-noncec9556571c282632d8faabb4d715580b94cf913c3b2364c68b9b8ef27e2da2a47
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODRDOjNEMzE2Nzo0NTFFQTA6NUFGRDNEOjZBNjE1MjdEIiwidmlzaXRvcl9pZCI6IjkxNDcwMDQ4NzAxMjE4MzcxODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdb65d1baf844e18211da2ff2c247eaaa2c7fdf3dd326ddf7e8afc89d7e9a57ec
hovercard-subject-tagissue:4885661541
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cecli-dev/cecli/603/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1691e62cb38203c2d32895d7026f76e958a3de001176caa4929f3de98ae3e2a2/cecli-dev/cecli/issues/603
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1691e62cb38203c2d32895d7026f76e958a3de001176caa4929f3de98ae3e2a2/cecli-dev/cecli/issues/603
og:image:altFeature Request Add the ability to automatically run context compaction when a context error is returned on a tool call, and then retry the tool call. This should be controlled by a configuration o...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameszmania
hostnamegithub.com
expected-hostnamegithub.com
None35b919fdb8e6752d2ed95a144e761ca5e924557563e2ed0a5ebf6c4430cdeeb6
turbo-cache-controlno-preview
go-importgithub.com/cecli-dev/cecli git https://github.com/cecli-dev/cecli.git
octolytics-dimension-user_id250452847
octolytics-dimension-user_logincecli-dev
octolytics-dimension-repository_id1030985330
octolytics-dimension-repository_nwocecli-dev/cecli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id638629097
octolytics-dimension-repository_parent_nwoAider-AI/aider
octolytics-dimension-repository_network_root_id638629097
octolytics-dimension-repository_network_root_nwoAider-AI/aider
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1e22b08b60ccb67c3791f565bed248565260e611
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cecli-dev/cecli/issues/603#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcecli-dev%2Fcecli%2Fissues%2F603
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcecli-dev%2Fcecli%2Fissues%2F603
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=cecli-dev%2Fcecli
Reloadhttps://github.com/cecli-dev/cecli/issues/603
Reloadhttps://github.com/cecli-dev/cecli/issues/603
Reloadhttps://github.com/cecli-dev/cecli/issues/603
Please reload this pagehttps://github.com/cecli-dev/cecli/issues/603
cecli-dev https://github.com/cecli-dev
ceclihttps://github.com/cecli-dev/cecli
Aider-AI/aiderhttps://github.com/Aider-AI/aider
Notifications https://github.com/login?return_to=%2Fcecli-dev%2Fcecli
Fork 44 https://github.com/login?return_to=%2Fcecli-dev%2Fcecli
Star 385 https://github.com/login?return_to=%2Fcecli-dev%2Fcecli
Code https://github.com/cecli-dev/cecli
Issues 30 https://github.com/cecli-dev/cecli/issues
Pull requests 9 https://github.com/cecli-dev/cecli/pulls
Actions https://github.com/cecli-dev/cecli/actions
Projects https://github.com/cecli-dev/cecli/projects
Security and quality 0 https://github.com/cecli-dev/cecli/security
Insights https://github.com/cecli-dev/cecli/pulse
Code https://github.com/cecli-dev/cecli
Issues https://github.com/cecli-dev/cecli/issues
Pull requests https://github.com/cecli-dev/cecli/pulls
Actions https://github.com/cecli-dev/cecli/actions
Projects https://github.com/cecli-dev/cecli/projects
Security and quality https://github.com/cecli-dev/cecli/security
Insights https://github.com/cecli-dev/cecli/pulse
Add automatic context compaction and retry on context errorshttps://github.com/cecli-dev/cecli/issues/603#top
https://github.com/szmania
szmaniahttps://github.com/szmania
on Jul 14, 2026https://github.com/cecli-dev/cecli/issues/603#issue-4885661541
CLI-56https://team-16702636586024.atlassian.net/browse/CLI-56
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.