Skip to content

fix: remove duplicate allowlist initialization in shell exec tool#4

Merged
YspCoder merged 1 commit intomainfrom
codex/conduct-robustness-check-on-code
Feb 14, 2026
Merged

fix: remove duplicate allowlist initialization in shell exec tool#4
YspCoder merged 1 commit intomainfrom
codex/conduct-robustness-check-on-code

Conversation

@YspCoder
Copy link
Copy Markdown
Owner

Motivation

  • Remove a duplicated allowPatterns initialization in NewExecTool that caused a compile-time error (no new variables on left side of :=) and blocked running go test ./....

Description

  • Deleted the redundant allowPatterns declaration and preserved the intended case-insensitive allowlist regex construction in pkg/tools/shell.go.

Testing

  • Ran go test ./... and go vet ./..., and both completed successfully.

Codex Task

@YspCoder YspCoder merged commit b3b7c3e into main Feb 14, 2026
@YspCoder YspCoder deleted the codex/conduct-robustness-check-on-code branch February 14, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant