Skip to content

Conversation

@leigaol
Copy link
Contributor

@leigaol leigaol commented May 19, 2025

Problem

This is a follow up of #1368.

The history truncation is already done in https://github.com/aws/language-servers/blob/main/server/aws-lsp-codewhisperer/src/language-server/agenticChat/tools/chatDb/chatDb.ts#L450

Solution

Do not truncate history message by length

License

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

@leigaol leigaol requested a review from a team as a code owner May 19, 2025 20:11
@leigaol leigaol changed the title fix: Do not truncate history message by length fix: Truncate API request first, then truncate chat history May 19, 2025
@leigaol leigaol merged commit 80fdbdf into aws:main May 19, 2025
6 checks passed
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.

2 participants