Skip to content

Shell commands prefixed with comments aren't trusted #4719

@TrevorBurnham

Description

@TrevorBurnham

Before opening, please confirm:

Operating System

macOS 26.2

Kiro Version

Kiro IDE 0.8.0

Bug Description

Kiro sometimes tried to run a shell command like this:

# Total file size
wc -c lib/styles.css

This prompts me to approve the command, even though I've marked wc * as trusted. If I try to trust it, the pattern the IDE prompts me to trust is # Total, not the actual wc command.

Steps to Reproduce

Unclear. The agent sometimes emits comments before its shell commands, and sometimes it doesn't.

Expected Behavior

Either the Kiro agent shouldn't preface shell commands with comments, or those comments should be ignored for permissions purposes.

Conversation ID

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions