Repository navigation
docs(openclaw): compound commands are rewritten, not skipped - #5008
Closed
LetMeSleep8h wants to merge 1 commit into
Closed
LetMeSleep8h wants to merge 1 commit into
LetMeSleep8h wants to merge 1 commit into
Conversation
The README listed piped commands under 'What's NOT rewritten', but the plugin passes the whole command to rtk rewrite, which splits compounds segment by segment: 'git status && cargo test' becomes 'rtk git status && rtk cargo test'. Replace the wrong bullet with what the guards actually leave alone (heredocs, command substitution, shell keywords — see src/discover/README.md's Compound splitting) and note that compounds are rewritten. Closes rtk-ai#4900
📊 Automated PR Analysis
SummaryFixes the openclaw README, which incorrectly listed piped/compound commands ( Review Checklist
Linked issues: #4900 Analyzed automatically by wshm · This is an automated analysis, not a human review. |
Collaborator
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.
Closes #4900
The README listed "Piped commands (
|,&&,;)") under "What's NOT rewritten", but the plugin passes the whole command tortk rewrite(openclaw/index.ts), and rewrite splits compounds segment by segment:The bullet is replaced with what the guards actually leave alone (heredocs, command substitution, shell keywords — see "Compound splitting" in
src/discover/README.md), plus a note that compounds are rewritten. The 4903 PR covers the same fix; this one is rebased on current develop.