Repository navigation
Commands: Fix xray api adrules c1.json c2.json - #7276
Merged
Merged
Conversation
Added comment to clarify behavior when multiple files are specified.
xray api adrules c1.json c2.json
RPRX
pushed a commit
that referenced
this pull request
Oct 28, 2026
#7276 (review) --------- Co-authored-by: 风扇滑翔翼 <[email protected]>
This was referenced Oct 30, 2026
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.
The documented
xray api adrules c1.json c2.jsoncommand sends a replacement for each file by default. Both RPCs succeed, but only the rules fromc2.jsonremain.Apply the requested append mode to the first file, then append subsequent files in argument order. This preserves the existing single-file and
--appendbehavior.Local validation of the current head (
d0ad893):go vet ./main/commands/... ./app/router/...reports one existing discarded-cancellation diagnostic inapp/router/command/command.go:101, also reproduced on unchanged main.The original submitted fix also passed the affected package suites on Windows and with
-raceon Linux (60 leaf tests each); the subsequent edits remove the test file and add a comment, with executable logic unchanged.AI-assisted implementation and local tests with OpenAI Codex; the production change and regression evidence were independently reviewed before submission.