intercom-support-triage-slack: beforeTool hook blocks every other tool in all sessions

Đang mở
#237 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
67/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
developer-experience

Hướng nghiên cứu

Start by reading plugins/intercom-support-triage-slack/index.ts and trace when its beforeTool hook applies the ALLOWED_TOOLS guard. Compare the suggested session-scoped or opt-in behavior with the plugin's README guidance. Done means non-triage sessions can use built-in tools, triage runs retain the intended guardrail, and the README explains the behavior.

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

Mô tả

bug includes-hooks

Once this plugin is installed (cline plugin install intercom-support-triage-slack), every Cline session on the machine fails every built-in tool: file edits, commands, reads. The error is:

Tool "editor" is not permitted in this session. Only fetch_intercom_conversations and post_slack_summary may be called.

This applies in every host (CLI, VS Code, JetBrains) and every project, not only during a triage run. The error gives the user no hint that a plugin is the cause.

Cause

The beforeTool hook in plugins/intercom-support-triage-slack/index.ts returns skip: true for any tool outside ALLOWED_TOOLS. Keeping a triage run on its two tools is intended, but a catalog install is global, so the restriction applies to every session.

Suggested fix

Keep the guardrail, but only for triage sessions. For example, enforce it only after fetch_intercom_conversations has been called in the session, or only when an opt-in env var is set. Either way, mention the behaviour in the README.

Workaround

cline plugin uninstall intercom-support-triage-slack

Ngôn ngữ chính
TypeScript
Star
38
Fork
18
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 cline/plugins

Tất cả issue của cline/plugins

Issue tương tự

Thêm issue về TypeScript

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.