Skip to content
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

fix: correct the way to get the last relevant user message for secrets #608

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

yrobla
Copy link
Contributor

@yrobla yrobla commented Jan 16, 2025

When showing new secrets detection, we were just picking from last assistant message id. But in the case of aider, we need to pick more user messages. So reuse the logic of the method to get the relevant user block, to pick the index from the relevant user message and start counting from there

Closes: #606

@yrobla yrobla requested review from lukehinds, ptelang and jhrozek and removed request for lukehinds and ptelang January 16, 2025 09:24
When showing new secrets detection, we were just picking from last
assistant message id. But in the case of aider, we need to pick more user
messages. So reuse the logic of the method to get the relevant user block,
to pick the index from the relevant user message and start counting
from there

Closes: #606
JAORMX
JAORMX previously approved these changes Jan 16, 2025
jhrozek
jhrozek previously approved these changes Jan 16, 2025
@lukehinds lukehinds merged commit e06e9e8 into main Jan 16, 2025
2 checks passed
@lukehinds lukehinds deleted the issue-606 branch January 16, 2025 13:04
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.

aider not showing secrets being redacted
4 participants