Repository navigation
fix: report the real trash count in manage_trash - #122
Merged
Merged
Conversation
CHANGELOG.md taken from main; the entry is consolidated at release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
trashMessages is captured up front, so deleting does not shift its indices. Loop forward so max_deletes takes the first N messages, and correct the loop comments. The empty_trash confirmation error now says it attempts to delete, matching the docstring. Swap a docstring em dash for a semicolon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Opened by Claude (AI assistant) on Patrick's behalf.
Carries over #108 by @herbeckrobin (original commits preserved), rebased onto current main. Split out of #98. Supersedes #108.
Follow-up edits
empty_trashnow loops forward over the capturedtrashMessageslist (deleting does not shift its indices), somax_deletestakes the first N instead of the last N; loop comments corrected in both actions.empty_trashconfirmation error now says it "attempts to delete" instead of "permanently deletes", matching the docstring (new test).CHANGELOG.md is taken from main unchanged; the entry is consolidated at release.
Proposed CHANGELOG entry
From the original PR (
### Fixed), with the last sentence about backwards loops dropped since the loop rationale changed:🤖 Generated with Claude Code