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

install writes an unsupported `args` key into the Claude Code SubagentStart hook, so it never runs

Đang mở Phù hợp với người mới
#2,239 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 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
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
Lĩnh vực
tooling

Hướng nghiên cứu

Tìm nơi install sinh ra mục nhập trong ~/.claude/settings.json — grep repo với SubagentStart, hook-augment và cbm-subagent-reminder. Kiểm tra cách đối tượng hook được tuần tự hóa và cách 0.9.1-rc.1 xây dựng đường dẫn wrapper. Xong khi mục nhập được phát ra chỉ dùng các key được phép của schema (type, command, timeout, async) với subcommand nằm trong chuỗi command, và các test install/hook hiện có đều pass.

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

Mô tả

bug editor/integration priority/high stability/performance ux/behavior

Problem

The SubagentStart hook cbm installs never runs — every subagent start stalls to the hook timeout and returns no graph context.

Evidence

install -y writes this into ~/.claude/settings.json:

{ "type": "command", "command": "/Users/me/.local/bin/codebase-memory-mcp", "args": ["hook-augment"], "timeout": 5 }

Claude Code's hook schema has no args — in the published settings schema, hookCommand is additionalProperties: false and takes type, command, timeout and async. So the subcommand is dropped and the bare binary runs, which is the MCP stdio server: it waits on stdin and never exits. I piped a SubagentStart payload into it and it was still running at 6s; the same payload into codebase-memory-mcp hook-augment returns in 2s.

Expected fix

The entry that was there before (from 0.9.1-rc.1) pointed at the installed cbm-subagent-reminder wrapper, which does the right thing. Either restore that, or put the subcommand in the command string: "<bin> hook-augment".

v0.11.0, macOS arm64, Claude Code 2.1.278. Same family as #1737, different client.

Ngôn ngữ chính
C
Star
45.8k
Fork
3.8k
Merge trung bình
3 ngày 14 giờ
Pull request đã merge (30 ngày)
210

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 DeusData/codebase-memory-mcp

Tất cả issue của DeusData/codebase-memory-mcp

Issue tương tự

Thêm issue về C

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.