Skip to content

docs(openclaw): "What's NOT rewritten" says |, && and ; commands are left alone; rtk rewrite rewrites them #4900

Closed

Description

@KuSh

openclaw/README.md lists "Piped commands (|, &&, ;)" under "What's NOT rewritten". The plugin passes the whole command to rtk rewrite (openclaw/index.ts), and rtk rewrite rewrites each segment (rtk 1.1.0, LC_ALL=C):

git status && cargo test  =>  rtk git status && rtk cargo test   [exit 3]
git log | head -5         =>  rtk git log | head -5               [exit 3]
git status; ls            =>  rtk git status; rtk ls              [exit 3]

The bullet should go, or say what the guards actually leave alone (see "Compound splitting" in src/discover/README.md).

Activity

  1. added
    documentation
    good first issue
    on Oct 31, 2026
  2. rtk-wshm-sync-bot commented on Oct 31, 2026

    @rtk-wshm-sync-bot

    wshm · Automated triage by AI

    🔍 Automated Triage

    📋 Category docs
    🟢 Priority low
    🎯 Confidence 93%

    Summary

    openclaw/README.md incorrectly claims piped/&&/; compound commands are left alone, but rtk rewrite actually rewrites each segment; fix or clarify the doc against actual guard behavior.

    This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.

    📁 Relevant files
    • openclaw/README.md
    • openclaw/index.ts
    • src/discover/README.md

    Suggested Actions

    1. Update the 'What's NOT rewritten' bullet in openclaw/README.md to match actual compound-command handling
    2. Cross-reference 'Compound splitting' section in src/discover/README.md for accurate wording
    3. Verify behavior against rtk 1.1.0 examples given in the issue before editing docs

    Triaged automatically by wshm · This is an automated analysis, not a human review.

  3. KuSh commented on Nov 8, 2026

    @KuSh
    CollaboratorAuthor

    There are 2 open pull requests for this issue: #4903, #5008 (oldest first).

    If you were about to start on it, reviewing or testing one of these helps more than another pull request: a note on which approach fits, or a test result on your setup, is welcome on the pull request itself.

  4. added a commit that references this issue on Nov 8, 2026
    ff61d75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:docsdocumentationgood first issuepriority:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions