Skip to content

Conversation

jguoamz
Copy link
Contributor

@jguoamz jguoamz commented Sep 22, 2025

Problem

Solution

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jguoamz jguoamz force-pushed the slidingWindow branch 3 times, most recently from c34b0fb to e31a621 Compare September 22, 2025 19:41
@codecov-commenter
Copy link

codecov-commenter commented Sep 22, 2025

Codecov Report

❌ Patch coverage is 90.47619% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.17%. Comparing base (fab073c) to head (ccf2b70).
⚠️ Report is 1 commits behind head on feature/historyV2.

Files with missing lines Patch % Lines
...nguage-server/agenticChat/agenticChatController.ts 71.42% 2 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##           feature/historyV2    #2312   +/-   ##
==================================================
  Coverage              60.17%   60.17%           
==================================================
  Files                    256      256           
  Lines                  57054    56982   -72     
  Branches                3499     3496    -3     
==================================================
- Hits                   34332    34291   -41     
+ Misses                 22656    22625   -31     
  Partials                  66       66           
Flag Coverage Δ
unittests 60.17% <90.47%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jguoamz jguoamz marked this pull request as ready for review September 22, 2025 21:06
@jguoamz jguoamz requested a review from a team as a code owner September 22, 2025 21:06
// Compaction
// Maximum number of characters per request used for compaction prompt
// 200K tokens * 3.5 = 700K characters, intentionally overestimating with 3.5:1 ratio
export const MAX_OVERALL_CHARACTERS = 700_000
Copy link
Contributor

Choose a reason for hiding this comment

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

Not related to this change but just curious: In case we introduce more new models in the future, and the models might have different limits, we need to change this to a model -> maxChar map?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes


// 1. Make sure the length of the history messages don't exceed MaxConversationHistoryMessages
let allMessages = this.getMessages(tabId, maxConversationHistoryMessages)
let allMessages = this.getMessages(tabId)
Copy link
Contributor

Choose a reason for hiding this comment

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

Just to confirm, this returns all the messages across different conversationIds under the tabId? Can you double check if there's a limitation on the number of messages included under history? I don't really remember why we had MaxConversationHistoryMessages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the limit is removed

@jguoamz jguoamz merged commit 94c2b88 into aws:feature/historyV2 Sep 24, 2025
5 checks passed
jguoamz added a commit that referenced this pull request Sep 29, 2025
Co-authored-by: aws-toolkit-automation <43144436+aws-toolkit-automation@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants