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

Aperta
#237 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
67/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
38
Fork
18
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cline/plugins

Tutte le issue di cline/plugins

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.