Fixed console purges with a radius purging all worlds - #1026
Open
tonyjamesstark wants to merge 1 commit into
Open
tonyjamesstark wants to merge 1 commit into
tonyjamesstark wants to merge 1 commit into
Conversation
/co purge rejects a numeric radius, but the check only saw the radius when the sender had a location. From the console, /co purge t:30d r:50 parsed no radius and no world, so it ran as a server-wide purge. The radius is now also parsed against a placeholder location, so it is rejected for every sender. r:#world is unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PdEuKbjcVoVinVQJq4te1f
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.
From the console,
/co purge t:30d r:50purges the whole server. Upstream rejects a numeric radius in purges, but the radius parser returns null when the sender has no location, so the rejection never fires. The world also parses as 0 (every world), so the purge runs server-wide.Fix: the radius is also parsed against a placeholder location, so the existing rejection now applies to every sender.
r:#worldis unaffected. The change is two lines inPurgeCommandand does not depend on any other PR.To reproduce: run
/co purge t:30d r:50from the console. Before the fix, it starts a#globalpurge. After the fix, it answers "Please specify a valid world."authored and verified with claude