Skip to content

Context limit and pruning updates #6668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jul 18, 2025
Merged

Conversation

RomneyDa
Copy link
Collaborator

@RomneyDa RomneyDa commented Jul 17, 2025

Description

Builds on @Jazzcort's work to make context status more visible to the user

  • Small context indicator next to enter button for >50% context filled
  • Tooltip shows percentage, newsession option
  • turns red when pruning is happening
image

Summary by cubic

Improved context limit handling by updating pruning logic and adding clearer UI feedback when chat history exceeds model limits.

  • UI Updates
    • Added a context status indicator showing how full the context window is and when pruning occurs.
    • Replaced old warning messages with a simpler inline error for out-of-context inputs.
  • Core Changes
    • Switched to a boolean didPrune and percentage-based context tracking instead of status strings.
    • Updated Redux state and thunks to support new context and pruning indicators.

@RomneyDa RomneyDa requested a review from a team as a code owner July 17, 2025 01:13
@RomneyDa RomneyDa requested review from sestinj and removed request for a team July 17, 2025 01:13
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jul 17, 2025
Copy link

⚠️ Conventional Commit Format

Your latest commit message doesn't follow the conventional commit format, but this won't block your PR from being merged. We recommend downloading this extension if you are using VS Code.

Expected Format:

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Examples:

  • feat: add changelog generation support
  • fix: resolve login redirect issue
  • docs: update README with new instructions
  • chore: update dependencies

Valid Types:

feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert

This helps with:

  • 📝 Automatic changelog generation
  • 🚀 Automated semantic versioning
  • 📊 Better project history tracking

This is a non-blocking warning - your PR can still be merged without fixing this.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cubic found 1 issue across 10 files. Review it in cubic.dev

React with 👍 or 👎 to teach cubic. Tag @cubic-dev-ai to give specific feedback.

@chezsmithy
Copy link
Contributor

@RomneyDa perfect. Great minds!

@Jazzcort
Copy link
Contributor

@RomneyDa Looking great! Thanks for cleaning up some mess I left in #4816. 😁

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Jul 18, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 18, 2025
@tomasz-stefaniak tomasz-stefaniak merged commit 8b5cd29 into main Jul 18, 2025
43 checks passed
@tomasz-stefaniak tomasz-stefaniak deleted the dallin/pruning-updates branch July 18, 2025 17:37
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Jul 18, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jul 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants