Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

fix(performance): go-faster Step 1 reports no Python when the Bash tool runs zsh

Đã đóng
#6,336 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@kyle-sexton đang làm issue này rồi.

Từ ngày 11/10/2026.

  • #7074 của @kyle-sexton — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
bash, python, shell, zsh

Hướng nghiên cứu

Start at plugins/performance/skills/go-faster/SKILL.md around the preamble that sources harness-lib.sh, then plugins/performance/scripts/harness-lib.sh harness_require_python (type -P). Make that lookup portable or wrap the preamble in bash -c, and scan other harness-lib.sh callers. Point the go-faster-sweeper at scripts/harness-lib.sh not lib/. Done when the preamble resolves python3 from a zsh Bash-tool shell and a stay-quiet test covers that.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

good first issue needs-triage priority: medium

Problem

/performance:go-faster Step 1 reports PY=unresolved ("no python3 or python on PATH runs") on a host where python3 runs, when the Bash tool's shell is zsh. The skill then stops.

The preamble at plugins/performance/skills/go-faster/SKILL.md:35 runs ( source "${CLAUDE_PLUGIN_ROOT}/scripts/harness-lib.sh" && harness_require_python ... ) in the Bash tool's own shell. harness_require_python (plugins/performance/scripts/harness-lib.sh:184-197) resolves each candidate with type -P, which is bash-only. zsh prints type: bad option: -P, every candidate is skipped, and the function dies.

A second defect from the same run: the dispatching session reported this to the go-faster-sweeper agent, and the sweeper could not reproduce it because it looked for harness-lib.sh in the plugin's lib/ directory. The file lives in scripts/.

Evidence

  • 2026-10-04, WSL2 host, Bash tool shell zsh: the preamble printed the HARNESS FAIL line; command -v python3 gave /home/kyle/.local/bin/python3 (3.14.7); bash -c 'source .../scripts/harness-lib.sh && harness_require_python && echo $HARNESS_PYTHON' printed that same path.
  • The sweep's report lists the finding as session-work-4, "not reproduced: harness-lib.sh is not in this plugin's lib directory".

Fix

  • Run the preamble under bash explicitly (bash -c '...'), or make harness_require_python portable (command -v plus an absolute-path check in place of type -P). Check the plugin's other harness-lib.sh callers for the same shape.
  • Point the sweeper at scripts/harness-lib.sh wherever it resolves the library.
  • A stay-quiet test: the preamble resolves Python when run from zsh.

Related

  • #6234 (go-faster from a worktree-isolated session), a different failure in the same skill.
Ngôn ngữ chính
Shell
Star
22
Fork
2
Merge trung bình
8 giờ 44 phút
Pull request đã merge (30 ngày)
926

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của melodic-software/claude-code-plugins

Tất cả issue của melodic-software/claude-code-plugins

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.