Inbox: check bare #N references before sending, not after

Aperta
#3,898 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Find the plugin tool registration for send_message and the existing bare #N reference check that today produces the "You named #13…" warning after delivery. Read that check first, then trace where send_message validates its input before dispatch so the same check can run there. Done looks like a send containing a bare #N is refused (or gated behind an explicit flag) with an error naming the owner/repo#N form, and the existing tests plus a new case covering the refusal pass.

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

Descrizione

send_message links a bare #123 to the repository the session started in. When the sentence is about another repository, the link points to the wrong issue, and the tool's warning ("You named #13, which is on no thread's row…") arrives only after the message is delivered, so the person already sees the wrong link. Hooks cannot guard this from the outside: Claude Code does not fire PreToolUse hooks for tools a plugin registers itself. Proposal: run the existing bare-reference check before delivery and refuse the send (or require an explicit flag) when a bare #N appears, naming the owner/repo#N form, as the tool description already asks.

Lingua principale
TypeScript
Stelle
8.7k
Fork
649
Merge medio
16h 1m
PR unite (30g)
756

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 backnotprop/plannotator

Tutte le issue di backnotprop/plannotator

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.