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

Open
#3,898 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
tooling

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
8.7k
Forks
649
Avg merge
16h 1m
Merged PRs (30d)
756

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from backnotprop/plannotator

All issues in backnotprop/plannotator

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.